diff options
| author | Hawking Zhang <[email protected]> | 2023-01-22 15:26:40 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-06-09 13:53:42 +0000 |
| commit | 73c2b3fd2c515bcb819d801c5c4bf053fdb1e5cb (patch) | |
| tree | c538423db5085dae72b5caed6a02cbfd07f3eafa /drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c | |
| parent | drm/amdgpu: Add reset_ras_error_status for mmhub v1_8 (diff) | |
| download | kernel-73c2b3fd2c515bcb819d801c5c4bf053fdb1e5cb.tar.gz kernel-73c2b3fd2c515bcb819d801c5c4bf053fdb1e5cb.zip | |
drm/amdgpu: Initialize mmhub v1_8 ras function
Initialize mmhub v1_8 ras function.
Signed-off-by: Hawking Zhang <[email protected]>
Reviewed-by: Tao Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c index 4f274c7db591..3648994724c2 100644 --- a/drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c +++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c @@ -847,3 +847,16 @@ static void mmhub_v1_8_reset_ras_error_status(struct amdgpu_device *adev) for_each_inst(i, inst_mask) mmhub_v1_8_inst_reset_ras_err_status(adev, i); } + +static const struct amdgpu_ras_block_hw_ops mmhub_v1_8_ras_hw_ops = { + .query_ras_error_count = mmhub_v1_8_query_ras_error_count, + .reset_ras_error_count = mmhub_v1_8_reset_ras_error_count, + .query_ras_error_status = mmhub_v1_8_query_ras_error_status, + .reset_ras_error_status = mmhub_v1_8_reset_ras_error_status, +}; + +struct amdgpu_mmhub_ras mmhub_v1_8_ras = { + .ras_block = { + .hw_ops = &mmhub_v1_8_ras_hw_ops, + }, +}; |
