File tree Expand file tree Collapse file tree
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree Original file line number Diff line number Diff 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
6466struct amdgpu_umc_funcs {
Original file line number Diff line number Diff 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+
447452const 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};
You can’t perform that action at this time.
0 commit comments