[PATCH 2/2] drm/amdgpu: Bypass resizing bars for PVH dom0
Jiqian Chen
Jiqian.Chen at amd.com
Tue Nov 5 06:05:31 UTC 2024
VPCI of Xen doesn't support resizable bar. When discrete GPU is used on
PVH dom0 which using the VPCI, amdgpu fails to probe, so we need to
disable this capability for PVH dom0.
Signed-off-by: Jiqian Chen <Jiqian.Chen at amd.com>
Reviewed-by: Huang Rui <Ray.Huang at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index b3fb92bbd9e2..012feb3790dd 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1619,6 +1619,10 @@ int amdgpu_device_resize_fb_bar(struct amdgpu_device *adev)
if (!IS_ENABLED(CONFIG_PHYS_ADDR_T_64BIT))
return 0;
+ /* Bypass for PVH dom0 which doesn't support resizable bar */
+ if (xen_initial_domain() && xen_pvh_domain())
+ return 0;
+
/* Bypass for VF */
if (amdgpu_sriov_vf(adev))
return 0;
--
2.34.1
More information about the amd-gfx
mailing list