From 96f92373cd4187921eb05b1a0c1ff46ef28de2a1 Mon Sep 17 00:00:00 2001 From: Junming Liu Date: Wed, 26 Feb 2020 09:55:51 +0000 Subject: [PATCH] hv:refine comment about intel integrated gpu dmar The dedicated DMAR unit for Intel integrated GPU shall be available on the physical platform. So remove the assert and add application constraint in handle_one_drhd func. Tracked-On: #4405 Signed-off-by: Junming Liu Reviewed-by: Wu Binbin Reviewed-by: Wu Xiangyang --- hypervisor/acpi_parser/dmar_parse.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hypervisor/acpi_parser/dmar_parse.c b/hypervisor/acpi_parser/dmar_parse.c index 41f746d9c..88505d5d5 100644 --- a/hypervisor/acpi_parser/dmar_parse.c +++ b/hypervisor/acpi_parser/dmar_parse.c @@ -176,6 +176,10 @@ get_drhd_dev_scope_cnt(struct acpi_dmar_hardware_unit *drhd) return count; } +/** + * @Application constraint: The dedicated DMAR unit for Intel integrated GPU + * shall be available on the physical platform. + */ static int32_t handle_one_drhd(struct acpi_dmar_hardware_unit *acpi_drhd, struct dmar_drhd *drhd) @@ -210,7 +214,6 @@ handle_one_drhd(struct acpi_dmar_hardware_unit *acpi_drhd, if (((drhd->segment << 16U) | (dev_scope->bus << 8U) | dev_scope->devfun) == CONFIG_GPU_SBDF) { - ASSERT(dev_count == 1, "no dedicated iommu for gpu"); drhd->ignore = true; } }