From 8c68227e988a84ea141038947230081e492377d7 Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 25 Jan 2023 01:48:33 +0000 Subject: [PATCH] drm/amdgpu: allow multipipe policy on ASICs with one MEC 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_gfx.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_gfx.c index 976ab72c083..9a4a97121d9 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_gfx.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_gfx.c @@ -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) -- 2.20.1