drm/amdgpu: allow multipipe policy on ASICs with one MEC
authorjsg <jsg@openbsd.org>
Wed, 25 Jan 2023 01:48:33 +0000 (01:48 +0000)
committerjsg <jsg@openbsd.org>
Wed, 25 Jan 2023 01:48:33 +0000 (01:48 +0000)
From Lang Yu
d693fdf73eb296081523e18d1ac3bc38787e7cab in linux-6.1.y/6.1.8
dc88063b87775971be564d79dc1b05f7b8b5c135 in mainline linux

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

index 976ab72..9a4a971 100644 (file)
@@ -158,6 +158,9 @@ static bool amdgpu_gfx_is_compute_multipipe_capable(struct amdgpu_device *adev)
                return amdgpu_compute_multipipe == 1;
        }
 
+       if (adev->ip_versions[GC_HWIP][0] > IP_VERSION(9, 0, 0))
+               return true;
+
        /* FIXME: spreading the queues across pipes causes perf regressions
         * on POLARIS11 compute workloads */
        if (adev->asic_type == CHIP_POLARIS11)