drm/amdgpu: Add RAS EEPROM table.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Thu, 30 May 2019 15:01:26 +0000 (11:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Aug 2019 13:17:14 +0000 (08:17 -0500)
commit64f55e629237e4752db18df4d6969a69e3f4835a
treee611c2ba88403e9cb672ee713047035c75133a03
parent250af743c044c342916a36517187e6e42a281efe
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>
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.h [new file with mode: 0644]