[PATCH v2 0/7] drm/mediatek: Refactor plane init/check and support rotation

Sean Paul
2019-11-05T21:14:27Z

Hello,
This is a follow-on to [1], which supports the original Y-flip. I've
added X-flip and 180 degree rotate. Additionally, the rotation property
is only exposed for ovl planes, not rdma planes since rdma doesn't
support it. In order to differentiate between the two types, I had to
do some plumbing in order to surface the supported rotations of a
component as well as allowing a component to implement plane checks.

I've tested this on a 4.19 kernel on mt8183. The set was then forward
ported to mainline and build tested. The forward port was relatively
collision free, but there were a few.

Sean

[1]- https://lists.freedesktop.org/archives/dri-devel/2019-November/242312.html

Sean Paul (7):
drm/mediatek: Refactor plane init
drm/mediatek: Add helper to get component for a plane
drm/mediatek: Add plumbing for layer_check hook
drm/mediatek: Plumb supported rotation values from components to plane
init
drm/mediatek: Support reflect-y plane rotation
drm/mediatek: Support reflect-x plane rotation
drm/mediatek: Support 180 degree rotation

drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 50 +++++++
drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 145 ++++++++++++++------
drivers/gpu/drm/mediatek/mtk_drm_crtc.h | 2 +
drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 22 +++
drivers/gpu/drm/mediatek/mtk_drm_plane.c | 18 ++-
drivers/gpu/drm/mediatek/mtk_drm_plane.h | 4 +-
6 files changed, 199 insertions(+), 42 deletions(-)