Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: Initialize mmhub v1_8 ras function

Initialize mmhub v1_8 ras function.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Hawking Zhang and committed by
Alex Deucher
73c2b3fd ccfdbd4b

+17
+3
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
··· 1419 1419 case IP_VERSION(9, 4, 2): 1420 1420 adev->mmhub.ras = &mmhub_v1_7_ras; 1421 1421 break; 1422 + case IP_VERSION(1, 8, 0): 1423 + adev->mmhub.ras = &mmhub_v1_8_ras; 1424 + break; 1422 1425 default: 1423 1426 /* mmhub ras is not available */ 1424 1427 break;
+13
drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c
··· 847 847 for_each_inst(i, inst_mask) 848 848 mmhub_v1_8_inst_reset_ras_err_status(adev, i); 849 849 } 850 + 851 + static const struct amdgpu_ras_block_hw_ops mmhub_v1_8_ras_hw_ops = { 852 + .query_ras_error_count = mmhub_v1_8_query_ras_error_count, 853 + .reset_ras_error_count = mmhub_v1_8_reset_ras_error_count, 854 + .query_ras_error_status = mmhub_v1_8_query_ras_error_status, 855 + .reset_ras_error_status = mmhub_v1_8_reset_ras_error_status, 856 + }; 857 + 858 + struct amdgpu_mmhub_ras mmhub_v1_8_ras = { 859 + .ras_block = { 860 + .hw_ops = &mmhub_v1_8_ras_hw_ops, 861 + }, 862 + };
+1
drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.h
··· 24 24 #define __MMHUB_V1_8_H__ 25 25 26 26 extern const struct amdgpu_mmhub_funcs mmhub_v1_8_funcs; 27 + extern struct amdgpu_mmhub_ras mmhub_v1_8_ras; 27 28 28 29 #endif