aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2024-12-12 17:25:37 +0100
committerJoerg Roedel <jroedel@suse.de>2024-12-12 17:25:37 +0100
commit7460d43bd75d261cdba5708bc349ce7f16759d78 (patch)
treec659ba2f312c200041f875e5453f5bce031d3bdf
parentiommu/amd: Add lockdep asserts for domain->dev_list (diff)
parentiommu/tegra241-cmdqv: do not use smp_processor_id in preemptible context (diff)
downloadlinux-rng-7460d43bd75d261cdba5708bc349ce7f16759d78.tar.xz
linux-rng-7460d43bd75d261cdba5708bc349ce7f16759d78.zip
Merge tag 'arm-smmu-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux into fixes
Arm SMMU fixes for 6.13-rc - Use raw_smp_processor_id() when balancing traffic for NVIDIA's custom command queue implementation.
-rw-r--r--drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c b/drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
index c8ec74f089f3..6e41ddaa24d6 100644
--- a/drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
+++ b/drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
@@ -339,7 +339,7 @@ tegra241_cmdqv_get_cmdq(struct arm_smmu_device *smmu,
* one CPU at a time can enter the process, while the others
* will be spinning at the same lock.
*/
- lidx = smp_processor_id() % cmdqv->num_lvcmdqs_per_vintf;
+ lidx = raw_smp_processor_id() % cmdqv->num_lvcmdqs_per_vintf;
vcmdq = vintf->lvcmdqs[lidx];
if (!vcmdq || !READ_ONCE(vcmdq->enabled))
return NULL;