drm/amd/display: Removing 2 phys
authorPavle Kotarac <Pavle.Kotarac@amd.com>
Thu, 1 Sep 2022 19:24:09 +0000 (15:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Sep 2022 19:14:12 +0000 (15:14 -0400)
[WHY]
New dcn301 has 2 less phys

Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c

index db172677d61342a8c54c25dbed7766568abdcc0c..0c2b15a0f3a78294494780a1f1db38d2abd23be2 100644 (file)
@@ -634,7 +634,7 @@ static const struct dcn20_vmid_mask vmid_masks = {
                DCN20_VMID_MASK_SH_LIST(_MASK)
 };
 
-static const struct resource_caps res_cap_dcn301 = {
+static struct resource_caps res_cap_dcn301 = {
        .num_timing_generator = 4,
        .num_opp = 4,
        .num_video_plane = 4,
@@ -1429,6 +1429,8 @@ static bool dcn301_resource_construct(
 
        ctx->dc_bios->regs = &bios_regs;
 
+       if (dc->ctx->asic_id.chip_id == DEVICE_ID_VGH_1435)
+               res_cap_dcn301.num_pll = 2;
        pool->base.res_cap = &res_cap_dcn301;
 
        pool->base.funcs = &dcn301_res_pool_funcs;