summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
diff options
context:
space:
mode:
authorHawking Zhang <Hawking.Zhang@amd.com>2021-03-19 15:50:14 +0800
committerAlex Deucher <alexander.deucher@amd.com>2021-04-09 16:51:19 -0400
commit8bc7b360ad4b0a090380d7548dbf24a627f0b035 (patch)
tree2558b4b9d5981155412970daaeed023795a3eafe /drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
parent68d705dd6a4091f99b710204df63ba6b5a686ae9 (diff)
downloadlinux-stable-8bc7b360ad4b0a090380d7548dbf24a627f0b035.tar.gz
linux-stable-8bc7b360ad4b0a090380d7548dbf24a627f0b035.tar.bz2
linux-stable-8bc7b360ad4b0a090380d7548dbf24a627f0b035.zip
drm/amdgpu: split mmhub callbacks into ras and non-ras ones
mmhub ras is only avaiable in cerntain mmhub ip generation. Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Dennis Li <Dennis.Li@amd.com> Reviewed-by: John Clements <John.Clements@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index d139b5f737e1..e1f9cc96e567 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -1241,8 +1241,9 @@ static int gmc_v9_0_late_init(void *handle)
}
}
- if (adev->mmhub.funcs && adev->mmhub.funcs->reset_ras_error_count)
- adev->mmhub.funcs->reset_ras_error_count(adev);
+ if (adev->mmhub.ras_funcs &&
+ adev->mmhub.ras_funcs->reset_ras_error_count)
+ adev->mmhub.ras_funcs->reset_ras_error_count(adev);
r = amdgpu_gmc_ras_late_init(adev);
if (r)