Skip to content

Fix errors when reporting rotation capability

Hsiao Chien Sung dri-devel linux-arm-kernel linux-mediatek lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 patch 4 repliesIn review
  2. v31 patch 2 repliesSuperseded
  3. v21 patch 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch5 repliesSuperseded

Changes in v4 from the cover letter

- Remove rotation property from the driver data since OVL rotation property for all chips are the same

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1drm/mediatek: Fix errors when reporting rotation capabilitydrivers/gpu/drm/mediatek/mtk_disp_drv.h drivers/gpu/drm/mediatek/mtk_disp_ovl.c drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c +2 more+18 -134 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchAngeloGioacchino Del Regno
1/1R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/1] Fix errors when reporting rotation capability

This commit is based on [email protected].

This bug was found when running IGT tests.
For CRTCs that doesn't support rotation should still return DRM_MODE_ROTATE_0, otherwise the test will fail to restart. Returns the hardware capabilities accordingly.

Changes in v4:
- Remove rotation property from the driver data since OVL rotation property for all chips are the same

Changes in v3:
- Return 0 (not support) if rotation capabilities is not defined in the driver data.

Changes in v2:
- Restore DRM_MODE_ROTATE_180 (reflect x + reflect y = rotate 180)
- Define supported rotations in the driver data

Hsiao Chien Sung (1):
drm/mediatek: Fix errors when reporting rotation capability

 drivers/gpu/drm/mediatek/mtk_disp_drv.h        |  1 +
 drivers/gpu/drm/mediatek/mtk_disp_ovl.c        | 18 ++++++------------
 .../gpu/drm/mediatek/mtk_disp_ovl_adaptor.c    |  9 +++++++++
 drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c    |  1 +
 drivers/gpu/drm/mediatek/mtk_drm_plane.c       |  2 +-
 5 files changed, 18 insertions(+), 13 deletions(-)

--
2.39.2