[PATCH] Add support for CONFIG_ARM64_DMA_USE_IOMMU.
Suman Tripathi
stripathi at apm.com
Tue Mar 17 16:33:19 PDT 2015
I guess there is an overlap with this thread:
http://thread.gmane.org/gmane.linux.kernel.iommu/8213
I would rather go for a more generic solution that Robin (cc'ed) is
trying to implement.
I followed the above thread but our requirement deviates from normal
IOMMU conventions.
For our case we need a 1:1 mapping of PA to IOVA. Actually our's is
not a real IOMMU (ie not having a cap of page table walk). It's a
simple 32-bit from (device side ) ot 64-bit (cpu side) address
translation with the help of a set of window registers. So we want to
bypass the entire iova .
Any suggestions on this ?
On Wed, Mar 18, 2015 at 5:02 AM, Suman Tripathi <stripathi at apm.com> wrote:
> I guess there is an overlap with this thread:
>
> http://thread.gmane.org/gmane.linux.kernel.iommu/8213
>
> I would rather go for a more generic solution that Robin (cc'ed) is
> trying to implement.
>
> I followed the above thread but our requirement deviates from normal IOMMU
> conventions.
> For our case we need a 1:1 mapping of PA to IOVA. Actually our's is not a
> real IOMMU (ie not having a cap of page table walk). It's a simple 32-bit
> from (device side ) ot 64-bit (cpu side) address translation with the help
> of a set of window registers. So we want to bypass the entire iova .
>
> Any suggestions on this ?
>
> On Wed, Jan 28, 2015 at 4:57 PM, Catalin Marinas <catalin.marinas at arm.com>
> wrote:
>>
>> On Tue, Jan 27, 2015 at 05:24:54PM +0000, Suman Tripathi wrote:
>> > This patch implements the support for ARM64_DMA_USE_IOMMU
>> > ported from ARM 32-bit.
>> >
>> > Signed-off-by: Suman Tripathi <stripathi at apm.com>
>> > ---
>> >
>> > Suman Tripathi (1):
>> > arm64: dma-mapping: Support for ARM64_DMA_USE_IOMMU.
>> >
>> > arch/arm64/Kconfig | 24 ++
>> > arch/arm64/include/asm/device.h | 9 +
>> > arch/arm64/include/asm/dma-iommu.h | 48 +++
>> > arch/arm64/mm/dma-mapping.c | 611
>> > +++++++++++++++++++++++++++++++++++++
>> > 4 files changed, 692 insertions(+)
>> > create mode 100644 arch/arm64/include/asm/dma-iommu.h
>>
>> I guess there is an overlap with this thread:
>>
>> http://thread.gmane.org/gmane.linux.kernel.iommu/8213
>>
>> I would rather go for a more generic solution that Robin (cc'ed) is
>> trying to implement.
>>
>> --
>> Catalin
>
>
>
>
> --
> Thanks,
> with regards,
> Suman Tripathi
--
Thanks,
with regards,
Suman Tripathi
More information about the linux-arm-kernel
mailing list