Use SDMA rather than MES/MMIO.  This is recommended by
the hubs team and aligns with what other OSes do.

Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c 
b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
index b1de39704fa75..b5db3f966ba5b 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
@@ -850,6 +850,8 @@ static int gmc_v12_0_hw_init(struct amdgpu_ip_block 
*ip_block)
        int r;
        struct amdgpu_device *adev = ip_block->adev;
 
+       adev->gmc.gart_inv_method = AMDGPU_TLB_INV_METHOD_SDMA;
+
        /* The sequence of these two function calls matters.*/
        gmc_v12_0_init_golden_registers(adev);
 
-- 
2.55.0

Reply via email to