From: Alvin Lee <[email protected]> [Description] The cap for limiting vtotal by FP2 is missing on DCN6. Add back the cap. Also assign the function pointer for getting vstartup_start.
Cc: Nevenko Stupar <[email protected]> Signed-off-by: Alvin Lee <[email protected]> Signed-off-by: Wayne Lin <[email protected]> --- .../gpu/drm/amd/display/dc/resource/dcn60/dcn60_resource.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/resource/dcn60/dcn60_resource.c b/drivers/gpu/drm/amd/display/dc/resource/dcn60/dcn60_resource.c index d068d5682619..1d7074451ac1 100644 --- a/drivers/gpu/drm/amd/display/dc/resource/dcn60/dcn60_resource.c +++ b/drivers/gpu/drm/amd/display/dc/resource/dcn60/dcn60_resource.c @@ -1958,7 +1958,8 @@ static struct resource_funcs dcn60_res_pool_funcs = { .build_pipe_pix_clk_params = dcn60_build_pipe_pix_clk_params, .get_power_profile = dcn60_get_power_profile, .program_mcache_pipe_config = dcn60_program_mcache_pipe_config, - .get_default_tiling_info = dcn401_get_default_tiling_info + .get_default_tiling_info = dcn401_get_default_tiling_info, + .get_vstartup_for_pipe = dcn401_get_vstartup_for_pipe }; static uint32_t read_pipe_fuses(struct dc_context *ctx) @@ -2057,6 +2058,7 @@ static bool dcn60_resource_construct( dc->caps.dmcub_support = true; dc->caps.utm_support = true; dc->caps.max_v_total = (1 << 15) - 1; + dc->caps.vtotal_limited_by_fp2 = true; pool->base.ctx = ctx; -- 2.43.0
