mbox series

[v2,0/2] add nr_ats_masters for quickly check

Message ID 20190815054439.30652-1-thunder.leizhen@huawei.com
Headers show
Series add nr_ats_masters for quickly check | expand

Message

Leizhen (ThunderTown) Aug. 15, 2019, 5:44 a.m. UTC
v1 --> v2:
1. change the type of nr_ats_masters from atomic_t to int, and move its
   ind/dec operation from arm_smmu_enable_ats()/arm_smmu_disable_ats() to
   arm_smmu_attach_dev()/arm_smmu_detach_dev(), and protected by
   "spin_lock_irqsave(&smmu_domain->devices_lock, flags);"

Zhen Lei (2):
  iommu/arm-smmu-v3: don't add a master into smmu_domain before it's
    ready
  iommu/arm-smmu-v3: add nr_ats_masters for quickly check

 drivers/iommu/arm-smmu-v3.c | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

-- 
1.8.3