From: jsg Date: Thu, 14 Dec 2023 05:20:52 +0000 (+0000) Subject: drm/amdgpu: Update ras eeprom support for smu v13_0_0 and v13_0_10 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4b4cdc9d54b667172a2e89c025331eef1ee04527;p=openbsd drm/amdgpu: Update ras eeprom support for smu v13_0_0 and v13_0_10 From Candice Li f549f837b9aca23983540fc6498e19eee8b3073a in linux-6.1.y/6.1.68 bc22f8ec464af9e14263c3ed6a1c2be86618c804 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 9c2ef59a54b..1b615c028cd 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c @@ -90,6 +90,16 @@ static bool __is_ras_eeprom_supported(struct amdgpu_device *adev) { + if (adev->asic_type == CHIP_IP_DISCOVERY) { + switch (adev->ip_versions[MP1_HWIP][0]) { + case IP_VERSION(13, 0, 0): + case IP_VERSION(13, 0, 10): + return true; + default: + return false; + } + } + return adev->asic_type == CHIP_VEGA20 || adev->asic_type == CHIP_ARCTURUS || adev->asic_type == CHIP_SIENNA_CICHLID ||