[PATCH v2 7/8] iommu/arm-smmu-v3: Move CD table to arm_smmu_master

Jason Gunthorpe jgg at nvidia.com
Tue Aug 1 07:42:30 PDT 2023


On Mon, Jul 31, 2023 at 06:48:17PM +0800, Michael Shavit wrote:
> With this change, each master will now own its own CD table instead of
> sharing one with other masters attached to the same domain. Attaching a
> stage 1 domain installs CD entries into the master's CD table. SVA
> writes its CD entries into each master's CD table if the domain is
> shared across masters.
> 
> Signed-off-by: Michael Shavit <mshavit at google.com>
> ---
> 
> Changes in v2:
> - Allocate CD table when it's first needed instead of on probe.
> 
> Changes in v1:
> - The master's CD table allocation was previously split to a different
>   commit. This change now atomically allocates the new CD table, uses
>   it, and removes the old one.
> 
>  drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 67 +++++++++------------
>  drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h |  6 +-
>  2 files changed, 32 insertions(+), 41 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>

Jason



More information about the linux-arm-kernel mailing list