Skip to content

Add overlay plane support for ZTE drm driver

Shawn Guo dri-devel linux-arm-kernel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 1 replyIn review
  2. v43 patches 2 repliesSuperseded
  3. v33 patches 4 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch2 repliesSuperseded
v11 patch2 repliesSuperseded

Changes in v5 from the cover letter

- Use crtc->state->plane_mask to check which planes are active for a given CRTC, so that we can save vou->overlays pointer array.
- Use plane->state->crtc to determine if a plane is enabled or not, so that 'enabled' flag in zx_plane can be eliminated.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm: zte: make zx_plane accessible from zx_vou driverdrivers/gpu/drm/zte/zx_plane.c drivers/gpu/drm/zte/zx_plane.h drivers/gpu/drm/zte/zx_vou.c+33 -450 replies
2/3drm: zte: add .atomic_disable hook to disable graphic layerdrivers/gpu/drm/zte/zx_plane.c drivers/gpu/drm/zte/zx_plane.h drivers/gpu/drm/zte/zx_vou.c +1 more+69 -200 replies
3/3drm: zte: add overlay plane supportdrivers/gpu/drm/zte/zx_plane.c drivers/gpu/drm/zte/zx_plane_regs.h drivers/gpu/drm/zte/zx_vou.c +1 more+413 -291 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchSean Paul
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/3] Add overlay plane support for ZTE drm driver

From: Shawn Guo <[email protected]>

Changes for v5:
- Use crtc->state->plane_mask to check which planes are active for a given CRTC, so that we can save vou->overlays pointer array.
- Use plane->state->crtc to determine if a plane is enabled or not, so that 'enabled' flag in zx_plane can be eliminated.

Changes for v4:
- Instead of using val, return value directly for zx_vl_get_fmt() and zx_vl_rsz_get_fmt().
- Fix typo of 'heigth'
- Add 'enabled' in struct zx_plane to track layer enabling state, and check the state in zx_plane_set_update(), so that we can call zx_plane_set_update() unconditionally in the vou irq handler.

Changes for v3:
- Let zx_plane be accessible from zx_vou driver, and so we can easily access all the data encoded in zx_plane with a drm_plane pointer. Thus, function zx_overlay_find_vl_idx() can be saved completely.
- Refine the existing zx_plane driver a bit to support disable graphic layer, and make the support of overlay plane a bit easier, by sharing VOU layer setup and teardown functions between graphic and video layers.

Changes for v2:
- Use clipped coordinates for overlay position calculation

Shawn Guo (3):
drm: zte: make zx_plane accessible from zx_vou driver
drm: zte: add .atomic_disable hook to disable graphic layer
drm: zte: add overlay plane support

 drivers/gpu/drm/zte/zx_plane.c      | 328 +++++++++++++++++++++++++++++++-----
 drivers/gpu/drm/zte/zx_plane.h      |  12 +-
 drivers/gpu/drm/zte/zx_plane_regs.h |  51 ++++++
 drivers/gpu/drm/zte/zx_vou.c        | 173 ++++++++++++++-----
 drivers/gpu/drm/zte/zx_vou.h        |   3 +
 drivers/gpu/drm/zte/zx_vou_regs.h   |  18 ++
 6 files changed, 503 insertions(+), 82 deletions(-)
Signature · 1 line
1.9.1