Thread (19 messages) 19 messages, 3 authors, 2009-06-15

Re: [PATCH 1/6] rapidio: add common mapping APIs for RapidIO memory access

From: Li Yang <hidden>
Date: 2009-06-12 13:35:34
Also in: lkml, netdev

On Thu, Jun 11, 2009 at 9:32 PM, Kumar Gala[off-list ref] wrot=
e:
On Jun 11, 2009, at 4:47 AM, Li Yang-R58472 wrote:
quoted
quoted
On May 12, 2009, at 3:35 AM, Li Yang wrote:
quoted
Add the mapping functions used to support direct IO memory access of
rapidIO.

Signed-off-by: Zhang Wei <zw@zh-kernel.org>
Signed-off-by: Li Yang <redacted>
Use inbnd/outbnd instead of inb/outb which make one think of
byte level io accessors.

As I look at this I don't think this is the correct API. =C2=A0I
think we should be using the DMA mapping API to hide these
details. =C2=A0The concept of mapping like this seems to be more a
function of FSL's Address translation/mapping unit (ATMU) than
anything specific to the RIO bus standard.
This is a separate RIO block level ATMU. =C2=A0Although it looks like th=
e
quoted
system level ATMU, system ATMU doesn't have the knowledge of rapidIO
target device ID. =C2=A0The mapping need to be dynamic, as it's easy to =
have
quoted
more RIO devices than the outbound windows.
I understand that. =C2=A0What I'm saying is the RIO block level ATMU is a
Freescale specific detail and not part of any standard RIO bus programmin=
g
model. =C2=A0We have mapping APIs that we can connect to for this via the=
 DMA API
layer.
Ok, I see your point now. Do you mean dma_map_*() for DMA API layer?
But in my understanding the current dma_map_*() APIs are preparing
local memory for device to access which is similar to the inbound
case.  Is it suitable to also use them for mapping device's space for
CPU access?  Can you give an example of using this API for Address
Translation and Mapping purpose?

- Leo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help