Skip to content

Commit 93c5bcd

Browse files
mukjoshialexdeucher
authored andcommitted
drm/amdgpu: Conditionally reset SDMA RAS error counts
Reset SDMA RAS error counts during init only if persistent EDC harvesting is not supported. Signed-off-by: Mukul Joshi <[email protected]> Reviewed-by: John Clements <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 7981ec6 commit 93c5bcd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1896,8 +1896,11 @@ static int sdma_v4_0_late_init(void *handle)
18961896

18971897
sdma_v4_0_setup_ulv(adev);
18981898

1899-
if (adev->sdma.funcs && adev->sdma.funcs->reset_ras_error_count)
1900-
adev->sdma.funcs->reset_ras_error_count(adev);
1899+
if (!amdgpu_persistent_edc_harvesting_supported(adev)) {
1900+
if (adev->sdma.funcs &&
1901+
adev->sdma.funcs->reset_ras_error_count)
1902+
adev->sdma.funcs->reset_ras_error_count(adev);
1903+
}
19011904

19021905
if (adev->sdma.funcs && adev->sdma.funcs->ras_late_init)
19031906
return adev->sdma.funcs->ras_late_init(adev, &ih_info);

0 commit comments

Comments
 (0)