public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Microblaze, DMA and cache: Lack of sync functions?
@ 2011-08-13 10:12 Eli Billauer
  2011-08-15 12:22 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Eli Billauer @ 2011-08-13 10:12 UTC (permalink / raw)
  To: LKML

Hello,


Before I make a needless hack, please correct me if I'm wrong: in 
arch/microblaze/kernel/dma.c, the sync_single_for_cpu, 
sync_single_for_device and friends are not set in the dma_direct_ops 
structure (and not implemented), so calls from drivers to the 
corresponding functions will do nothing. Since the Microblaze cache 
doesn't update automatically on DMA operations, this looks like a bug to 
me: The driver thinks the cache has been flushed or updated, but it 
actually hasn't.


Map and unmap methods are indeed implemented and registered, and they 
both call an internal function to sync the cache. So why are there no 
sync functions?

To hack or not to hack?

   Eli

-- 
Web: http://www.billauer.co.il


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

end of thread, other threads:[~2011-08-15 12:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-13 10:12 Microblaze, DMA and cache: Lack of sync functions? Eli Billauer
2011-08-15 12:22 ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox