1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/modules/inc
Wenjing Liu 580013b2ce drm/amd/display: unhard code link to phy idx mapping in dc link and clean up
[why]
1. Current code hard codes link to PHY mapping in dc link level per asic
per revision.
This is not scalable. In long term the mapping will be obatined from
DMUB and store in dc resource.

2. Depending on DCN revision and endpoint type, the definition of
dio_output_idx dio_output_type and phy_idx are not  consistent. We need
to unify the meaning of these hardware indices across different system
configuration.

[how]
1. Temporarly move the hardcoded mapping to dc_resource level, which
should have full awareness of asic specific configuration and add a TODO
comment to move the mapping to DMUB.

2. populate dio_output_idx/phy_idx for all configuration, define
usb4_enabled bit instead of dio_output_type as an external enum.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Eric Yang <Eric.Yang2@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-01-07 17:21:20 -05:00
..
mod_freesync.h drm/amd/display: Change input parameter for set_drr 2021-04-09 16:41:36 -04:00
mod_hdcp.h drm/amd/display: unhard code link to phy idx mapping in dc link and clean up 2022-01-07 17:21:20 -05:00
mod_info_packet.h drm/amd/display: Send H14b-VSIF specified in HDMI 2020-08-26 16:40:18 -04:00
mod_shared.h drm/amd/display: Change infopacket type programming 2020-04-22 18:11:47 -04:00
mod_stats.h drm/amd/display: Handle persistence in DM 2020-05-28 14:00:47 -04:00
mod_vmid.h drm/amd/display: add missing mod_vmid destructor 2019-06-22 09:34:14 -05:00