Re: [Xen-devel] [PATCH v3 13/13] xen/iommu: smmu: Advertise when the SMMU support coherent table walk

2015-02-20 Thread Ian Campbell
On Fri, 2015-02-20 at 14:15 +, Julien Grall wrote: > On 20/02/15 14:13, Ian Campbell wrote: > > On Fri, 2015-02-20 at 14:07 +, Julien Grall wrote: > >> On 20/02/15 13:34, Ian Campbell wrote: > >>> On Fri, 2015-01-30 at 18:49 +, Julien Grall wrote: > @@ -2896,6 +2911,16 @@ static __

Re: [Xen-devel] [PATCH v3 13/13] xen/iommu: smmu: Advertise when the SMMU support coherent table walk

2015-02-20 Thread Julien Grall
On 20/02/15 14:13, Ian Campbell wrote: > On Fri, 2015-02-20 at 14:07 +, Julien Grall wrote: >> On 20/02/15 13:34, Ian Campbell wrote: >>> On Fri, 2015-01-30 at 18:49 +, Julien Grall wrote: @@ -2896,6 +2911,16 @@ static __init int arm_smmu_dt_init(struct dt_device_node *dev,

Re: [Xen-devel] [PATCH v3 13/13] xen/iommu: smmu: Advertise when the SMMU support coherent table walk

2015-02-20 Thread Ian Campbell
On Fri, 2015-02-20 at 14:07 +, Julien Grall wrote: > On 20/02/15 13:34, Ian Campbell wrote: > > On Fri, 2015-01-30 at 18:49 +, Julien Grall wrote: > >> @@ -2896,6 +2911,16 @@ static __init int arm_smmu_dt_init(struct > >> dt_device_node *dev, > >>if ( !rc ) > >>iommu_set_op

Re: [Xen-devel] [PATCH v3 13/13] xen/iommu: smmu: Advertise when the SMMU support coherent table walk

2015-02-20 Thread Julien Grall
On 20/02/15 13:34, Ian Campbell wrote: > On Fri, 2015-01-30 at 18:49 +, Julien Grall wrote: >> @@ -2896,6 +2911,16 @@ static __init int arm_smmu_dt_init(struct >> dt_device_node *dev, >> if ( !rc ) >> iommu_set_ops(&arm_smmu_iommu_ops); >> >> +/* >> + * The last add

Re: [Xen-devel] [PATCH v3 13/13] xen/iommu: smmu: Advertise when the SMMU support coherent table walk

2015-02-20 Thread Ian Campbell
On Fri, 2015-01-30 at 18:49 +, Julien Grall wrote: > @@ -2896,6 +2911,16 @@ static __init int arm_smmu_dt_init(struct > dt_device_node *dev, > if ( !rc ) > iommu_set_ops(&arm_smmu_iommu_ops); > > + /* > + * The last added SMMU is the first element of arm_smmu_dev

Re: [Xen-devel] [PATCH v3 13/13] xen/iommu: smmu: Advertise when the SMMU support coherent table walk

2015-02-09 Thread Julien Grall
On 10/02/2015 09:36, Julien Grall wrote: Hi Stefano, On 06/02/2015 22:06, Stefano Stabellini wrote: On Fri, 30 Jan 2015, Julien Grall wrote: When SMMU doesn't support coherent table walk, Xen may need to clean updated PT (see commit 4c5f4cb "xen/arm: p2m: Clean cache PT when the IOMMU doesn'

Re: [Xen-devel] [PATCH v3 13/13] xen/iommu: smmu: Advertise when the SMMU support coherent table walk

2015-02-09 Thread Julien Grall
Hi Stefano, On 06/02/2015 22:06, Stefano Stabellini wrote: On Fri, 30 Jan 2015, Julien Grall wrote: When SMMU doesn't support coherent table walk, Xen may need to clean updated PT (see commit 4c5f4cb "xen/arm: p2m: Clean cache PT when the IOMMU doesn't support coherent walk"). If one SMMU of t

Re: [Xen-devel] [PATCH v3 13/13] xen/iommu: smmu: Advertise when the SMMU support coherent table walk

2015-02-06 Thread Stefano Stabellini
On Fri, 30 Jan 2015, Julien Grall wrote: > When SMMU doesn't support coherent table walk, Xen may need to clean > updated PT (see commit 4c5f4cb "xen/arm: p2m: Clean cache PT when the > IOMMU doesn't support coherent walk"). > > If one SMMU of the platform doesn't support coherent table walk, the

[Xen-devel] [PATCH v3 13/13] xen/iommu: smmu: Advertise when the SMMU support coherent table walk

2015-01-30 Thread Julien Grall
When SMMU doesn't support coherent table walk, Xen may need to clean updated PT (see commit 4c5f4cb "xen/arm: p2m: Clean cache PT when the IOMMU doesn't support coherent walk"). If one SMMU of the platform doesn't support coherent table walk, the feature is disabled for the whole platform. This is