drm/amdgpu: Process any VBIOS RAS EEPROM address
authorLuben Tuikov <luben.tuikov@amd.com>
Wed, 25 Aug 2021 17:50:20 +0000 (13:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Aug 2021 18:59:33 +0000 (14:59 -0400)
commitcc947bf91bad65d4f0ef85a3cd7272a1cf26f53d
tree808acc2cd2a239683014b49b9b107bfc3fc1c86a
parenta6a355a22f7a0efa6a11bc90b5161f394d51fe95
drm/amdgpu: Process any VBIOS RAS EEPROM address

We can now process any RAS EEPROM address from
VBIOS. Generalize so as to compute the top three
bits of the 19-bit EEPROM address, from any byte
returned as the "i2c address" from VBIOS.

Cc: John Clements <john.clements@amd.com>
Cc: Hawking Zhang <Hawking.Zhang@amd.com>
Cc: Alex Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Alex Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c