drm/amdgpu: Add query_ras_error_count for sdma v4_4_2
authorHawking Zhang <Hawking.Zhang@amd.com>
Sun, 5 Feb 2023 14:54:50 +0000 (22:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:53:00 +0000 (09:53 -0400)
commitdc37a9194ad20c4f09f22ec79cc2b5e5eb57c5a2
tree6a5d6d239078576118fc4cc9787a7c669cd9eb89
parentd90d90a1978af6530c7d8b201c4ab117d0506b1a
drm/amdgpu: Add query_ras_error_count for sdma v4_4_2

Add query_ras_error_count callback for sdma
v4_4_2. It will be used to query and log sdma
uncorrectable error count and memory block.

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c