Messages in this thread | | | Date | Tue, 1 Aug 2023 11:42:30 -0300 | From | Jason Gunthorpe <> | Subject | Re: [PATCH v2 7/8] iommu/arm-smmu-v3: Move CD table to arm_smmu_master |
| |
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@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@nvidia.com>
Jason
| |