summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-11-15 01:19:34 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-11-15 01:19:34 +0000
commit1d9d3568a65bc8ae17430b82beafbefafcbfd2ca (patch)
tree9ad89efdfafaceb75fb60f165d4d9411ed682f1f /sys/dev/pci
parent52cf8b45048c6e6645bc4ac34a433e68024dbe3f (diff)
drm/amdgpu: Fix DPX valid mode check on GC 9.4.3
From Lijo Lazar 3930715c1aefe8e5cbca94144081aa08b466d571 in linux-6.6.y/6.6.61 3ce3f85787352fa48fc02ef6cbd7a5e5aba93347 in mainline linux
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/aqua_vanjaram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/aqua_vanjaram.c b/sys/dev/pci/drm/amd/amdgpu/aqua_vanjaram.c
index 6c6f9d9b5d8..fb20faa2c4f 100644
--- a/sys/dev/pci/drm/amd/amdgpu/aqua_vanjaram.c
+++ b/sys/dev/pci/drm/amd/amdgpu/aqua_vanjaram.c
@@ -440,7 +440,7 @@ static bool __aqua_vanjaram_is_valid_mode(struct amdgpu_xcp_mgr *xcp_mgr,
case AMDGPU_SPX_PARTITION_MODE:
return adev->gmc.num_mem_partitions == 1 && num_xcc > 0;
case AMDGPU_DPX_PARTITION_MODE:
- return adev->gmc.num_mem_partitions != 8 && (num_xcc % 4) == 0;
+ return adev->gmc.num_mem_partitions <= 2 && (num_xcc % 4) == 0;
case AMDGPU_TPX_PARTITION_MODE:
return (adev->gmc.num_mem_partitions == 1 ||
adev->gmc.num_mem_partitions == 3) &&