Vitaly Prosyak
b6d6103bbb
drm/amd/display: RV stereo support
...
Re-organize 3d declarations
Signed-off-by: Vitaly Prosyak <[email protected] >
Reviewed-by: Charlene Liu <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:08:03 -04:00
Harry Wentland
c8210d5ae3
drm/amd/display: Don't call DCN clk code for Vega
...
Signed-off-by: Harry Wentland <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:08:02 -04:00
Andrey Grodzovsky
1159898a88
drm/amd/display: Handle commit plane with no FB.
...
1) Always call flip ISR, for any surface comit, not only for page flip.
2) For events not signaled in flip ISR, handle them in end of commit_tail.
3)Fix race condition between subsequent atomic calls by removing
current state access AFTER drm_atomic_helper_commit_hw_done
was called. After this call a pending next commit will
swap in his own state into objects and proceed.
Signed-off-by: Andrey Grodzovsky <[email protected] >
Reviewed-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:08:02 -04:00
Andrey Grodzovsky
7047015410
drm/amd/display: Get rid of seperate flip function.
...
This code is remanant of pre atomic age when flip was a
standalone IOCTL.
Signed-off-by: Andrey Grodzovsky <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Reviewed-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:08:01 -04:00
Hersen Wu
3f6d743598
drm/amd/display: DAL3 RV get DPREFCLK SpreadspectrumInfo from smu_info
...
Signed-off-by: Hersen Wu <[email protected] >
Reviewed-by: Charlene Liu <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:08:00 -04:00
Vitaly Prosyak
7f5c22d165
drm/amd/display: RV stereo support
...
HDMI frame pack and DP frame alternate in band
Signed-off-by: Vitaly Prosyak <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:08:00 -04:00
Shirish S
aed8b31918
drm/amd/display: remove get_position() of underlay
...
get_position() returns CRTC vertical/horizontal counters,
hence it is not applicable for underlay which is plane and not
attached to one crtc.
This patch hence removes the callback from dce110_tg_v_funcs
and hence fixes a bug in dc_debug.c where in
get_position() for underlay pipe is called un-conditionally.
Witout this patch get_position() is called in case one has
to update underlay plane's data,
since callback implmented with an ASSERT(),
the old_surface_count and new_surface_count mismatches; causing
only one plane update which is not right and also assert makes the
rendering slow.
Signed-off-by: Shirish S <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:59 -04:00
Dmytro Laktyushkin
561f3a4db3
drm/amd/display: enable pipe split
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:59 -04:00
Dmytro Laktyushkin
ad32734699
drm/amd/display: w/a for ycbcr output pre-multiplied alpha corruption
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Dmytro Laktyushkin <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:58 -04:00
Dmytro Laktyushkin
f0558542a7
drm/amd/display: redesign mpc
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Dmytro Laktyushkin <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:57 -04:00
Yongqiang Sun
4c6e75989e
drm/amd/display: disable dcc when reset front end.
...
Signed-off-by: Yongqiang Sun <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:57 -04:00
Vitaly Prosyak
9edba5574d
drm/amd/display: RV stereo support
...
HDMI frame pack and DP frame alternate in band
Signed-off-by: Vitaly Prosyak <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:56 -04:00
Dmytro Laktyushkin
c9742685c2
drm/amd/display: add bw logging for dcn
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:56 -04:00
Dmytro Laktyushkin
11589813e6
drm/amd/display: fix enable_optc_clock reg_wait timeouts
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:55 -04:00
Yongqiang Sun
2f1e8efd10
drm/amd/display: Use surface update inuse for pending check.
...
Signed-off-by: Yongqiang Sun <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:54 -04:00
Anthony Koo
fea0f581ab
drm/amd/display: Temporary disable BTR FreeSync support for now
...
Reduce timer tick interval for the static screen
Signed-off-by: Anthony Koo <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:54 -04:00
Dmytro Laktyushkin
ba326a9185
drm/amd/display: propagate surface alpha setting from OS to DC
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:53 -04:00
Zeyu Fan
1bf56e62cc
drm/amd/display: Call program_gamut explicitly instead of entire set_plane
...
This fixes on boot crush on Vega, Polaris with Dal3.
Signed-off-by: Zeyu Fan <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:53 -04:00
Zeyu Fan
a235bd9f1e
drm/amd/display: Add function to log connectivity
...
Signed-off-by: Zeyu Fan <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:52 -04:00
Charlene Liu
909e8c9e41
drm/amd/display: fix single link black screen
...
Don't fall back to dual link DVI mode if the connector
is single Link only.
Signed-off-by: Charlene Liu <[email protected] >
Reviewed-by: Dmytro Laktyushkin <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:51 -04:00
Amy Zhang
fc82c5cb30
drm/amd/display: Fix DRR Enable on Desktop
...
- Block PSR in Full screen apps to prevent incorrect static screen curser events
- Reprogram static screen events when update freesync state
- Program static ramp variable active after other values are programmed
- Correct wrong assigning of the nominal and current vcount
Signed-off-by: Amy Zhang <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:51 -04:00
Amy Zhang
9f72f51d70
drm/amd/display: Refactor to call set PSR wait loop in dce_dmcu instead of dce_clocks
...
Signed-off-by: Amy Zhang <[email protected] >
Reviewed-by: Anthony Koo <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:50 -04:00
Dmytro Laktyushkin
1a2c82a2f1
drm/amd/display: fix mpc alpha programming
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:49 -04:00
Tony Cheng
8eee20139a
drm/amd/display: disable forced stutter disable after programming watermark
...
vbios will disable stutter pre-OS. driver re-enable after programming watermark
Signed-off-by: Tony Cheng <[email protected] >
Reviewed-by: Charlene Liu <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:49 -04:00
Hersen Wu
1e25ed3079
drm/amd/display: remove disable_clk_gate debug flag for DCN
...
Signed-off-by: Hersen Wu <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:48 -04:00
Corbin McElhanney
556ee1b75c
drm/amd/display: Add assertion for invalid surface dimensions
...
Signed-off-by: Corbin McElhanney <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:48 -04:00
Dmytro Laktyushkin
dcf6c1456e
drm/amd/display: clean up mpc programing during fe reset
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:47 -04:00
Corbin McElhanney
e7b1322e15
drm/amd/display: Don't update surface if dimensions are 0
...
Signed-off-by: Corbin McElhanney <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:46 -04:00
Leo (Sunpeng) Li
9c42df59e4
drm/amd/display: Remove unsupported RGB formats
...
Do not broadcast (to DRM) unsupported RGB formats.
Signed-off-by: Leo (Sunpeng) Li <[email protected] >
Reviewed-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:46 -04:00
Hersen Wu
5970f2aecc
drm/amd/display: Enable DCN clock gating
...
Signed-off-by: Hersen Wu <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:45 -04:00
Andrey Grodzovsky
1605b3bef8
drm/amd/display: Remove redundant member from amdgpu_plane.
...
Signed-off-by: Andrey Grodzovsky <[email protected] >
Signed-off-by: Leo (Sunpeng) Li <[email protected] >
Reviewed-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:45 -04:00
Amy Zhang
7db4dede64
drm/amd/display: Add function to get PSR state
...
Signed-off-by: Amy Zhang <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:44 -04:00
Andrey Grodzovsky
2ea5e9a8bd
drm/amd/display: Universal cursor plane hook-up.
...
Switch from legacy cursor to DRM cursor plane. Cursor
is not an actual plane but more of a subplane of each
pipe. Bind a DRM cursor plane instance to each CRTC.
Eliminate seperate FB object allocation for cursor and
clean dm_crtc_cursor_set.
Signed-off-by: Andrey Grodzovsky <[email protected] >
Signed-off-by: Leo (Sunpeng) Li <[email protected] >
Reviewed-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:43 -04:00
Dmytro Laktyushkin
0f9a536fe0
drm/amd/display: fix mpo + split pipe aquisition failure
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:43 -04:00
Dmytro Laktyushkin
05a19c39cb
drm/amd/display: fix surface attachment handling of pipe split
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:42 -04:00
Dmytro Laktyushkin
5d11e9fca5
drm/amd/display: allow taking split pipes during resource mapping
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:42 -04:00
Dmytro Laktyushkin
259873e1ff
drm/amd/display: stop adjusting scl taps when scl ratio is one on dcn
...
Signed-off-by: Dmytro Laktyushkin <[email protected] >
Reviewed-by: Dmytro Laktyushkin <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:41 -04:00
Harry Wentland
30406ff853
drm/amd/display: Don't commit surfaces if no stream
...
Signed-off-by: Harry Wentland <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:40 -04:00
Shirish S
f0c16087fb
drm/amd/display: update NV12/NV21 as the YUV format
...
This patch updates the YUV format supported to
NV12 and NV21 and hence updates the offsets.
BUG: SWDEV-119421
TEST: (On Chromium OS for Stoney Only)
* Executed below tests to see YUV(underlay) & RGB planes on eDP
plane_test --format XR24 --size 500x100 -p --format NV12 --size
500x500
Signed-off-by: Shirish S <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:40 -04:00
Jeff Smith
630e357385
drm/amd/display: default spd packet to invalid
...
Signed-off-by: Jeff Smith <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:39 -04:00
Shirish S
0a1c73ec8e
drm/amd/display: re-order the luma chroma addres updation
...
The DCE engine triggers scan as soon as the luma
address is updated, since it is updated before chroma address
the chroma data is not scanned out properly or in order.
This patch fixes this by re-ordering the same.
BUG: SWDEV-119421
TEST: (On Chromium OS for Stoney Only)
* Executed below tests to see YUV(underlay) & RGB planes on eDP
plane_test --format XR24 --size 500x100 -p --format NV12 --size 500x500
* Chroma data is scanned properly.
Signed-off-by: Shirish S <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:39 -04:00
Hersen Wu
e4bf0a0eed
drm/amd/display: create_links bug with empty DDI slot
...
Signed-off-by: Hersen Wu <[email protected] >
Reviewed-by: Hersen Wu <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:38 -04:00
Harry Wentland
7fa4fcba7a
drm/amd/display: Don't guard x86 in Makefile
...
make-kpkg doesn't seem to like it
Signed-off-by: Harry Wentland <[email protected] >
Reviewed-by: Andrey Grodzovsky <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:37 -04:00
Andrey Grodzovsky
4c92c92d77
drm/amd/display: Get rid of get_dm_commit_action
...
Use drm_atomic_crtc_needs_modeset instead.
Signed-off-by: Andrey Grodzovsky <[email protected] >
Reviewed-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:37 -04:00
Jerry Zuo
afdbd4ccfd
drm/amd/display: fix NULL pointer in dm_commit_surfaces
...
Check if adding surface is failed to prevent NULL pointer deref.
Signed-off-by: Jerry Zuo <[email protected] >
Reviewed-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:36 -04:00
Amy Zhang
ece22899a4
drm/amd/display: Disable PSR entry abort to prevent intermittent freezes
...
Signed-off-by: Amy Zhang <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:36 -04:00
Zeyu Fan
72dfad5017
drm/amd/display: Add FORCE_HDR timing flag
...
Signed-off-by: Zeyu Fan <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:35 -04:00
Corbin McElhanney
c7dbdf1535
drm/amd/display: Allow update stream without surface
...
Passing NULL as surfaceUpdates to dc_update_surfaces_and_stream now
updates just the stream. Code that is dependent on srf_updates was moved
below the NULL check.
Signed-off-by: Corbin McElhanney <[email protected] >
Reviewed-by: Tony Cheng <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:34 -04:00
Charlene Liu
29eba8e88f
drm/amd/display: Add disable_psr debug flag
...
Signed-off-by: Charlene Liu <[email protected] >
Reviewed-by: Charlene Liu <[email protected] >
Acked-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:34 -04:00
Andrey Grodzovsky
893a2dd4a3
drm/amd/display: Clean unused interface.
...
Signed-off-by: Andrey Grodzovsky <[email protected] >
Reviewed-by: Harry Wentland <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2017-09-26 18:07:33 -04:00