diff options
| author | Andrey Grodzovsky <andrey.grodzovsky@amd.com> | 2019-05-30 11:01:26 -0400 | 
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2019-08-27 08:17:14 -0500 | 
| commit | 64f55e629237e4752db18df4d6969a69e3f4835a (patch) | |
| tree | e611c2ba88403e9cb672ee713047035c75133a03 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | |
| parent | 250af743c044c342916a36517187e6e42a281efe (diff) | |
drm/amdgpu: Add RAS EEPROM table.
Add RAS EEPROM table manager to eanble RAS errors to be stored
upon appearance and retrived on driver load.
v2: Fix some prints.
v3:
Fix checksum calculation.
Make table record and header structs packed to do correct byte value sum.
Fix record crossing EEPROM page boundry.
v4:
Fix byte sum val calculation for record - look at sizeof(record).
Fix some style comments.
v5: Add description to EEPROM_TABLE_RECORD_SIZE and syntax fixes.
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Luben Tuikov <Luben.Tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h index 02a51e3dfa14..6c76bb2a6843 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h @@ -29,6 +29,7 @@  #include "amdgpu.h"  #include "amdgpu_psp.h"  #include "ta_ras_if.h" +#include "amdgpu_ras_eeprom.h"  enum amdgpu_ras_block {  	AMDGPU_RAS_BLOCK__UMC = 0, @@ -333,6 +334,8 @@ struct amdgpu_ras {  	struct mutex recovery_lock;  	uint32_t flags; + +	struct amdgpu_ras_eeprom_control eeprom_control;  };  struct ras_fs_data {  | 
