linux_dsm_epyc7002/drivers/gpu/drm/msm/mdp
Archit Taneja 10967a0687 drm/msm/mdp5: Add support for legacy cursor updates
This code has been more or less picked up from the vc4 and intel
implementations of update_plane() funcs for cursor planes.

The update_plane() func is usually the drm_atomic_helper_update_plane
func that will issue an atomic commit with the plane updates. Such
commits are not intended to be done faster than the vsync rate.

The legacy cursor userspace API, on the other hand, expects the kernel
to handle cursor updates immediately.

Create a fast path in update_plane, which updates the cursor registers
and flushes the configuration. The fast path is taken when there is only
a change in the cursor's position in the crtc, or a change in the
cursor's crop co-ordinates. For anything else, we go via the slow path.

We take the slow path even when the fb changes, and when there is
currently no fb tied to the plane. This should hopefully ensure that we
always take a slow path for every new fb. This in turn should ensure that
the fb is pinned/prepared.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2017-02-06 11:28:44 -05:00
..
mdp4 drm/msm: Construct only one encoder for DSI 2017-02-06 11:28:43 -05:00
mdp5 drm/msm/mdp5: Add support for legacy cursor updates 2017-02-06 11:28:44 -05:00
mdp_common.xml.h drm/msm: update generated headers 2016-11-28 15:14:10 -05:00
mdp_format.c drm/msm/mdp: Add support for more RGBX formats 2016-05-08 10:22:16 -04:00
mdp_kms.c drm/msm/mdp: Clear pending interrupt status before enable interrupt 2015-08-15 18:27:27 -04:00
mdp_kms.h drm/msm/mdp5: Misc cursor plane bits 2017-02-06 11:28:44 -05:00