]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amdgpu: Add NPS2 to DPX compatible mode
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 24 Mar 2025 07:56:26 +0000 (13:26 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Mar 2025 21:44:32 +0000 (17:44 -0400)
Compute partition DPX is possible in NPS2 mode. Update the compatible
modes for DPX.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c

index 3c07517be09afe8a9105647755499025915a8d54..ae071985f26e1ccc952907fe47a76a61106425fc 100644 (file)
@@ -473,7 +473,8 @@ static int aqua_vanjaram_get_xcp_res_info(struct amdgpu_xcp_mgr *xcp_mgr,
                break;
        case AMDGPU_DPX_PARTITION_MODE:
                num_xcp = 2;
-               nps_modes = BIT(AMDGPU_NPS1_PARTITION_MODE);
+               nps_modes = BIT(AMDGPU_NPS1_PARTITION_MODE) |
+                           BIT(AMDGPU_NPS2_PARTITION_MODE);
                break;
        case AMDGPU_TPX_PARTITION_MODE:
                num_xcp = 3;