Commit Graph
58674 Commits
Author SHA1 Message Date
Tony Cheng fcbb5ad3fe drm/amd/display: use CP2520-3 for PHY compliance automation
Signed-off-by: Tony Cheng <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Hersen Wu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:21:24 -04:00
Yongqiang Sun dabb3979e1 drm/amd/display: Fix MPO exit and cursor issue.
Signed-off-by: Yongqiang Sun <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:21:21 -04:00
Roman Li 940c654e64 drm/amd/display: increase timeout for dmif dealloc
In some use-cases, e.g. multiple 4K displays,
exisitng wait time for reg update of 30msec timed out
during mode setiing that sometimes resulted in system bad state
as we continue without waiting for registry update complete.
Increasing timeout to 35msec fixes that problem.

Signed-off-by: Roman Li <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:21:17 -04:00
Charlene Liu fd8cc371ed drm/amd/display: voltage request related change
Signed-off-by: Charlene Liu <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Krunoslav Kovac <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:21:13 -04:00
Andrey Grodzovsky e902915507 drm/amd/display: use CRTC_VERTICAL_INTERRUPT0 as a trigger for VBLANK.
Register ISR hnadler on the new interrupt.

Signed-off-by: Andrey Grodzovsky <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Andrey Grodzovsky <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:21:08 -04:00
Andrey Grodzovsky 667e1498a9 drm/amd/display: use CRTC_VERTICAL_INTERRUPT0 as VBLANK trigger.
VBLANK interrupt is driven bu line buffer vcounter which is
ahead of CRTC vcounter. Use an interrupt that fires at the actual
CRTC vblank start boundry.

Signed-off-by: Andrey Grodzovsky <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Andrey Grodzovsky <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:21:04 -04:00
Harry Wentland 5e141de452 drm/amd/display: Rename bandwidth_calcs.h to dce_calcs.h
Signed-off-by: Harry Wentland <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:21:01 -04:00
Yongqiang Sun 18f7a1e408 drm/amd/display: Power on front end during set mode.
Signed-off-by: Yongqiang Sun <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:58 -04:00
xhdu 8c8953139c drm/amd/display: Add audio/video ContainerId implementation
Leave hardcoded if no ContainerId provided by DM.

Signed-off-by: Duke Du <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Charlene Liu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:54 -04:00
Charlene Liu 3c8c9d6cd1 drm/amd/display: using calculated values for VReady/Startup
Signed-off-by: Charlene Liu <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Dmytro Laktyushkin <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:50 -04:00
Charlene Liu 2fc67983fb drm/amd/display: remove redundant check
Signed-off-by: Charlene Liu <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Charlene Liu <[email protected]>
Reviewed-by: Anthony Koo <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:47 -04:00
Charlene Liu 7e2fe3190d drm/amd/display: DP is hotplugged, HDMI with 4:2:0 corruption
Signed-off-by: Charlene Liu <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Charlene Liu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:43 -04:00
Leon Elazar 00f0201999 drm/amd/display: Fix applying surface to underlay pipe
1. Locking all pipes before doing any changes
2. Applying surface for both top and bottom pipes

Signed-off-by: Leon Elazar <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:40 -04:00
Andrey Grodzovsky 0702a01f97 drm/amd/display: Set cursor pitch to cursor width (in pixels).
Signed-off-by: Andrey Grodzovsky <[email protected]>
Reviewed-by: Jordan Lazare <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:36 -04:00
Andrey Grodzovsky ce75805e0a drm/amd/display: Unhardcode cursor size reported back to UMD.
This will return back MAX cursor size for given ASIC.

Signed-off-by: Andrey Grodzovsky <[email protected]>
Reviewed-by: Jordan Lazare <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:33 -04:00
Andrey Grodzovsky 1034934584 drm/amd/display: Unhardcode acrtc->max_cursor_{height,width}
Signed-off-by: Andrey Grodzovsky <[email protected]>
Reviewed-by: Jordan Lazare <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:30 -04:00
Andrey Grodzovsky d092bf6585 drm/amd/display: Fix gfx9 parameters reading for DC.
Signed-off-by: Andrey Grodzovsky <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Jordan Lazare <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:26 -04:00
Andrey Grodzovsky 53d35dc60d drm/amd/display: Fix the NULL pointer. (v2)
ret value in amdgpu_dm_atomic_check was not rest to EINVAL
after drm_atomic_add_affected_planes and by this making
any subsequent validation failure pass when returning
to atomic_check.

v2: Add WARN_ON print for dc_commit_streams in
amdgpu_dm_atomic_commit_tail since this should never
fail.

Signed-off-by: Andrey Grodzovsky <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Andrey Grodzovsky <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:23 -04:00
Tony Cheng 0e19401f95 drm/amd/display: support PHY compliance automation for CP2520 pattern 1/2/3
Signed-off-by: Tony Cheng <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:19 -04:00
Tony Cheng 3f8a944016 drm/amd/display: support CP2520 pattern 2 for HBR2 compliance
- also some clean up

Signed-off-by: Tony Cheng <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Charlene Liu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:16 -04:00
Yongqiang Sun e73c1efca8 drm/amd/display: Use stream_enc to get head pipe.
Signed-off-by: Yongqiang Sun <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:12 -04:00
Dmytro Laktyushkin 745cc746da drm/amd/display: remove dc_pre_update_surfaces_to_stream from dc use
Signed-off-by: Dmytro Laktyushkin <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Dmytro Laktyushkin <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:09 -04:00
Tony Cheng cc04bf7e4f drm/amd/display: use extended receiver cap for dpcd ver
Signed-off-by: Tony Cheng <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Anthony Koo <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:05 -04:00
Leon Elazar ee8f63e178 drm/amd/display: changing the dc_update_surfaces_and_stream
1. Adding the ability to update the stream parameters during FULL_UPDATE type

