On 10/10/17 09:21, Artyom Tarasenko wrote: > On Mon, Oct 9, 2017 at 11:06 PM, Mark Cave-Ayland > <mark.cave-ayl...@ilande.co.uk> wrote: >> This patchset aims to tidy-up the sparc32_dma code by improving the >> modelling of the espdma/ledma devices using both QOM and the memory >> API which didn't exist when the code was first written. >> >> The result is that it is now possible to remove both the iommu_opaque >> and is_ledma workarounds from the code. >> >> Signed-off-by: Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk> > > Reviewed-by: Artyom Tarasenko <atar4q...@gmail.com>
With some further experimentation I've found that making the esp/le devices children of their respective espdma/ledma devices makes things a lot cleaner. I've also got another related patch to update the espdma/ledma tracepoints to log the DMA transaction length, so I'll submit a v2 of this with the additional changes shortly. ATB, Mark.