mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-23 05:57:33 +00:00
Always disable the iommu_snoop when enabling the IOMMU for GPU
The IOMMU for GPU doesn't support the snoop_control. So the iommu_snoop is disabled. This can fix the issue of consolefb in SOS. Signed-off-by: Junming Liu <junming.liu@intel.com> Tracked-On: #4360
This commit is contained in:
parent
ca8f7fa4e4
commit
9dd6ef600d
@ -184,7 +184,7 @@ bool iommu_snoop_supported(const struct iommu_domain *iommu)
|
|||||||
bool ret;
|
bool ret;
|
||||||
|
|
||||||
if ((iommu == NULL) || (iommu->iommu_snoop)) {
|
if ((iommu == NULL) || (iommu->iommu_snoop)) {
|
||||||
ret = true;
|
ret = false;
|
||||||
} else {
|
} else {
|
||||||
ret = false;
|
ret = false;
|
||||||
}
|
}
|
||||||
@ -1263,7 +1263,7 @@ struct iommu_domain *create_iommu_domain(uint16_t vm_id, uint64_t translation_ta
|
|||||||
domain->trans_table_ptr = translation_table;
|
domain->trans_table_ptr = translation_table;
|
||||||
domain->addr_width = addr_width;
|
domain->addr_width = addr_width;
|
||||||
domain->is_tt_ept = true;
|
domain->is_tt_ept = true;
|
||||||
domain->iommu_snoop = true;
|
domain->iommu_snoop = false;
|
||||||
|
|
||||||
dev_dbg(ACRN_DBG_IOMMU, "create domain [%d]: vm_id = %hu, ept@0x%x",
|
dev_dbg(ACRN_DBG_IOMMU, "create domain [%d]: vm_id = %hu, ept@0x%x",
|
||||||
vmid_to_domainid(domain->vm_id), domain->vm_id, domain->trans_table_ptr);
|
vmid_to_domainid(domain->vm_id), domain->vm_id, domain->trans_table_ptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user