Skip to content

Commit 64a3dbb

Browse files
Luben Tuikovalexdeucher
authored andcommitted
drm/amdgpu: Add support for RAS table at 0x40000
Add support for RAS table at I2C EEPROM address of 0x40000, since on some ASICs it is not at 0, but at 0x40000. Cc: Alex Deucher <[email protected]> Cc: Kent Russell <[email protected]> Signed-off-by: Luben Tuikov <[email protected]> Tested-by: Kent Russell <[email protected]> Reviewed-by: Kent Russell <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 0dbf2c5 commit 64a3dbb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ static bool __get_eeprom_i2c_addr_ip_discovery(struct amdgpu_device *adev,
157157
static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev,
158158
struct amdgpu_ras_eeprom_control *control)
159159
{
160+
struct atom_context *atom_ctx = adev->mode_info.atom_context;
160161
u8 i2c_addr;
161162

162163
if (!control)
@@ -190,7 +191,11 @@ static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev,
190191
break;
191192

192193
case CHIP_ALDEBARAN:
193-
control->i2c_address = EEPROM_I2C_MADDR_0;
194+
if (strnstr(atom_ctx->vbios_version, "D673",
195+
sizeof(atom_ctx->vbios_version)))
196+
control->i2c_address = EEPROM_I2C_MADDR_4;
197+
else
198+
control->i2c_address = EEPROM_I2C_MADDR_0;
194199
break;
195200

196201
case CHIP_IP_DISCOVERY:

0 commit comments

Comments
 (0)