Skip to content

Commit 3ce3f85

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amdgpu: Fix DPX valid mode check on GC 9.4.3
For DPX mode, the number of memory partitions supported should be less than or equal to 2. Fixes: 1589c82 ("drm/amdgpu: Check memory ranges for valid xcp mode") Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 990c4f5) Cc: [email protected]
1 parent 74e1006 commit 3ce3f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ static bool __aqua_vanjaram_is_valid_mode(struct amdgpu_xcp_mgr *xcp_mgr,
482482
case AMDGPU_SPX_PARTITION_MODE:
483483
return adev->gmc.num_mem_partitions == 1 && num_xcc > 0;
484484
case AMDGPU_DPX_PARTITION_MODE:
485-
return adev->gmc.num_mem_partitions != 8 && (num_xcc % 4) == 0;
485+
return adev->gmc.num_mem_partitions <= 2 && (num_xcc % 4) == 0;
486486
case AMDGPU_TPX_PARTITION_MODE:
487487
return (adev->gmc.num_mem_partitions == 1 ||
488488
adev->gmc.num_mem_partitions == 3) &&

0 commit comments

Comments
 (0)