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

From: Li Yang-R58472
Date: Thu Jun 11 2009 - 05:48:29 EST


>On May 12, 2009, at 3:35 AM, Li Yang wrote:
>
>> Add the mapping functions used to support direct IO memory access of
>> rapidIO.
>>
>> Signed-off-by: Zhang Wei <zw@xxxxxxxxxxxxx>
>> Signed-off-by: Li Yang <leoli@xxxxxxxxxxxxx>
>
>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. I
>think we should be using the DMA mapping API to hide these
>details. The 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. Although it looks like the
system level ATMU, system ATMU doesn't have the knowledge of rapidIO
target device ID. The mapping need to be dynamic, as it's easy to have
more RIO devices than the outbound windows.

- Leo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/