linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* dma-mapping: support for DMA_ATTR_NON_CONSISTENT DMA attribute
@ 2015-06-28 20:32 Sylvain Munaut
  2015-06-28 22:45 ` Russell King - ARM Linux
  0 siblings, 1 reply; 9+ messages in thread
From: Sylvain Munaut @ 2015-06-28 20:32 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,


I've found this patch from several month ago :

http://lists.infradead.org/pipermail/linux-arm-kernel/2015-February/325489.html

And I find it very useful, but I couldn't find why it wasn't merged ?
What was the problem with it ?

In my use case, I need to allocate fairly large buffers (holding video
data) and the hardware requires them to be contiguous.

I ensure the consistency by using the DMA streaming API
(dma_sync_single_for_{cpu,device}) and so when the buffer is "owned"
by the CPU, I definitely want cached access because coherent memory
speed is just abysmal ... (about 10x slower to read the whole buffer
sequentially).

Since the buffer is > 4M, I can't rely on kmalloc or alloc_pages to
allocate it and dma_alloc_attrs with this patch applied does exactly
what I need.

Did I miss something ? Is there another way to do what I need ? (well
beside reimplementing the whole dma_alloc_attr logic myself ...)


Cheers,

    Sylvain

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-06-29 13:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-28 20:32 dma-mapping: support for DMA_ATTR_NON_CONSISTENT DMA attribute Sylvain Munaut
2015-06-28 22:45 ` Russell King - ARM Linux
2015-06-29  5:24   ` Sylvain Munaut
2015-06-29  6:44     ` Mike Looijmans
2015-06-29  9:45       ` Russell King - ARM Linux
2015-06-29 13:08         ` Mike Looijmans
2015-06-29 10:05       ` Sylvain Munaut
2015-06-29 10:08         ` Russell King - ARM Linux
2015-06-29 13:22           ` Sylvain Munaut

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).