]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Enumerate LTTPR modes
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Mon, 15 Mar 2021 22:40:08 +0000 (18:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:48:29 +0000 (16:48 -0400)
commit3128b285021ec04b13a8387f9d0aee6c70dfef7f
tree3e8abca6ff030f2787cc4657919946a1fb9e05d0
parentdd8a86877ec0dece66b5633b57622767696fc31f
drm/amd/display: Enumerate LTTPR modes

[WHY]
There are three possible modes for LTTPR:
- Non-LTTPR mode, where AUX timeout is 400 us and no per-hop link
training is done
- LTTPR Transparent mode, where AUX timeout is 3200 us and no per-hop
link training is done
- LTTPR Non-Transparent mode, where AUX timeout is 3200 us and per-hop
link training is done

[HOW]
Use an enum instead of a bool to track LTTPR state; modify comparisons
accordingly.

Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c
drivers/gpu/drm/amd/display/dc/dc_link.h