> -----Original Message----- > From: Peter Maydell [mailto:peter.mayd...@linaro.org] > Sent: Friday, June 03, 2016 5:38 PM > To: Mihai Claudiu Caraman <mike.cara...@nxp.com> > Cc: Bogdan Purcareata <bogdan.purcare...@nxp.com>; QEMU Developers > <qemu-devel@nongnu.org>; Peter Crosthwaite <crosthwaite.pe...@gmail.com>; > Alexander Graf <ag...@suse.de>; qemu-arm <qemu-...@nongnu.org>; Eric Auger > <eric.au...@linaro.org> > Subject: Re: [Qemu-devel] [PATCH 2/2] arm/virt: Mark pcie controller node as > dma-coherent > > On 3 June 2016 at 15:22, Mihai Claudiu Caraman <mike.cara...@nxp.com> wrote: > > In particular for virtual and emulated devices the host CPU behaves as > > a DMA coherent 'device'. This should have been stated in patch > > description. > > Wouldn't that imply that we should just always have the "dma-coherent" > property set, and we don't need to do any of the messing around looking at > the host sysfs ? > > thanks > -- PMM
We can always set "dma-coherent" for virtual and emulated devices but not for passthrough devices. So we can't have one PCIe controller for all devices marked as "dma-coherent". Regards, Mike