[PATCH v7 06/14] iommu/arm-smmu-v3: Do not use master->sva_enable to restrict attaches
Nicolin Chen
nicolinc at nvidia.com
Tue May 14 17:36:54 PDT 2024
On Wed, May 08, 2024 at 03:57:14PM -0300, Jason Gunthorpe wrote:
> We no longer need a master->sva_enable to control what attaches are
> allowed. Instead we can tell if the attach is legal based on the current
> configuration of the master.
>
> Keep track of the number of valid CD entries for SSID's in the cd_table
> and if the cd_table has been installed in the STE directly so we know what
> the configuration is.
>
> The attach logic is then made into:
> - SVA bind, check if the CD is installed
> - RID attach of S2, block if SSIDs are used
> - RID attach of IDENTITY/BLOCKING, block if SSIDs are used
>
> Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>
With that in_ste check removed,
Reviewed-y: Nicolin Chen <nicolinc at nvidia.com>
More information about the linux-arm-kernel
mailing list