Daniel Miess
3a87e25aaa
drm/amd/display: Fix DP2 link training failure with RCO
...
[Why]
When RCO is enabled for symclk32_le we get failures during
DP2 link traing compliance tests.
[How]
Break out symclk32_le RCO into a separate function that is
called for hpo when link is enabled/disabled.
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com >
Acked-by: Alan Liu <haoping.liu@amd.com >
Signed-off-by: Daniel Miess <daniel.miess@amd.com >
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2023-07-18 11:14:36 -04:00
Michael Strauss
1f5dcb7365
drm/amd/display: Fix dpstreamclk programming
...
[WHY]
Currently programming incorrect hpo inst as well as selecting incorrect source
[HOW]
Use hpo inst instead of otg inst to select dpstreamclk inst
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com >
Acked-by: Alex Hung <alex.hung@amd.com >
Signed-off-by: Michael Strauss <michael.strauss@amd.com >
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-07-25 17:17:10 -04:00
Roman Li
ee7b62e127
drm/amd/display: Enable DCN314 in DC
...
Add support for DCN 3.1.4 in Display Core
Signed-off-by: Roman Li <roman.li@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-07-13 20:57:05 -04:00
Aurabindo Pillai
d3dfceb58d
drm/amd/display: Add dependant changes for DCN32/321
...
[Why&How]
This patch adds necessary changes needed in DC files outside DCN32/321
specific tree
v2: squash in updates (Alex)
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-06-03 16:43:38 -04:00
Leung, Martin
a820190204
drm/amdgpu/display: Prepare for new interfaces
...
why:
lut pipeline will be hooked up differently in some asics
need to add new interfaces
how:
add them
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com >
Acked-by: Jasdeep Dhillon <jdhillon@amd.com >
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com >
Signed-off-by: Martin <martin.leung@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-06-03 16:43:36 -04:00
David Galiffi
05d6aea36a
drm/amd/display: Disable physym clock
...
[How & Why]
Disable physym clock when it's not in use.
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: David Galiffi <David.Galiffi@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-01-25 18:00:35 -05:00
David Galiffi
0015cce5cf
drm/amd/display: Fix disabling dccg clocks
...
[How & Why]
Updated procedure to match hardware programming guide.
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: David Galiffi <David.Galiffi@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-01-25 18:00:35 -05:00
Jake Wang
e7414a1a18
drm/amd/display: Disable hdmistream and hdmichar clocks
...
[Why & How]
Disable hdmistream and hdmichar root clocks when not being used.
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com >
Acked-by: Agustin Gutierrez Sanchez <agustin.gutierrez@amd.com >
Signed-off-by: Jake Wang <haonan.wang2@amd.com >
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-10-19 17:20:28 -04:00
Jake Wang
bda2446257
drm/amd/display: Disable dpstreamclk, symclk32_se, and symclk32_le
...
[Why & How]
Disable dpstreamclk, symclk32_se, and symclk32_le when not in use.
Reviewed-by: Ariel Bernstein <eric.yang2@amd.com >
Acked-by: Agustin Gutierrez Sanchez <agustin.gutierrez@amd.com >
Signed-off-by: Jake Wang <haonan.wang2@amd.com >
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-10-19 17:20:02 -04:00
Jake Wang
e22ad7e338
drm/amd/display: Disable dsc root clock when not being used
...
[Why & How]
Disable root clock for dsc when not being used.
Reviewed-by: Nikola Cornij <Nikola.Cornij@amd.com >
Acked-by: Agustin Gutierrez Sanchez <agustin.gutierrez@amd.com >
Signed-off-by: Jake Wang <haonan.wang2@amd.com >
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-10-19 17:19:24 -04:00
Fangzhi Zuo
d76b12da98
drm/amd/display: Add DP 2.0 DCCG
...
HW Blocks:
+--------+ +-----+ +------+
| OPTC | | HDA | | HUBP |
+--------+ +-----+ +------+
| | |
| | |
HPO ====|==========|========|====
| | v |
| | +-----+ |
| | | APG | |
| | +-----+ |
| | | |
| v v v
| +---------------------+
| | HPO Stream Encoder |
| +---------------------+
| |
| v
| +--------------------+
| | HPO Link Encoder |
| +--------------------+
| |
v ===============|=============
v
+------------------+
| DIO Output Mux |
+------------------+
|
v
+-----+
| PHY |
+-----+
| PHYD32CLK[0]
v
+------+
| DCCG |
+------+
|
v
SYMCLK32
Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com >
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-09-01 16:55:10 -04:00
Nicholas Kazlauskas
d8a2b4f3a9
drm/amd/display: Add DCN3.1 DCCG
...
Add programming of the DCCG (Display Controller Clock Generator) block:
HW Blocks:
+--------+
| DCCG |
+--------+
Acked-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-06-04 16:03:26 -04:00