From: Jeffrey Melville <jmelville@mitre.org>
To: xenomai@xenomai.org
Subject: [Xenomai] rtdm_iomap_to_user caching followup
Date: Wed, 20 Aug 2014 10:46:50 -0400 [thread overview]
Message-ID: <53F4B4DA.6050703@mitre.org> (raw)
All,
There was a patch applied back in January 2013 to disable caching with
memory areas mapped with rtdm_iomap_to_user.
(http://www.xenomai.org/pipermail/xenomai/2013-January/027370.html)
Henri Roosen followed up in September 2013 to say that he still saw
caching behavior with rtdm_iomap_to_user. The original patch didn't
cover the ifdef LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) &&
defined(CONFIG_MMU). He submitted two patch options but I didn't see any
responses.
(http://www.xenomai.org/pipermail/xenomai/2013-September/029211.html)
I'm currently working with a Zynq ZC706, using Xenomai 2.6.3 on top of
the Xilinx fork of the 3.8 kernel, as described in the README. The FPGA
guys gave me a test FPGA image with a (dumb) AXI slave that has a very
small register space. Pulling a cache line actually overflows the
register space and causes the bus to lock up. I added a logic analyzer
block to the FPGA to confirm the access addresses.
More importantly, I don't want any of that address space cached even
when the register space gets bigger. I was able to fix my problems by
changing this line:
- remap_pfn_range(vma,from,(to) >> PAGE_SHIFT,size,prot); \
+ remap_pfn_range(vma,from,(to) >>
PAGE_SHIFT,size,pgprot_noncached(prot)); \
Can we apply the patch? I can provide a new one if it is lost. Or is
there a better way to use rtdm_iomap_to_user that lets the caller
specify caching behavior? I couldn't find one.
As a side note, has anyone successfully used Xenomai with Zynq on
kernels newer than 3.8? I haven't found any newer pre/post patches and
haven't had time to play around with manually merging it yet. I'd be
willing to help if this is an area of need.
Cheers,
Jeff
next reply other threads:[~2014-08-20 14:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-20 14:46 Jeffrey Melville [this message]
2014-08-20 19:09 ` [Xenomai] rtdm_iomap_to_user caching followup Gilles Chanteperdrix
2014-08-27 20:59 ` Jeffrey Melville
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53F4B4DA.6050703@mitre.org \
--to=jmelville@mitre.org \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.