Re: [PATCH] iommu/vt-d: Flush old iotlb for kdump when the device gets context mapped

2016-12-01 Thread Joerg Roedel
On Thu, Dec 01, 2016 at 10:15:45AM +0800, Xunlei Pang wrote: > index 3965e73..624eac9 100644 > --- a/drivers/iommu/intel-iommu.c > +++ b/drivers/iommu/intel-iommu.c > @@ -2024,6 +2024,25 @@ static int domain_context_mapping_one(struct > dmar_domain *domain, > if (context_present(context))

Re: [PATCH 02/10] iommu/of: Prepare for deferred IOMMU configuration

2016-12-01 Thread Lorenzo Pieralisi
On Wed, Nov 30, 2016 at 04:42:27PM +, Robin Murphy wrote: > On 30/11/16 16:17, Lorenzo Pieralisi wrote: > > Sricharan, Robin, > > > > I gave this series a go on ACPI and apart from an SMMU v3 fix-up > > it seems to work, more thorough testing required though. > > > > A key question below. > >

Re: [PATCH] iommu/vt-d: Flush old iotlb for kdump when the device gets context mapped

2016-12-01 Thread Xunlei Pang
On 12/01/2016 at 06:33 PM, Joerg Roedel wrote: > On Thu, Dec 01, 2016 at 10:15:45AM +0800, Xunlei Pang wrote: >> index 3965e73..624eac9 100644 >> --- a/drivers/iommu/intel-iommu.c >> +++ b/drivers/iommu/intel-iommu.c >> @@ -2024,6 +2024,25 @@ static int domain_context_mapping_one(struct >> dmar_do

RE: [PATCH 02/10] iommu/of: Prepare for deferred IOMMU configuration

2016-12-01 Thread Sricharan
Hi Robin,Lorenzo, >On Wed, Nov 30, 2016 at 04:42:27PM +, Robin Murphy wrote: >> On 30/11/16 16:17, Lorenzo Pieralisi wrote: >> > Sricharan, Robin, >> > >> > I gave this series a go on ACPI and apart from an SMMU v3 fix-up >> > it seems to work, more thorough testing required though. >> > >> >

[PATCH] iommu/intel-iommu: fix pasid table size encoding

2016-12-01 Thread Jacob Pan
Different encodings are used to represent supported PASID bits and number of PASID table entries. The current code assigns ecap_pss directly to extended context table entry PTS which is wrong and could result in writing non-zero bits to the reserved fields. IOMMU fault reason 11 will be reported wh