drm/amd: Disable MES LR compute W/A
Subsystems (2)
PATCH 1/1 drm/amd: Disable MES LR compute W/A
A workaround was introduced in commit 1fb710793ce2 ("drm/amdgpu: Enable MES lr_compute_wa by default") to help with some hangs observed in gfx1151.
This WA didn't fully fix the issue. It was actually fixed by adjusting the VGPR size to the correct value that matched the hardware in commit cf326449637a5 ("drm/amdkfd: bump minimum vgpr size for gfx1151").
There are reports of instability on other products with newer GC microcode versions, and I believe they're caused by this workaround. As we don't need the workaround any more, remove it.
--- drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 5 ----- drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 5 ----- 2 files changed, 10 deletions(-)
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c +0 -5
@@ -720,11 +720,6 @@ static int mes_v11_0_set_hw_resources(struct amdgpu_mes *mes) mes_set_hw_res_pkt.enable_reg_active_poll =1 ; mes_set_hw_res_pkt.enable_level_process_quantum_check =1 ; mes_set_hw_res_pkt.oversubscription_timer =50 ; -if ((mes->adev->mes.sched_version &AMDGPU_MES_VERSION_MASK ) >=0x7f ) - mes_set_hw_res_pkt.enable_lr_compute_wa =1 ; -else -dev_info_once (mes->adev->dev, -"MES FW version must be >= 0x7f to enable LR compute workaround.\n" );if (amdgpu_mes_log_enable) { mes_set_hw_res_pkt.enable_mes_event_int_logging =1 ;
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c +0 -5
@@ -779,11 +779,6 @@ static int mes_v12_0_set_hw_resources(struct amdgpu_mes *mes, int pipe) mes_set_hw_res_pkt.use_different_vmid_compute =1 ; mes_set_hw_res_pkt.enable_reg_active_poll =1 ; mes_set_hw_res_pkt.enable_level_process_quantum_check =1 ; -if ((mes->adev->mes.sched_version &AMDGPU_MES_VERSION_MASK ) >=0x82 ) - mes_set_hw_res_pkt.enable_lr_compute_wa =1 ; -else -dev_info_once (adev->dev, -"MES FW version must be >= 0x82 to enable LR compute workaround.\n" );/* * Keep oversubscribe timer for sdma . When we have unmapped doorbell
Signature · 1 line
2.53.0
Quoted 8 lines · Mario Limonciello
A workaround was introduced in commit
1fb710793ce2("drm/amdgpu: Enable MESlr_compute_waby default") to help with some hangs observed in gfx1151.This WA didn't fully fix the issue. It was actually fixed by adjusting the VGPR size to the correct value that matched the hardware in commit
cf326449637a5("drm/amdkfd: bump minimum vgpr size for gfx1151").
Quoted 6 lines
There are reports of instability on other products with newer GC microcode versions, and I believe they're caused by this workaround. As we don't need the workaround any more, remove it.
Fixes cf326449637a5 ("drm/amdkfd: bump minimum vgpr size for gfx1151")Signed-off-by Mario Limonciello <[email protected]>
Quoted 40 lines
--- drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 5 ----- drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 5 ----- 2 files changed, 10 deletions(-)drivers/gpu/drm/amd/amdgpu/mes_v11_0.c +0
-5@@ -720,11 +720,6 @@ static int mes_v11_0_set_hw_resources(struct amdgpu_mes *mes) mes_set_hw_res_pkt.enable_reg_active_poll =1 ; mes_set_hw_res_pkt.enable_level_process_quantum_check =1 ; mes_set_hw_res_pkt.oversubscription_timer =50 ; -if ((mes->adev->mes.sched_version &AMDGPU_MES_VERSION_MASK ) >=0x7f ) - mes_set_hw_res_pkt.enable_lr_compute_wa =1 ; -else -dev_info_once (mes->adev->dev, -"MES FW version must be >= 0x7f to enable LR compute workaround.\n" );if (amdgpu_mes_log_enable) { mes_set_hw_res_pkt.enable_mes_event_int_logging =1 ;drivers/gpu/drm/amd/amdgpu/mes_v12_0.c +0
-6@@ -779,11 +779,6 @@ static int mes_v12_0_set_hw_resources(struct amdgpu_mes *mes, int pipe) mes_set_hw_res_pkt.use_different_vmid_compute =1 ; mes_set_hw_res_pkt.enable_reg_active_poll =1 ; mes_set_hw_res_pkt.enable_level_process_quantum_check =1 ; -if ((mes->adev->mes.sched_version &AMDGPU_MES_VERSION_MASK ) >=0x82 ) - mes_set_hw_res_pkt.enable_lr_compute_wa =1 ; -else -dev_info_once (adev->dev, -"MES FW version must be >= 0x82 to enable LR compute workaround.\n" );/* * Keep oversubscribe timer for sdma . When we have unmapped doorbell -- 2.53.0