drm/amdgpu: gfx use amdgpu_ras_feature_enable_on_boot
authorxinhui pan <xinhui.pan@amd.com>
Mon, 8 Apr 2019 06:55:45 +0000 (14:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2019 18:49:21 +0000 (13:49 -0500)
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>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index 3765d97b851285ccd926c05398026588148038a1..58f5b1015de191372f8cdf0d3bafca85fcf85006 100644 (file)
@@ -3568,7 +3568,7 @@ static int gfx_v9_0_ecc_late_init(void *handle)
        int r;
 
        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;
        }
 
@@ -3581,7 +3581,7 @@ static int gfx_v9_0_ecc_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;