Commit a170d49d authored by xinhui pan's avatar xinhui pan Committed by Alex Deucher

drm/amdgpu: gfx use amdgpu_ras_feature_enable_on_boot

handle ras enable on boot.
Signed-off-by: default avatarxinhui pan <xinhui.pan@amd.com>
Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 77de502b
...@@ -3568,7 +3568,7 @@ static int gfx_v9_0_ecc_late_init(void *handle) ...@@ -3568,7 +3568,7 @@ static int gfx_v9_0_ecc_late_init(void *handle)
int r; int r;
if (!amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__GFX)) { if (!amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__GFX)) {
amdgpu_ras_feature_enable(adev, &ras_block, 0); amdgpu_ras_feature_enable_on_boot(adev, &ras_block, 0);
return 0; return 0;
} }
...@@ -3581,7 +3581,7 @@ static int gfx_v9_0_ecc_late_init(void *handle) ...@@ -3581,7 +3581,7 @@ static int gfx_v9_0_ecc_late_init(void *handle)
**ras_if = ras_block; **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) if (r)
goto feature; goto feature;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment