Skip to content

Commit 5dbc460

Browse files
Dylan.WuDylan.Wu
authored andcommitted
iommu: Add CIXTEK-specific DMA domain handling based on ACPI OEM_ID
extends the PCI device domain selection logic by introducing a vendor-specific path for CIXTEK platforms. Signed-off-by: wenxue.ding <[email protected]> Signed-off-by: Dylan.Wu" <[email protected]>
1 parent 9466a08 commit 5dbc460

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2923,7 +2923,11 @@ static int arm_smmu_def_domain_type(struct device *dev)
29232923

29242924
if (IS_HISI_PTT_DEVICE(pdev))
29252925
return IOMMU_DOMAIN_IDENTITY;
2926-
}
2926+
} else {
2927+
if (acpi_check_oem_id(dev, "CIXTEK"))
2928+
return IOMMU_DOMAIN_DMA;
2929+
}
2930+
29272931

29282932
return 0;
29292933
}

0 commit comments

Comments
 (0)