Signed-off-by: Leon Elazar <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:20:00 -04:00
Dmytro Laktyushkin faddcb360c drm/amd/display: fix bw calc internal initialization error
Signed-off-by: Dmytro Laktyushkin <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:19:57 -04:00
Logatharshan Thothiralingam 1de8c33bbd drm/amd/display: Fixed bandwidth calculation error when converting fractions
[Problem]
VSR greyed out

[Root cause]
When converting fractions, we were using the integer function, which let to
a large display clock and the view was not supported

[Solution]
Change the integer to fraction functions

Signed-off-by: Logatharshan Thothiralingam <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:19:49 -04:00
Leon Elazar a783e7b518 drm/amd/display: adding new dc_update_surfaces_and_stream
Signed-off-by: Leon Elazar <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:19:45 -04:00
Alex Deucher ab587d4a65 drm/amdgpu/soc15: enable dc on vega10
Add the DC display module to drive the DCE12 IP on vega10.

Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:19:39 -04:00
Alex Deucher 8fa9ca2ec6 drm/amd/display: Remove DCE12 guards
Signed-off-by: Jordan Lazare <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:19:36 -04:00
Jordan Lazare 7fc6ff772b drm/amd/display: Less log spam
Signed-off-by: Jordan Lazare <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Charlene Liu <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:19:31 -04:00
Charlene Liu 85a51eeec7 drm/amd/display: need to handle DCE_Info table ver4.2
Signed-off-by: Charlene Liu <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Krunoslav Kovac <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:19:27 -04:00
Alex Deucher 2c8ad2d5a2 drm/amd/display: Enable DCE12 support
This wires DCE12 support into DC and enables it.

Signed-off-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:19:23 -04:00
Harry Wentland b8fdfcc6a9 drm/amd/display: Add DCE12 core support
Signed-off-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:19:19 -04:00
Harry Wentland 9a48d68448 drm/amd/display: Add DCE12 irq support
Signed-off-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:19:16 -04:00
Harry Wentland c56fbb3471 drm/amd/display: Add DCE12 i2c/aux support
Signed-off-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:19:12 -04:00
Harry Wentland ef40b23465 drm/amd/display: Add DCE12 gpio support
Signed-off-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:19:08 -04:00
Harry Wentland ae79c310b1 drm/amd/display: Add DCE12 bios parser support
Signed-off-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:19:04 -04:00
Rex Zhu b7ad57b579 drm/amdgpu: get display info from DC when DC enabled.
Signed-off-by: Rex Zhu <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:19:01 -04:00
Dmytro Laktyushkin c802570ed5 drm/amd/display: fix incorrect vp adjustment
Viewport would be incorrectly adjusted when surface was used
for multiple displays

Signed-off-by: Dmytro Laktyushkin <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:18:57 -04:00
Jordan Lazare c0bc0bd587 drm/amd/display: Less log spam
Signed-off-by: Jordan Lazare <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Charlene Liu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:18:54 -04:00
Dmytro Laktyushkin 1fbd2cfc15 drm/amd/display: fix viewport adjustment on rotated surface
Signed-off-by: Dmytro Laktyushkin <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:18:50 -04:00
Dmytro Laktyushkin 9e6c74ceef drm/amd/display: fix hsplit viewport calculation for rotated/mirrored usecases
Signed-off-by: Dmytro Laktyushkin <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:18:46 -04:00
Dmytro Laktyushkin b2d0a103e6 drm/amd/display: add init calculation to scaler params
Signed-off-by: Dmytro Laktyushkin <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Dmytro Laktyushkin <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:18:43 -04:00
Zeyu Fan 4a9a5d62ec drm/amd/display: Refactor on dc_sink structure.
Signed-off-by: Zeyu Fan <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:18:39 -04:00
Andrey Grodzovsky a36214858c drm/amd/display: Switch to DRM helpers in s3.
Signed-off-by: Andrey Grodzovsky <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Reviewed-by: Jordan Lazare <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:18:36 -04:00
Yongqiang Sun 268cadbd65 drm/amd/display: Do not copy bottom pipe when map resource.
Signed-off-by: Yongqiang Sun <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:18:32 -04:00
Yongqiang Sun f196f0805b drm/amd/display: After program backend, also program front end regs.
Issue:
In case of two 4K@60 + one non-4k monitor, when unplug non-4k monitor,
the remain two 4k monitor don't work properly.
Reason:
In that case, two 4k use two pipes and no split, when unplug happens,
those two monitor will use 4 pipes and split, but on that time, frontend
is not programed properly.
Solution:
After programed backend, front end should be programmed as per new pipe
setting.

Signed-off-by: Yongqiang Sun <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:18:27 -04:00
Charlene Liu c30267f502 drm/amd/display: TPS4 logic typo fix
Signed-off-by: Charlene Liu <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Wenjing Liu <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:18:22 -04:00
Charlene Liu 5ac3d3c9b7 drm/amd/display: move refclk from dc to resource_pool
Signed-off-by: Charlene Liu <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:18:18 -04:00
Leon Elazar 68339af3cb drm/amd/display: Memory leak fix during disable
1.current_context memory wasn't released at
dc_post_update_surfaces_to_stream during context swap.

Signed-off-by: Leon Elazar <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Reviewed-by: Tony Cheng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
2017-09-26 17:18:15 -04:00