mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-04 11:07:51 +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:
parent
3098c4937b
commit
96f92373cd
@ -176,6 +176,10 @@ get_drhd_dev_scope_cnt(struct acpi_dmar_hardware_unit *drhd)
|
|||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Application constraint: The dedicated DMAR unit for Intel integrated GPU
|
||||||
|
* shall be available on the physical platform.
|
||||||
|
*/
|
||||||
static int32_t
|
static int32_t
|
||||||
handle_one_drhd(struct acpi_dmar_hardware_unit *acpi_drhd,
|
handle_one_drhd(struct acpi_dmar_hardware_unit *acpi_drhd,
|
||||||
struct dmar_drhd *drhd)
|
struct dmar_drhd *drhd)
|
||||||
@ -210,7 +214,6 @@ handle_one_drhd(struct acpi_dmar_hardware_unit *acpi_drhd,
|
|||||||
if (((drhd->segment << 16U) |
|
if (((drhd->segment << 16U) |
|
||||||
(dev_scope->bus << 8U) |
|
(dev_scope->bus << 8U) |
|
||||||
dev_scope->devfun) == CONFIG_GPU_SBDF) {
|
dev_scope->devfun) == CONFIG_GPU_SBDF) {
|
||||||
ASSERT(dev_count == 1, "no dedicated iommu for gpu");
|
|
||||||
drhd->ignore = true;
|
drhd->ignore = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user