From: Austin Zheng <[email protected]>

[Why/How]
Patch number of opp based on IP caps

Reviewed-by: Dillon Varone <[email protected]>
Signed-off-by: Austin Zheng <[email protected]>
Signed-off-by: Chuanyu Tseng <[email protected]>
---
 .../amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4.c   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4.c 
b/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4.c
index 608b4a305c65..99fc2f0666e2 100644
--- a/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4.c
+++ b/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4.c
@@ -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;
-- 
2.43.0

Reply via email to