[PATCH v5 15/27] iommu/arm-smmu-v3: Add ssid to struct arm_smmu_master_domain

Jason Gunthorpe jgg at nvidia.com
Wed Mar 20 05:53:41 PDT 2024


On Tue, Mar 19, 2024 at 09:31:17PM +0800, Michael Shavit wrote:
> > --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h
> > +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h
> > @@ -738,6 +738,7 @@ struct arm_smmu_domain {
> >  struct arm_smmu_master_domain {
> >         struct list_head devices_elm;
> >         struct arm_smmu_master *master;
> > +       u16 ssid;
> >  };
> 
> SMMU_IDR1.SSIDSIZE may be up to 20 according to the spec. The value
> read from this register is used to populate iommu.max_pasids as well
> as to compute the smmu/master ssid_bits fields so u16 is insufficient
> here.

Right, that should be ioasid_t

Thanks,
Jason



More information about the linux-arm-kernel mailing list