mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
drm/amdgpu: replace reset_error_count with amdgpu_ras_reset_error_count
Simplify the code. Signed-off-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -1276,11 +1276,8 @@ static int sdma_v4_4_2_late_init(void *handle)
|
||||
.cb = sdma_v4_4_2_process_ras_data_cb,
|
||||
};
|
||||
#endif
|
||||
if (!amdgpu_persistent_edc_harvesting_supported(adev)) {
|
||||
if (adev->sdma.ras && adev->sdma.ras->ras_block.hw_ops &&
|
||||
adev->sdma.ras->ras_block.hw_ops->reset_ras_error_count)
|
||||
adev->sdma.ras->ras_block.hw_ops->reset_ras_error_count(adev);
|
||||
}
|
||||
if (!amdgpu_persistent_edc_harvesting_supported(adev))
|
||||
amdgpu_ras_reset_error_count(adev, AMDGPU_RAS_BLOCK__SDMA);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user