Skip to content

Commit e040902

Browse files
candicelicyalexdeucher
authored andcommitted
drm/amdgpu: Update EEPROM I2C address for smu v13_0_0
Check smu v13_0_0 SKU type to select EEPROM I2C address. Signed-off-by: Candice Li <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected] # 6.1.x
1 parent 27750e1 commit e040902

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev,
214214
control->i2c_address = EEPROM_I2C_MADDR_0;
215215
return true;
216216
case IP_VERSION(13, 0, 0):
217+
if (strnstr(atom_ctx->vbios_pn, "D707",
218+
sizeof(atom_ctx->vbios_pn)))
219+
control->i2c_address = EEPROM_I2C_MADDR_0;
220+
else
221+
control->i2c_address = EEPROM_I2C_MADDR_4;
222+
return true;
217223
case IP_VERSION(13, 0, 6):
218224
case IP_VERSION(13, 0, 10):
219225
control->i2c_address = EEPROM_I2C_MADDR_4;

0 commit comments

Comments
 (0)