Skip to content

Commit b406505

Browse files
abhsahunvidia-bfigg
authored andcommitted
NVIDIA: SAUCE: iommu/arm-smmu-v3: Use device ID range for DGX Spark iGPU iommu quirk
BugLink: https://bugs.launchpad.net/bugs/2150487 Replace the explicit DGX Spark iGPU device ID list with a range check covering 0x2E00-0x2E3F to accommodate all possible DGX Spark iGPU PCI device IDs without requiring individual additions. The original quirk was introduced in commit ab85863 ("NVIDIA: SAUCE: iommu/arm-smmu-v3: Set DGX Spark iGPU default domain type to DMA") and extended with two more IDs in commit 8dc61ab ("NVIDIA: SAUCE: iommu/arm-smmu-v3: Add two more DGX Spark iGPU IDs for existing iommu quirk"). Using a range avoids further per-ID additions as new DGX Spark variants are introduced. Signed-off-by: Abhishek Sahu <abhsahu@nvidia.com> Acked-by: Jamie Nguyen <jamien@nvidia.com> Acked-by: Matthew R. Ochs <mochs@nvidia.com> Acked-by: Nirmoy Das <nirmoyd@nvidia.com> Signed-off-by: Brad Figg <bfigg@nvidia.com>
1 parent 738fff0 commit b406505

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3788,8 +3788,7 @@ static int arm_smmu_def_domain_type(struct device *dev)
37883788
return IOMMU_DOMAIN_IDENTITY;
37893789

37903790
if (pdev->vendor == PCI_VENDOR_ID_NVIDIA &&
3791-
(pdev->device == 0x2E12 || pdev->device == 0x2E2A ||
3792-
pdev->device == 0x2E2B))
3791+
pdev->device >= 0x2E00 && pdev->device <= 0x2E3F)
37933792
return IOMMU_DOMAIN_DMA;
37943793
}
37953794

0 commit comments

Comments
 (0)