diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-12-14 05:38:22 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-12-14 05:38:22 +0000 |
commit | 1d90283e08507643f7e57d1357b328702ddbf094 (patch) | |
tree | 15516c88a37f8c3c03f13e5fbaf48ba8895851f0 | |
parent | c383d055b5110bc09bf0d398de183d5397f61554 (diff) |
drm/amdgpu: Update EEPROM I2C address for smu v13_0_0
From Candice Li
c8bf22e0d0499de0692a91290f923029230a5bd4 in linux-6.1.y/6.1.68
e0409021e34af50e7b6f31635c8d21583d7c43dd in mainline linux
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c index 2c22c1601f2..444799557fb 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c @@ -177,6 +177,17 @@ static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev, #endif return true; case IP_VERSION(13, 0, 0): +#ifdef notyet + if (strnstr(atom_ctx->vbios_pn, "D707", + sizeof(atom_ctx->vbios_pn))) + control->i2c_address = EEPROM_I2C_MADDR_0; + else + control->i2c_address = EEPROM_I2C_MADDR_4; +#else + STUB(); + control->i2c_address = EEPROM_I2C_MADDR_4; +#endif + return true; case IP_VERSION(13, 0, 6): case IP_VERSION(13, 0, 10): control->i2c_address = EEPROM_I2C_MADDR_4; |