drm/amdgpu: Make CPX mode auto default in NPS4
authorRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Wed, 22 May 2024 19:04:29 +0000 (15:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 May 2024 18:48:30 +0000 (14:48 -0400)
On GFXIP9.4.3, make CPX mode as the default compute mode if the node is
setup in NPS4 memory partition mode. This change is only applicable for
dGPU, for APU, continue to use TPX mode.

Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c

index d62cfa4e2d2b426009321d6fe0c3c3d5a838df8b..2c9a0aa41e2d5e6c4db868014bbd30ef231fc4fe 100644 (file)
@@ -422,7 +422,7 @@ __aqua_vanjaram_get_auto_mode(struct amdgpu_xcp_mgr *xcp_mgr)
 
        if (adev->gmc.num_mem_partitions == num_xcc / 2)
                return (adev->flags & AMD_IS_APU) ? AMDGPU_TPX_PARTITION_MODE :
-                                                   AMDGPU_QPX_PARTITION_MODE;
+                                                   AMDGPU_CPX_PARTITION_MODE;
 
        if (adev->gmc.num_mem_partitions == 2 && !(adev->flags & AMD_IS_APU))
                return AMDGPU_DPX_PARTITION_MODE;