Re: [PATCH] iommu/arm-smmu-v3: Allow stream table to have nodes with the same ID
From: Jason Gunthorpe
Date: Fri Apr 11 2025 - 09:48:22 EST
On Fri, Apr 11, 2025 at 01:35:34PM +0000, Pranjal Shrivastava wrote:
> Isn't the device grouped *after* the ops->probe_device call? I see that
> the dev->iommu_group is assigned the ops->probe_device call in
> iommu_init_device.. so I guess this would still fail?
Yes you are right, we'd have to also change to setup the stream table
inside the device_group call back to validate stream table groups are
the same.
At that point it is probably trivial to just return the group already
in the stream table.
Jason