]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add is_mst_connector debugfs entry
authorWayne Lin <Wayne.Lin@amd.com>
Tue, 17 Aug 2021 10:58:31 +0000 (18:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Jul 2022 20:04:39 +0000 (16:04 -0400)
commitcca80e4234cba474d150fc4cd56fb831210add2e
treede00b0db3397481e30b7e41a85e37e9785e56184
parent97d584e94cd2738f269beba4ca8717d7492456c4
drm/amd/display: Add is_mst_connector debugfs entry

[Why & How]
Add "is_mst_connector" debugfs entry to help distinguish whether
a connector is in a mst topology or not.

Access it with the following command:
    cat /sys/kernel/debug/dri/0/DP-X/is_mst_connector

Result:
- "root" stands for the root connector of the topology
- "branch" stands for branch device of the topology
- "end" stands for leaf node connector of the topology
- "no" stands for the connector is not a device of a mst topology

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c