[PATCH v2 2/8] iommu/arm-smmu-v3: Move pgsize out of arm_smmu_inv

Jason Gunthorpe jgg at nvidia.com
Wed Jul 8 11:43:01 PDT 2026


On Tue, Jul 07, 2026 at 10:21:40AM -0700, Nicolin Chen wrote:
> On Tue, Jul 07, 2026 at 01:15:06PM -0300, Jason Gunthorpe wrote:
> > On Mon, Jul 06, 2026 at 08:57:22PM -0700, Nicolin Chen wrote:
> > > > @@ -734,7 +734,6 @@ struct arm_smmu_inv {
> > > >  	u8 nsize_opcode;
> > > >  	u32 id; /* ASID or VMID or SID */
> > > >  	union {
> > > > -		size_t pgsize; /* ARM_SMMU_FEAT_RANGE_INV */
> > > >  		u32 ssid; /* INV_TYPE_ATS */
> > > >  	};
> > > 
> > > So, union has only "ssid" now. Should we unwrap it?
> > 
> > I thought we might need it with some of the other series?
> 
> I was wondering about that too, but couldn't find in those series
> of mine (smmuv3_kdump, smmuv3_atc_timeout, smmuv3_share_domain).

Ok:

-       union {
-               u32 ssid; /* INV_TYPE_ATS */
-       };
+
+       /* Only used by INV_TYPE_ATS */
+       u32 ssid;

Jason



More information about the linux-arm-kernel mailing list