public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* More DMA API junk
@ 2004-03-16  0:53 Benjamin Herrenschmidt
  2004-03-16  1:12 ` James Bottomley
  0 siblings, 1 reply; 8+ messages in thread
From: Benjamin Herrenschmidt @ 2004-03-16  0:53 UTC (permalink / raw)
  To: Linux Arch list

While fixing ppc for DaveM new stuff, I found a couple of things
that look strange (not directly related to the patch though)

 - dma_is_consistent(dma_addr_t address) : Did somebody actually expect
anything useful out of this function ? AFAIK, it makes no sense. There
is simply no way an arch like ppc that use per-page cache-inhibit
mappings to do consistent memory will be able to tell you if a given
_DMA_ address is consistent... that makes no sense.

 - dma_cache_sync(): What is that function supposed to do ? It's a
duplicate of the other sync() functions and David didn't even bother
turning it into _for_device/for_cpu... which is fine since it doesn't
even takes a struct device argument.

I vote for removing the 2 functions above. I suspect something using
them is broken anyway.

Ben.

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

end of thread, other threads:[~2004-03-16 11:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-16  0:53 More DMA API junk Benjamin Herrenschmidt
2004-03-16  1:12 ` James Bottomley
2004-03-16  1:32   ` Benjamin Herrenschmidt
2004-03-16  3:24     ` James Bottomley
2004-03-16  3:32       ` Benjamin Herrenschmidt
2004-03-16  3:48         ` James Bottomley
2004-03-16  3:53           ` Benjamin Herrenschmidt
2004-03-16 11:17           ` Ralf Baechle

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