We don't use KIQ on GFX7 but otherwise MQD works the
same way as GFX8 and newer.

Signed-off-by: Timur Kristóf <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
index 96c9d4f00b27..0f142c156afa 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
@@ -420,7 +420,7 @@ int amdgpu_gfx_mqd_sw_init(struct amdgpu_device *adev,
 #endif
 
        /* create MQD for KIQ */
-       if (!adev->enable_mes_kiq && !ring->mqd_obj) {
+       if (adev->asic_type >= CHIP_TOPAZ && !adev->enable_mes_kiq && 
!ring->mqd_obj) {
                /* originaly the KIQ MQD is put in GTT domain, but for SRIOV 
VRAM domain is a must
                 * otherwise hypervisor trigger SAVE_VF fail after driver 
unloaded which mean MQD
                 * deallocated and gart_unbind, to strict diverage we decide to 
use VRAM domain for
-- 
2.55.0

Reply via email to