]> git.baikalelectronics.ru Git - kernel.git/commit
drm/dp_mst: Add branch bandwidth validation to MST atomic check
authorMikita Lipski <mikita.lipski@amd.com>
Wed, 6 Nov 2019 18:11:23 +0000 (13:11 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Jan 2020 23:07:47 +0000 (18:07 -0500)
commit1b05a0166e9be4777a8b2c5621b2ab6b20e117a8
treee27ee723a0813ef1438eddb8f4a77bf3d991ac61
parent316fb09bbdc4f3e9ec7aaf82419fd562a930e43b
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>
drivers/gpu/drm/drm_dp_mst_topology.c
include/drm/drm_dp_mst_helper.h