Revert "drm/amdkfd: fix gfx_target_version for certain 11.0.3 devices"
authorjsg <jsg@openbsd.org>
Mon, 17 Jun 2024 07:30:48 +0000 (07:30 +0000)
committerjsg <jsg@openbsd.org>
Mon, 17 Jun 2024 07:30:48 +0000 (07:30 +0000)
From Alex Deucher
bb430ea4ba31dcc439d26e02bcbc4473cad4c6d9 in linux-6.6.y/6.6.34
dd2b75fd9a79bf418e088656822af06fc253dbe3 in mainline linux

sys/dev/pci/drm/amd/amdkfd/kfd_device.c

index 913c70a..0c94bdf 100644 (file)
@@ -402,15 +402,8 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf)
                        f2g = &gfx_v11_kfd2kgd;
                        break;
                case IP_VERSION(11, 0, 3):
-                       if ((adev->pdev->device == 0x7460 &&
-                            adev->pdev->revision == 0x00) ||
-                           (adev->pdev->device == 0x7461 &&
-                            adev->pdev->revision == 0x00))
-                               /* Note: Compiler version is 11.0.5 while HW version is 11.0.3 */
-                               gfx_target_version = 110005;
-                       else
-                               /* Note: Compiler version is 11.0.1 while HW version is 11.0.3 */
-                               gfx_target_version = 110001;
+                       /* Note: Compiler version is 11.0.1 while HW version is 11.0.3 */
+                       gfx_target_version = 110001;
                        f2g = &gfx_v11_kfd2kgd;
                        break;
                default: