aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorxinhui pan <xinhui.pan@amd.com>2019-04-08 02:57:28 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-04-10 14:49:33 -0400
commit7dd609da9b4e8bc4a5725392c3e528ad65cfe100 (patch)
treed575411bd82c470f3461c921e627740b53362d13 /drivers
parent53d650548c386f1e9f246b05c40a1960dae37437 (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
index e858043a3a0e..31d5b3fdd5cd 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)
1518 int r; 1518 int r;
1519 1519
1520 if (!amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__SDMA)) { 1520 if (!amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__SDMA)) {
1521 amdgpu_ras_feature_enable(adev, &ras_block, 0); 1521 amdgpu_ras_feature_enable_on_boot(adev, &ras_block, 0);
1522 return 0; 1522 return 0;
1523 } 1523 }
1524 1524
@@ -1532,7 +1532,7 @@ static int sdma_v4_0_late_init(void *handle)
1532 1532
1533 **ras_if = ras_block; 1533 **ras_if = ras_block;
1534 1534
1535 r = amdgpu_ras_feature_enable(adev, *ras_if, 1); 1535 r = amdgpu_ras_feature_enable_on_boot(adev, *ras_if, 1);
1536 if (r) 1536 if (r)
1537 goto feature; 1537 goto feature;
1538 1538