OSDN Git Service

drm/amdgpu: move xgmi ras functions to xgmi_ras_funcs
authorHawking Zhang <Hawking.Zhang@amd.com>
Thu, 18 Mar 2021 12:18:19 +0000 (20:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:51:07 +0000 (16:51 -0400)
commit52137ca8526cdeceab7651c314ce68ac49963512
treecf6a7ae79c9789c07a1ab95b2cd20b3ccf28463e
parent6e36f23193cc870856a41e87281f62fb2b04bd1f
drm/amdgpu: move xgmi ras functions to xgmi_ras_funcs

xgmi ras is not managed by gpu driver when gpu is
connected to cpu through xgmi. move all xgmi ras
functions to xgmi_ras_funcs so gpu driver only
initializes xgmi ras functions when it manages
xgmi ras.

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c