]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: Fix amdgpu_ras_eeprom_init()
authorLuben Tuikov <luben.tuikov@amd.com>
Fri, 26 Mar 2021 20:40:22 +0000 (16:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Jul 2021 04:24:41 +0000 (00:24 -0400)
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 <andrey.grodzovsky@amd.com>
Cc: Alexander Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Acked-by: Alexander Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c

index dc48c556398039f3c220bbef65e4fe5343cc8882..7d0f9e1e62dc4fd42dd47a965febe246254d56d5 100644 (file)
@@ -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) /