drm/amdgpu: Update EEPROM I2C address for smu v13_0_0
authorjsg <jsg@openbsd.org>
Thu, 14 Dec 2023 05:38:21 +0000 (05:38 +0000)
committerjsg <jsg@openbsd.org>
Thu, 14 Dec 2023 05:38:21 +0000 (05:38 +0000)
From Candice Li
c8bf22e0d0499de0692a91290f923029230a5bd4 in linux-6.1.y/6.1.68
e0409021e34af50e7b6f31635c8d21583d7c43dd in mainline linux

sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c

index 2c22c16..4447995 100644 (file)
@@ -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;