From: jsg Date: Thu, 14 Dec 2023 05:38:21 +0000 (+0000) Subject: drm/amdgpu: Update EEPROM I2C address for smu v13_0_0 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=43dbdfe2f1f64d0c9ada1b0c72c50a46fb12c37f;p=openbsd 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 --- 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;