Skip to content

Commit b573cf8

Browse files
Stanley.Yangalexdeucher
authored andcommitted
drm/amdgpu: Support setting EEPROM table version
Add setting EEPROM table version interface for umcv8.10, Add EEPROM table v2.1 to UMC v8.10. Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 65183fa commit b573cf8

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_umc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ struct amdgpu_umc_ras {
5959
void *ras_error_status);
6060
void (*ecc_info_query_ras_error_address)(struct amdgpu_device *adev,
6161
void *ras_error_status);
62+
/* support different eeprom table version for different asic */
63+
void (*set_eeprom_table_version)(struct amdgpu_ras_eeprom_table_header *hdr);
6264
};
6365

6466
struct amdgpu_umc_funcs {

drivers/gpu/drm/amd/amdgpu/umc_v8_10.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,11 @@ static void umc_v8_10_ecc_info_query_ras_error_address(struct amdgpu_device *ade
444444
umc_v8_10_ecc_info_query_error_address, ras_error_status);
445445
}
446446

447+
static void umc_v8_10_set_eeprom_table_version(struct amdgpu_ras_eeprom_table_header *hdr)
448+
{
449+
hdr->version = RAS_TABLE_VER_V2_1;
450+
}
451+
447452
const struct amdgpu_ras_block_hw_ops umc_v8_10_ras_hw_ops = {
448453
.query_ras_error_count = umc_v8_10_query_ras_error_count,
449454
.query_ras_error_address = umc_v8_10_query_ras_error_address,
@@ -457,4 +462,5 @@ struct amdgpu_umc_ras umc_v8_10_ras = {
457462
.query_ras_poison_mode = umc_v8_10_query_ras_poison_mode,
458463
.ecc_info_query_ras_error_count = umc_v8_10_ecc_info_query_ras_error_count,
459464
.ecc_info_query_ras_error_address = umc_v8_10_ecc_info_query_ras_error_address,
465+
.set_eeprom_table_version = umc_v8_10_set_eeprom_table_version,
460466
};

0 commit comments

Comments
 (0)