diff options
| author | Dennis Li <[email protected]> | 2021-02-26 01:17:10 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-02-26 22:23:49 +0000 |
| commit | 11003c68b158c07b95e4ba3630a86aff9c442ee7 (patch) | |
| tree | 72335dd21aa65ce08cc9ccbca9180509826cf818 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | |
| parent | amdgpu/pm: read_sensor() report failure apporpriately (diff) | |
| download | kernel-11003c68b158c07b95e4ba3630a86aff9c442ee7.tar.gz kernel-11003c68b158c07b95e4ba3630a86aff9c442ee7.zip | |
drm/amdgpu: remove unnecessary reading for epprom header
If the number of badpage records exceed the threshold, driver has
updated both epprom header and control->tbl_hdr.header before gpu reset,
therefore GPU recovery thread no need to read epprom header directly.
v2: merge amdgpu_ras_check_err_threshold into amdgpu_ras_eeprom_check_err_threshold
Signed-off-by: Dennis Li <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h index aed0716efa5a..42aab9adc263 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h @@ -491,8 +491,6 @@ void amdgpu_ras_suspend(struct amdgpu_device *adev); unsigned long amdgpu_ras_query_error_count(struct amdgpu_device *adev, bool is_ce); -bool amdgpu_ras_check_err_threshold(struct amdgpu_device *adev); - /* error handling functions */ int amdgpu_ras_add_bad_pages(struct amdgpu_device *adev, struct eeprom_table_record *bps, int pages); |
