File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -4593,6 +4593,10 @@ bool amdgpu_device_should_recover_gpu(struct amdgpu_device *adev)
4593
4593
if (amdgpu_gpu_recovery == 0 )
4594
4594
goto disabled ;
4595
4595
4596
+ /* Skip soft reset check in fatal error mode */
4597
+ if (!amdgpu_ras_is_poison_mode_supported (adev ))
4598
+ return true;
4599
+
4596
4600
if (!amdgpu_device_ip_check_soft_reset (adev )) {
4597
4601
dev_info (adev -> dev ,"Timeout, but no hardware hang detected.\n" );
4598
4602
return false;
Original file line number Diff line number Diff line change @@ -1948,7 +1948,12 @@ static void amdgpu_ras_do_recovery(struct work_struct *work)
1948
1948
1949
1949
reset_context .method = AMD_RESET_METHOD_NONE ;
1950
1950
reset_context .reset_req_dev = adev ;
1951
- clear_bit (AMDGPU_NEED_FULL_RESET , & reset_context .flags );
1951
+
1952
+ /* Perform full reset in fatal error mode */
1953
+ if (!amdgpu_ras_is_poison_mode_supported (ras -> adev ))
1954
+ set_bit (AMDGPU_NEED_FULL_RESET , & reset_context .flags );
1955
+ else
1956
+ clear_bit (AMDGPU_NEED_FULL_RESET , & reset_context .flags );
1952
1957
1953
1958
amdgpu_device_gpu_recover (ras -> adev , NULL , & reset_context );
1954
1959
}
You can’t perform that action at this time.
0 commit comments