mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-17 23:08:07 +00:00
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 <junming.liu@intel.com> Reviewed-by: Wu Binbin <binbin.wu@intel.com> Reviewed-by: Wu Xiangyang <xiangyang.wu@linux.intel.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user