From: Hsiao Chien Sung <shawn.sung@mediatek.com>
To: Chun-Kuang Hu <chunkuang.hu@kernel.org>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>
Cc: Philipp Zabel <p.zabel@pengutronix.de>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
Matthias Brugger <matthias.bgg@gmail.com>,
Sean Paul <seanpaul@chromium.org>, CK Hu <ck.hu@mediatek.com>,
<dri-devel@lists.freedesktop.org>,
<linux-mediatek@lists.infradead.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>,
Hsiao Chien Sung <shawn.sung@mediatek.com>
Subject: [PATCH v4 0/1] Fix errors when reporting rotation capability
Date: Fri, 24 Nov 2023 18:00:51 +0800 [thread overview]
Message-ID: <20231124100052.18599-1-shawn.sung@mediatek.com> (raw)
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
next reply other threads:[~2023-11-24 10:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-24 10:00 Hsiao Chien Sung [this message]
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 (宋孝謙)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231124100052.18599-1-shawn.sung@mediatek.com \
--to=shawn.sung@mediatek.com \
--cc=airlied@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chunkuang.hu@kernel.org \
--cc=ck.hu@mediatek.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=seanpaul@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®