From: jsg Date: Thu, 14 Dec 2023 05:36:31 +0000 (+0000) Subject: drm/amdgpu: Add I2C EEPROM support on smu v13_0_6 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=00fb26b6d5265ccd874dba5f2544e9360936a8ac;p=openbsd drm/amdgpu: Add I2C EEPROM support on smu v13_0_6 From Candice Li 87509778718cffdee6412f0d39713f883208a013 in linux-6.1.y/6.1.68 b81fde0dfe402e864ef1ac506eba756c89f1ad32 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 8de7e248cd9..2c22c1601f2 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c @@ -112,6 +112,7 @@ static bool __is_ras_eeprom_supported(struct amdgpu_device *adev) case IP_VERSION(11, 0, 7): /* Sienna cichlid */ case IP_VERSION(13, 0, 0): case IP_VERSION(13, 0, 2): /* Aldebaran */ + case IP_VERSION(13, 0, 6): case IP_VERSION(13, 0, 10): return true; default: @@ -176,6 +177,7 @@ static bool __get_eeprom_i2c_addr(struct amdgpu_device *adev, #endif return true; case IP_VERSION(13, 0, 0): + case IP_VERSION(13, 0, 6): case IP_VERSION(13, 0, 10): control->i2c_address = EEPROM_I2C_MADDR_4; return true;