mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/1] Fix errors when reporting rotation capability
@ 2023-11-24 10:00 Hsiao Chien Sung
  2023-11-24 10:00 ` [PATCH v4 1/1] drm/mediatek: " Hsiao Chien Sung
  0 siblings, 1 reply; 6+ messages in thread
From: Hsiao Chien Sung @ 2023-11-24 10:00 UTC (permalink / raw)
  To: Chun-Kuang Hu, AngeloGioacchino Del Regno
  Cc: Philipp Zabel, David Airlie, Daniel Vetter, Matthias Brugger,
	Sean Paul, CK Hu, dri-devel, linux-mediatek, linux-arm-kernel,
	linux-kernel, Hsiao Chien Sung

This commit is based on 20231024130048.14749-1-shawn.sung@mediatek.com.

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-19  5:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-24 10:00 [PATCH v4 0/1] Fix errors when reporting rotation capability Hsiao Chien Sung
2023-11-24 10:00 ` [PATCH v4 1/1] drm/mediatek: " Hsiao Chien Sung
2023-12-19  2:35   ` CK Hu (胡俊光)
2023-12-19  3:45     ` Shawn Sung (宋孝謙)
2023-12-19  5:24       ` CK Hu (胡俊光)
2023-12-19  5:59         ` Shawn Sung (宋孝謙)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®