From: Luben Tuikov Date: Fri, 26 Mar 2021 20:40:22 +0000 (-0400) Subject: drm/amdgpu: Fix amdgpu_ras_eeprom_init() X-Git-Tag: accepted/tizen/unified/20230118.172025~6402^2~20^2~200 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dce4400e6516d18313d23de45b5be8a18980b00e;p=platform%2Fkernel%2Flinux-rpi.git drm/amdgpu: Fix amdgpu_ras_eeprom_init() No need to account for the 2 bytes of EEPROM address--this is now well abstracted away by the fixes the the lower layers. Cc: Andrey Grodzovsky Cc: Alexander Deucher Signed-off-by: Luben Tuikov Acked-by: Alexander Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c index dc48c55..7d0f9e1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c @@ -306,7 +306,7 @@ int amdgpu_ras_eeprom_init(struct amdgpu_ras_eeprom_control *control, return ret; } - __decode_table_header_from_buff(hdr, &buff[2]); + __decode_table_header_from_buff(hdr, buff); if (hdr->header == RAS_TABLE_HDR_VAL) { control->num_recs = (hdr->tbl_size - RAS_TABLE_HEADER_SIZE) /