]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Fix number of opp
authorAustin Zheng <Austin.Zheng@amd.com>
Fri, 23 Jan 2026 20:33:13 +0000 (15:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:35:47 +0000 (10:35 -0400)
[Why/How]
Patch number of opp based on IP caps

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Austin Zheng <Austin.Zheng@amd.com>
Signed-off-by: Chuanyu Tseng <chuanyu.tseng@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4.c

index 608b4a305c656ef6ef229ef6aeef80ff546d2e9d..99fc2f0666e2b69f00968924dbde5e5e9005734b 100644 (file)
@@ -187,6 +187,7 @@ static void patch_ip_params_with_ip_caps(struct dml2_core_ip_params *ip_params,
 {
        ip_params->max_num_dpp = ip_caps->pipe_count;
        ip_params->max_num_otg = ip_caps->otg_count;
+       ip_params->max_num_opp = ip_caps->otg_count;
        ip_params->num_dsc = ip_caps->num_dsc;
        ip_params->max_num_dp2p0_streams = ip_caps->max_num_dp2p0_streams;
        ip_params->max_num_dp2p0_outputs = ip_caps->max_num_dp2p0_outputs;