Re: [PATCH 2/2] arm/xen: Don't use xen DMA ops when the device is protected by an IOMMU

2014-03-14 Thread gre...@linuxfoundation.org
On Fri, Mar 14, 2014 at 04:50:23PM +, Julien Grall wrote: > On 02/24/2014 08:49 PM, Stefano Stabellini wrote: > > On Mon, 24 Feb 2014, gre...@linuxfoundation.org wrote: > > Julien is proposing to store the list of "safe" devices on an hash table > > in the Xen specific code (in arch/arm/xen/en

Re: [PATCH 2/2] arm/xen: Don't use xen DMA ops when the device is protected by an IOMMU

2014-03-14 Thread Julien Grall
On 02/24/2014 08:49 PM, Stefano Stabellini wrote: > On Mon, 24 Feb 2014, gre...@linuxfoundation.org wrote: > Julien is proposing to store the list of "safe" devices on an hash table > in the Xen specific code (in arch/arm/xen/enlighten.c, see > http://marc.info/?l=linux-kernel&m=139291370526082&w=

Re: [PATCH 2/2] arm/xen: Don't use xen DMA ops when the device is protected by an IOMMU

2014-03-01 Thread Julien Grall
Hi Stefano, On 25/02/14 04:49, Stefano Stabellini wrote: Julien, could you please come up with a simple patch to demonstrate the concept? Sure. I won't have time to write the patch next week. I will try to send it as soon as possible. Cheers, -- Julien Grall -- To unsubscribe from this li

Re: [PATCH 2/2] arm/xen: Don't use xen DMA ops when the device is protected by an IOMMU

2014-02-24 Thread Stefano Stabellini
On Mon, 24 Feb 2014, gre...@linuxfoundation.org wrote: > On Mon, Feb 24, 2014 at 12:19:11PM +, Stefano Stabellini wrote: > > CC'ing Greg. > > > > On Thu, 20 Feb 2014, Ian Campbell wrote: > > > On Thu, 2014-02-20 at 16:21 +, Julien Grall wrote: > > > > Only Xen is able to know if a device c

Re: [PATCH 2/2] arm/xen: Don't use xen DMA ops when the device is protected by an IOMMU

2014-02-24 Thread gre...@linuxfoundation.org
On Mon, Feb 24, 2014 at 12:19:11PM +, Stefano Stabellini wrote: > CC'ing Greg. > > On Thu, 20 Feb 2014, Ian Campbell wrote: > > On Thu, 2014-02-20 at 16:21 +, Julien Grall wrote: > > > Only Xen is able to know if a device can safely avoid to use xen-swiotlb. > > > This patch introduce a ne

Re: [PATCH 2/2] arm/xen: Don't use xen DMA ops when the device is protected by an IOMMU

2014-02-24 Thread Stefano Stabellini
CC'ing Greg. On Thu, 20 Feb 2014, Ian Campbell wrote: > On Thu, 2014-02-20 at 16:21 +, Julien Grall wrote: > > Only Xen is able to know if a device can safely avoid to use xen-swiotlb. > > This patch introduce a new property "protected-devices" for the hypervisor > > node which list device whi

Re: [PATCH 2/2] arm/xen: Don't use xen DMA ops when the device is protected by an IOMMU

2014-02-20 Thread Ian Campbell
Adding the -spec list for the generic IOMMU binding question. On Thu, 2014-02-20 at 16:21 +, Julien Grall wrote: > diff --git a/Documentation/devicetree/bindings/arm/xen.txt > b/Documentation/devicetree/bindings/arm/xen.txt > index 0f7b9c2..ee25a57 100644 > --- a/Documentation/devicetree/bind

Re: [PATCH 2/2] arm/xen: Don't use xen DMA ops when the device is protected by an IOMMU

2014-02-20 Thread Ian Campbell
On Thu, 2014-02-20 at 16:21 +, Julien Grall wrote: > Only Xen is able to know if a device can safely avoid to use xen-swiotlb. > This patch introduce a new property "protected-devices" for the hypervisor > node which list device which the IOMMU are been correctly programmed by Xen. > > During

[PATCH 2/2] arm/xen: Don't use xen DMA ops when the device is protected by an IOMMU

2014-02-20 Thread Julien Grall
Only Xen is able to know if a device can safely avoid to use xen-swiotlb. This patch introduce a new property "protected-devices" for the hypervisor node which list device which the IOMMU are been correctly programmed by Xen. During Linux boot, Xen specific code will create an hash table which con