[PATCH 5/5] drm/amdgpu: sdma use amdgpu_ras_feature_enable_on_boot
Pan, Xinhui
Xinhui.Pan at amd.com
Mon Apr 8 07:10:01 UTC 2019
handle ras enable on boot.
Signed-off-by: xinhui pan <xinhui.pan at amd.com>
---
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
index 7be5228f6c6f..ada18a54c56b 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
@@ -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;
@@ -1569,7 +1569,7 @@ static int sdma_v4_0_late_init(void *handle)
debugfs:
amdgpu_ras_interrupt_remove_handler(adev, &ih_info);
interrupt:
- amdgpu_ras_feature_enable(adev, *ras_if, 0);
+ amdgpu_ras_feature_enable_on_boot(adev, *ras_if, 0);
feature:
kfree(*ras_if);
*ras_if = NULL;
--
2.17.1
More information about the amd-gfx
mailing list