aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/link/link_dpms.c
diff options
context:
space:
mode:
authorCruise Hung <Cruise.Hung@amd.com>2025-06-03 14:30:59 +0800
committerAlex Deucher <alexander.deucher@amd.com>2025-06-24 09:55:35 -0400
commit7beee6e91c20f297d2eba90397fe44938138f3b8 (patch)
treebb03778248de4d2fef9c4a55c5f2e96fb8c308fa /drivers/gpu/drm/amd/display/dc/link/link_dpms.c
parentdrm/amd/display: Removed unnecessary comment (diff)
downloadlinux-7beee6e91c20f297d2eba90397fe44938138f3b8.tar.gz
linux-7beee6e91c20f297d2eba90397fe44938138f3b8.zip
drm/amd/display: Add new DP tunnel bandwidth validation
[Why & How] Add new function for DP tunnel bandwidth validation. It uses the estimated BW and allocated BW to validate the timings. Reviewed-by: PeiChen Huang <peichen.huang@amd.com> Reviewed-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com> Signed-off-by: Cruise Hung <Cruise.Hung@amd.com> Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/link/link_dpms.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/link/link_dpms.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/link/link_dpms.c b/drivers/gpu/drm/amd/display/dc/link/link_dpms.c
index f16cba4b9119..e15631bead09 100644
--- a/drivers/gpu/drm/amd/display/dc/link/link_dpms.c
+++ b/drivers/gpu/drm/amd/display/dc/link/link_dpms.c
@@ -2295,12 +2295,10 @@ static bool allocate_usb4_bandwidth_for_stream(struct dc_stream_state *stream, i
}
link->dpia_bw_alloc_config.remote_sink_req_bw[sink_index] = bw;
+ link->dpia_bw_alloc_config.dp_overhead = link_dpia_get_dp_mst_overhead(link);
+ req_bw += link->dpia_bw_alloc_config.dp_overhead;
}
- /* get dp overhead for dp tunneling */
- link->dpia_bw_alloc_config.dp_overhead = link_dp_dpia_get_dp_overhead_in_dp_tunneling(link);
- req_bw += link->dpia_bw_alloc_config.dp_overhead;
-
link_dp_dpia_allocate_usb4_bandwidth_for_stream(link, req_bw);
if (stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {