drm/amdgpu: sdma use amdgpu_ras_feature_enable_on_boot
handle ras enable on boot. Signed-off-by: xinhui pan <xinhui.pan@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
53d650548c
commit
7dd609da9b
|
@ -1518,7 +1518,7 @@ static int sdma_v4_0_late_init(void *handle)
|
|||
int r;
|
||||
|
||||
if (!amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__SDMA)) {
|
||||
amdgpu_ras_feature_enable(adev, &ras_block, 0);
|
||||
amdgpu_ras_feature_enable_on_boot(adev, &ras_block, 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1532,7 +1532,7 @@ static int sdma_v4_0_late_init(void *handle)
|
|||
|
||||
**ras_if = ras_block;
|
||||
|
||||
r = amdgpu_ras_feature_enable(adev, *ras_if, 1);
|
||||
r = amdgpu_ras_feature_enable_on_boot(adev, *ras_if, 1);
|
||||
if (r)
|
||||
goto feature;
|
||||
|
||||
|
|
Loading…
Reference in New Issue