* dma_is_consistent() is nonsensical...
@ 2005-11-17 18:47 Deepak Saxena
2005-11-17 19:52 ` Krzysztof Halasa
0 siblings, 1 reply; 2+ messages in thread
From: Deepak Saxena @ 2005-11-17 18:47 UTC (permalink / raw)
To: linux-kernel
Working on adding support for cache-coherent operation to ARM and
wondering exactly what this API is supposed to do. From the name it
is obviously supposed to tell the caller (only one in the kernel...
drivers/scsi/53c700.c) whether the provided dma_handle is cache-coherent
or not. In the case of multiple DMA domains where certain devices
are on snooping interfaces and others are not we really want to know what
device the DMA address is on so can we add a struct device* ptr to this
function? Or can we just kill it since nobody is actually using it?
Calling dma_alloc_coherent should always return coherent/consistent
(why the different naming conventions too?) so I don't really see a real
use case.
~Deepak
--
Deepak Saxena - dsaxena@plexity.net - http://www.plexity.net
"To question your government is not unpatriotic - to not question your
government is unpatriotic." - Senator Chuck Hagel (R-NE) - Nov 15, 2005
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: dma_is_consistent() is nonsensical...
2005-11-17 18:47 dma_is_consistent() is nonsensical Deepak Saxena
@ 2005-11-17 19:52 ` Krzysztof Halasa
0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Halasa @ 2005-11-17 19:52 UTC (permalink / raw)
To: dsaxena; +Cc: linux-kernel
Deepak Saxena <dsaxena@plexity.net> writes:
> Working on adding support for cache-coherent operation to ARM and
> wondering exactly what this API is supposed to do. From the name it
> is obviously supposed to tell the caller (only one in the kernel...
> drivers/scsi/53c700.c) whether the provided dma_handle is cache-coherent
> or not. In the case of multiple DMA domains where certain devices
> are on snooping interfaces and others are not we really want to know what
> device the DMA address is on so can we add a struct device* ptr to this
> function? Or can we just kill it since nobody is actually using it?
> Calling dma_alloc_coherent should always return coherent/consistent
> (why the different naming conventions too?) so I don't really see a real
> use case.
I would have to look at the current code but yes, there were issues
like that in the past. Coherent vs consistent - there are two APIs
(DMA and PCI) each with a different name for this.
--
Krzysztof Halasa
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-17 19:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-17 18:47 dma_is_consistent() is nonsensical Deepak Saxena
2005-11-17 19:52 ` Krzysztof Halasa
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.