Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Phase 1 Add Bw Allocation source and header files

[WHY]
To implement BW Allocation as per USB4 spec chapter 10.7

[HOW]
Implement the DP-Tx portion of the logic to interact with DPIA

Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: Mustapha Ghaddar <mghaddar@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mustapha Ghaddar and committed by
Alex Deucher
fe4e2662 7ce24a36

+111
+14
drivers/gpu/drm/amd/display/dc/dc_link.h
··· 151 151 bool optimize_edp_link_rate; /* eDP ILR */ 152 152 } ilr; 153 153 }; 154 + 155 + /* 156 + * USB4 DPIA BW ALLOCATION STRUCTS 157 + */ 158 + struct dc_dpia_bw_alloc { 159 + int sink_verified_bw; // The Verified BW that sink can allocated and use that has been verified already 160 + int sink_allocated_bw; // The Actual Allocated BW that sink currently allocated 161 + int padding_bw; // The Padding "Un-used" BW allocated by CM for padding reasons 162 + int sink_max_bw; // The Max BW that sink can require/support 163 + int estimated_bw; // The estimated available BW for this DPIA 164 + int bw_granularity; // BW Granularity 165 + bool bw_alloc_enabled; // The BW Alloc Mode Support is turned ON for all 3: DP-Tx & Dpia & CM 166 + }; 167 + 154 168 /* 155 169 * A link contains one or more sinks and their connected status. 156 170 * The currently active signal type (HDMI, DP-SST, DP-MST) is also reported.