summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_dp_mst_helper.h
diff options
context:
space:
mode:
authorMikita Lipski <mikita.lipski@amd.com>2019-11-06 19:11:23 +0100
committerAlex Deucher <alexander.deucher@amd.com>2020-01-10 00:07:47 +0100
commitcd82d82cbc0484e47918d3166f356c98f0066db8 (patch)
treee27ee723a0813ef1438eddb8f4a77bf3d991ac61 /include/drm/drm_dp_mst_helper.h
parentdrm/dp_mst: Add DSC enablement helpers to DRM (diff)
downloadlinux-cd82d82cbc0484e47918d3166f356c98f0066db8.tar.xz
linux-cd82d82cbc0484e47918d3166f356c98f0066db8.zip
drm/dp_mst: Add branch bandwidth validation to MST atomic check
[why] Adding PBN attribute to drm_dp_vcpi_allocation structure to keep track of how much bandwidth each Port requires. Adding drm_dp_mst_atomic_check_bw_limit to verify that state's bandwidth needs doesn't exceed available bandwidth. The funtion is called in drm_dp_mst_atomic_check after drm_dp_mst_atomic_check_topology_state to fully verify that the proposed topology is supported. v2: Fixing some typos and indenting v3: Return correct error enums if no bw space available Reviewed-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Mikita Lipski <mikita.lipski@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/drm/drm_dp_mst_helper.h')
-rw-r--r--include/drm/drm_dp_mst_helper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_dp_mst_helper.h b/include/drm/drm_dp_mst_helper.h
index 14ccda19d9cc..d940f45c7637 100644
--- a/include/drm/drm_dp_mst_helper.h
+++ b/include/drm/drm_dp_mst_helper.h
@@ -502,6 +502,7 @@ struct drm_dp_payload {
struct drm_dp_vcpi_allocation {
struct drm_dp_mst_port *port;
int vcpi;
+ int pbn;
bool dsc_enabled;
struct list_head next;
};