Re: [PATCH/RFC] iommu/ipmmu-vmsa: IPMMU SYS-DMAC iova mapping workaround

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Niklas,

On Tue, Sep 27, 2016 at 3:20 PM, Niklas Söderlund
<niklas.soderlund@xxxxxxxxxxxx> wrote:
> Hi Magnus,
>
> On 2016-09-20 20:54:33 +0900, Magnus Damm wrote:
>> From: Magnus Damm <damm+renesas@xxxxxxxxxxxxx>
>>
>> Here's some prototype code that works around the lack of software
>> support for mapping I/O devices to the SYS-DMAC hardware via the
>> DMA Engine framework when using IOMMU.
>>
>> The code itself is one big layering violation that goes through
>> the DT and unconditionally maps I/O devices using DMACs via the
>> IPMMU device instance into iova space with a 1:1 mapping.
>>
>> This very short term prototype will for instance automatically make
>> the SCIF serial port function with the IPMMU hardware in case the
>> SYS-DMAC is hooked up to the IPMMU device.
>>
>> Not to be confused with the more long term solution to allow the
>> DMA Engine framework to map I/O device memory dynamically.
>
> Good news, Vinod queued the dma_{map,unmap}_resource API and rcar-dmac
> usage of it yesterday \o/.

Excellent. Are the DMA Engine slave devices supposed to work out of
the box with the IPMMU then, or is some other component missing?

Cheers,

/ magnus




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux