diff options
| author | Hawking Zhang <[email protected]> | 2020-01-08 16:45:18 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-01-14 15:18:08 +0000 |
| commit | 93070deb58c964185acace9fcfdc916a6cea6644 (patch) | |
| tree | 4aab5dcec116ae16eee9f74dd6be6bdeef45eaa2 /drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h | |
| parent | drm/amdgpu: enable VCN2.5 IP block for Arcturus (diff) | |
| download | kernel-93070deb58c964185acace9fcfdc916a6cea6644.tar.gz kernel-93070deb58c964185acace9fcfdc916a6cea6644.zip | |
drm/amdgpu: add query_ras_error_count function for sdma v4
query_ras_error_count function will be invoked to query
single bit error count detected in sdma ip block
Signed-off-by: Hawking Zhang <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h index 346dcb1f7146..3cdf12284ef9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h @@ -50,6 +50,11 @@ struct amdgpu_sdma_instance { bool burst_nop; }; +struct amdgpu_sdma_ras_funcs { + int (*query_ras_error_count)(struct amdgpu_device *adev, + uint32_t instance, void *ras_error_status); +}; + struct amdgpu_sdma { struct amdgpu_sdma_instance instance[AMDGPU_MAX_SDMA_INSTANCES]; struct drm_gpu_scheduler *sdma_sched[AMDGPU_MAX_SDMA_INSTANCES]; @@ -61,6 +66,7 @@ struct amdgpu_sdma { uint32_t srbm_soft_reset; bool has_page_queue; struct ras_common_if *ras_if; + const struct amdgpu_sdma_ras_funcs *funcs; }; /* |
