diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2024-04-30 14:21:38 -0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-05-01 15:33:52 +0100 |
commit | 13abe4faac4348da0cf1c4eeb2b1b39fcfdb4b8f (patch) | |
tree | 969421f373e3c5fde3c7eaa0b9e3208c4c412be9 /scripts/gdb/linux/interrupts.py | |
parent | b2f4c0fcf094dacd2d1fb96a6fd6598919501589 (diff) |
iommu/arm-smmu-v3: Allocate the CD table entry in advance
Avoid arm_smmu_attach_dev() having to undo the changes to the
smmu_domain->devices list, acquire the cdptr earlier so we don't need to
handle that error.
Now there is a clear break in arm_smmu_attach_dev() where all the
prep-work has been done non-disruptively and we commit to making the HW
change, which cannot fail.
This completes transforming arm_smmu_attach_dev() so that it does not
disturb the HW if it fails.
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Michael Shavit <mshavit@google.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Mostafa Saleh <smostafa@google.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/6-v9-5040dc602008+177d7-smmuv3_newapi_p2_jgg@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions