linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* mmap cached memory mapped io in user space
@ 2015-02-14 17:10 ali soleimanidehdivan
  0 siblings, 0 replies; only message in thread
From: ali soleimanidehdivan @ 2015-02-14 17:10 UTC (permalink / raw)
  To: linux-arm-kernel

i need to cache data for sending to memory mapped io device because
device is using axi full protocol. i write data to cache and then
flush it so data is written using burst mode

i did some research and finnally i add this lines

#define pgprot_devcached(prot) \
    __pgprot_modify(prot, L_PTE_MT_MASK, L_PTE_MT_DEV_CACHED)

to arch/arm/include/asm/pgtable.h.

but this doesn't work good actually it works for just first burst. if
your data is bigger than a burst it doesn't work and just send first
burst. how can i use cache for data bigger than a burst. i done it in
standalone os from xilinx but i stuck on it in linux. my platform is
zynq.

p.s: i know i can use ioremap_cache but i want to full buffer from
user space and performance is critical in this situation.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-14 17:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-14 17:10 mmap cached memory mapped io in user space ali soleimanidehdivan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).