Re: [PATCH v9 07/10] iommu/arm-smmu-v3: Maintain a SID->device structure

2021-01-19 Thread Jonathan Cameron
On Fri, 8 Jan 2021 15:52:15 +0100 Jean-Philippe Brucker wrote: > When handling faults from the event or PRI queue, we need to find the > struct device associated with a SID. Add a rb_tree to keep track of > SIDs. > > Signed-off-by: Jean-Philippe Brucker One totally trivial point if you happen t

[PATCH v9 07/10] iommu/arm-smmu-v3: Maintain a SID->device structure

2021-01-08 Thread Jean-Philippe Brucker
When handling faults from the event or PRI queue, we need to find the struct device associated with a SID. Add a rb_tree to keep track of SIDs. Signed-off-by: Jean-Philippe Brucker --- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 13 +- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 161 +++