mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/amdgpu: format old RAS eeprom data into V3 version
Clear old data and save it in V3 format. v2: only format eeprom data for new ASICs. Signed-off-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -3473,6 +3473,13 @@ int amdgpu_ras_init_badpage_info(struct amdgpu_device *adev)
|
||||
adev, control->bad_channel_bitmap);
|
||||
con->update_channel_flag = false;
|
||||
}
|
||||
|
||||
/* The format action is only applied to new ASICs */
|
||||
if (IP_VERSION_MAJ(amdgpu_ip_version(adev, UMC_HWIP, 0)) >= 12 &&
|
||||
control->tbl_hdr.version < RAS_TABLE_VER_V3)
|
||||
if (!amdgpu_ras_eeprom_reset_table(control))
|
||||
if (amdgpu_ras_save_bad_pages(adev, NULL))
|
||||
dev_warn(adev->dev, "Failed to format RAS EEPROM data in V3 version!\n");
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user