summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
diff options
context:
space:
mode:
authorTao Zhou <tao.zhou1@amd.com>2019-09-05 14:25:18 +0300
committerAlex Deucher <alexander.deucher@amd.com>2019-09-16 18:06:12 +0300
commit4930aabe7c4e72cc62eca2a800e72eee17f40430 (patch)
tree4d0d9b02f6a00bd02f320328a3ccb00fadf8e086 /drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
parent86edcc7dba53995ea9448e535d7eb21dff5245d0 (diff)
downloadlinux-4930aabe7c4e72cc62eca2a800e72eee17f40430.tar.xz
drm/amdgpu: move umc ras init to umc block
move umc ras init from ras module to umc block, generic ras module should pay less attention to specific ras block. Signed-off-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-by: Guchun Chen <guchun.chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
index c8de127097ab..5683c51710aa 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c
@@ -62,6 +62,10 @@ int amdgpu_umc_ras_late_init(struct amdgpu_device *adev, void *ras_ih_info)
goto free;
}
+ /* ras init of specific umc version */
+ if (adev->umc.funcs && adev->umc.funcs->ras_init)
+ adev->umc.funcs->ras_init(adev);
+
return 0;
late_fini: