mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-18 17:33:43 +00:00
hv: More changes to enable GPU passthru
Allow the IOMMU for GPU PCI device. Signed-off-by: Anitha Chrisanthus <anitha.chrisanthus@intel.com> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
This commit is contained in:
parent
dcf8704af2
commit
4752ce0a1e
@ -253,12 +253,14 @@ handle_one_drhd(struct acpi_dmar_hardware_unit *acpi_drhd,
|
|||||||
|
|
||||||
consumed = handle_dmar_devscope(dev_scope, cp, remaining);
|
consumed = handle_dmar_devscope(dev_scope, cp, remaining);
|
||||||
|
|
||||||
|
/*
|
||||||
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");
|
ASSERT(dev_count == 1, "no dedicated iommu for gpu");
|
||||||
drhd->ignore = true;
|
drhd->ignore = true;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if (consumed <= 0)
|
if (consumed <= 0)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user