Re: [PATCH 27/37] iommu/arm-smmu-v3: Register fault workqueue

2018-04-04 Thread Jean-Philippe Brucker
On 22/03/18 01:09, Yisheng Xie wrote: > Hi Jean, > > On 2018/3/21 21:24, Jean-Philippe Brucker wrote: >> Hi Yisheng, >> >> On 19/03/18 11:03, Yisheng Xie wrote: >>> Hi Jean, >>> >>> [...] @@ -3168,6 +3260,13 @@ static int arm_smmu_device_probe(struct platform_device *pdev) if

Re: [PATCH 27/37] iommu/arm-smmu-v3: Register fault workqueue

2018-03-21 Thread Yisheng Xie
Hi Jean, On 2018/3/21 21:24, Jean-Philippe Brucker wrote: > Hi Yisheng, > > On 19/03/18 11:03, Yisheng Xie wrote: >> Hi Jean, >> >> [...] >>> @@ -3168,6 +3260,13 @@ static int arm_smmu_device_probe(struct >>> platform_device *pdev) >>> if (ret) >>> return ret; >>> >>> + if

Re: [PATCH 27/37] iommu/arm-smmu-v3: Register fault workqueue

2018-03-21 Thread Jean-Philippe Brucker
Hi Yisheng, On 19/03/18 11:03, Yisheng Xie wrote: > Hi Jean, > > [...] >> @@ -3168,6 +3260,13 @@ static int arm_smmu_device_probe(struct >> platform_device *pdev) >> if (ret) >> return ret; >> >> +if (smmu->features & (ARM_SMMU_FEAT_STALLS | ARM_SMMU_FEAT_PRI)) { >> +

Re: [PATCH 27/37] iommu/arm-smmu-v3: Register fault workqueue

2018-03-19 Thread Yisheng Xie
Hi Jean, [...] > @@ -3168,6 +3260,13 @@ static int arm_smmu_device_probe(struct > platform_device *pdev) > if (ret) > return ret; > > + if (smmu->features & (ARM_SMMU_FEAT_STALLS | ARM_SMMU_FEAT_PRI)) { > + smmu->faultq_nb.notifier_call =

Re: [PATCH 27/37] iommu/arm-smmu-v3: Register fault workqueue

2018-03-14 Thread Jean-Philippe Brucker
On 08/03/18 17:44, Jonathan Cameron wrote: >> @@ -3168,6 +3260,13 @@ static int arm_smmu_device_probe(struct >> platform_device *pdev) >> if (ret) >> return ret; >> >> +if (smmu->features & (ARM_SMMU_FEAT_STALLS | ARM_SMMU_FEAT_PRI)) { >> +

Re: [PATCH 27/37] iommu/arm-smmu-v3: Register fault workqueue

2018-03-08 Thread Jonathan Cameron
On Mon, 12 Feb 2018 18:33:42 + Jean-Philippe Brucker wrote: > When using PRI or Stall, the PRI or event handler enqueues faults into the > core fault queue. Register it based on the SMMU features. > > When the core stops using a PASID, it notifies the SMMU to

[PATCH 27/37] iommu/arm-smmu-v3: Register fault workqueue

2018-02-12 Thread Jean-Philippe Brucker
When using PRI or Stall, the PRI or event handler enqueues faults into the core fault queue. Register it based on the SMMU features. When the core stops using a PASID, it notifies the SMMU to flush all instances of this PASID from the PRI queue. Add a way to flush the PRI and event queue. PRI and