All of lore.kernel.org
 help / color / mirror / Atom feed
* Cache maintenance in arm_iommu_alloc_attrs for iommu_coherent_ops
@ 2014-05-21  8:52 Ritesh Harjani
  2014-05-21  9:37 ` Ritesh Harjani
  2014-05-22  8:30 ` Marek Szyprowski
  0 siblings, 2 replies; 5+ messages in thread
From: Ritesh Harjani @ 2014-05-21  8:52 UTC (permalink / raw)
  To: linux-arm-kernel

Hi All,

There is this path in arm dma-mapping.c with respect to iommu coherent
buffer allocation:

1. arm_iommu_alloc_attrs
       -> __iommu_alloc_buffer
                 -> __dma_clear_buffer


__dma_clear_buffer zeros out the allocated pages but also flushes the
cpu and the outer cache for coherent iommu ops.

I think the above operation for coherent iommu ops should not include
cache flush operation right ??
Or I am missing something here ? Whether this is put intentional or
its a mistake we can correct ?


Thanks
Ritesh

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

end of thread, other threads:[~2014-05-22 15:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-21  8:52 Cache maintenance in arm_iommu_alloc_attrs for iommu_coherent_ops Ritesh Harjani
2014-05-21  9:37 ` Ritesh Harjani
2014-05-22  8:31   ` Marek Szyprowski
2014-05-22 15:52     ` Ritesh Harjani
2014-05-22  8:30 ` Marek Szyprowski

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.