OSDN Git Service

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)
commit8b076fa7c5befd1d3e1d892ae466f5334e4c6c99
treede00b0db3397481e30b7e41a85e37e9785e56184
parentc8a58ce18ca36b62749e326411176554462a5e2c
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