summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-01-25 01:48:34 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-01-25 01:48:34 +0000
commit9e26a6c9fbb7dc70fbce068aa7674621d05587f5 (patch)
treeb06d5b5104566f1fa49f5230b332d4dd9e92ecd1 /sys/dev
parentc070144ddc33ab82f34f46a3fa2ec8b65981acbb (diff)
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
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_gfx.c3
1 files changed, 3 insertions, 0 deletions
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)