Re: [PATCH 28/37] iommu/arm-smmu-v3: Maintain a SID->device structure

2018-03-14 Thread Jean-Philippe Brucker
On 08/03/18 17:34, Jonathan Cameron wrote: >> static int arm_smmu_add_device(struct device *dev) >> @@ -2198,6 +2298,7 @@ static int arm_smmu_add_device(struct device *dev) >> >> group = iommu_group_get_for_dev(dev); >> if (!IS_ERR(group)) { >> +arm_smmu_insert_master(smmu,

Re: [PATCH 28/37] iommu/arm-smmu-v3: Maintain a SID->device structure

2018-03-08 Thread Jonathan Cameron
On Mon, 12 Feb 2018 18:33:43 + Jean-Philippe Brucker wrote: > When handling faults from the event or PRI queue, we need to find the > struct device associated to a SID. Add a rb_tree to keep track of SIDs. > > Signed-off-by: Jean-Philippe Brucker nipick inline. > --- > drivers/iommu/arm-

[PATCH 28/37] iommu/arm-smmu-v3: Maintain a SID->device structure

2018-02-12 Thread Jean-Philippe Brucker
When handling faults from the event or PRI queue, we need to find the struct device associated to a SID. Add a rb_tree to keep track of SIDs. Signed-off-by: Jean-Philippe Brucker --- drivers/iommu/arm-smmu-v3.c | 105 1 file changed, 105 insertions(+)