<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/drivers/gpu/drm/mediatek, branch v5.5.8</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>drm/mediatek: Add gamma property according to hardware capability</title>
<updated>2020-02-24T07:38:25+00:00</updated>
<author>
<name>Yongqiang Niu</name>
<email>yongqiang.niu@mediatek.com</email>
</author>
<published>2019-12-13T07:28:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=2776d3ad4d1ca662ae8ee0a61cf946076196fb55'/>
<id>2776d3ad4d1ca662ae8ee0a61cf946076196fb55</id>
<content type='text'>
[ Upstream commit 4cebc1de506fa753301266a5a23bb21bca52ad3a ]

If there is no gamma function in the crtc
display path, don't add gamma property
for crtc

Fixes: 2f3f4dda747c ("drm/mediatek: Add gamma correction.")
Signed-off-by: Yongqiang Niu &lt;yongqiang.niu@mediatek.com&gt;
Signed-off-by: Hsin-Yi Wang &lt;hsinyi@chromium.org&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[ Upstream commit 4cebc1de506fa753301266a5a23bb21bca52ad3a ]

If there is no gamma function in the crtc
display path, don't add gamma property
for crtc

Fixes: 2f3f4dda747c ("drm/mediatek: Add gamma correction.")
Signed-off-by: Yongqiang Niu &lt;yongqiang.niu@mediatek.com&gt;
Signed-off-by: Hsin-Yi Wang &lt;hsinyi@chromium.org&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drm/mediatek: handle events when enabling/disabling crtc</title>
<updated>2020-02-24T07:38:18+00:00</updated>
<author>
<name>Bibby Hsieh</name>
<email>bibby.hsieh@mediatek.com</email>
</author>
<published>2019-12-10T05:05:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=a5d1f407b8b80f66d969136ed84994c9a8c3bb42'/>
<id>a5d1f407b8b80f66d969136ed84994c9a8c3bb42</id>
<content type='text'>
[ Upstream commit 411f5c1eacfebb1f6e40b653d29447cdfe7282aa ]

The driver currently handles vblank events only when updating planes on
an already enabled CRTC. The atomic update API however allows requesting
an event when enabling or disabling a CRTC. This currently leads to
event objects being leaked in the kernel and to events not being sent
out. Fix it.

Signed-off-by: Bibby Hsieh &lt;bibby.hsieh@mediatek.com&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[ Upstream commit 411f5c1eacfebb1f6e40b653d29447cdfe7282aa ]

The driver currently handles vblank events only when updating planes on
an already enabled CRTC. The atomic update API however allows requesting
an event when enabling or disabling a CRTC. This currently leads to
event objects being leaked in the kernel and to events not being sent
out. Fix it.

Signed-off-by: Bibby Hsieh &lt;bibby.hsieh@mediatek.com&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drm/mediatek: reduce the hbp and hfp for phy timing</title>
<updated>2019-12-17T02:23:43+00:00</updated>
<author>
<name>Jitao Shi</name>
<email>jitao.shi@mediatek.com</email>
</author>
<published>2019-12-13T09:52:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=e18e0f6b7c8f220774dd68965e8a9b046905acc8'/>
<id>e18e0f6b7c8f220774dd68965e8a9b046905acc8</id>
<content type='text'>
There are some extra data transfer in dsi.
ex. LPX, hs_prepare, hs_zero, hs_exit and the sof/eof of dsi packet.
This signal will enlarge the line time. So the real frame on dsi bus
will be lower than calc by video timing.

So dsi driver reduces the hbp and hfp to keep the line time.

Fixes: 7a5bc4e22ecf ("drm/mediatek: change the dsi phytiming calculate method")
Signed-off-by: Jitao Shi &lt;jitao.shi@mediatek.com&gt;
Tested-by: Hsin-Yi Wang &lt;hsinyi@chromium.org&gt;
Tested-by: Enric Balletbo i Serra &lt;enric.balletbo@collabora.com&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are some extra data transfer in dsi.
ex. LPX, hs_prepare, hs_zero, hs_exit and the sof/eof of dsi packet.
This signal will enlarge the line time. So the real frame on dsi bus
will be lower than calc by video timing.

So dsi driver reduces the hbp and hfp to keep the line time.

Fixes: 7a5bc4e22ecf ("drm/mediatek: change the dsi phytiming calculate method")
Signed-off-by: Jitao Shi &lt;jitao.shi@mediatek.com&gt;
Tested-by: Hsin-Yi Wang &lt;hsinyi@chromium.org&gt;
Tested-by: Enric Balletbo i Serra &lt;enric.balletbo@collabora.com&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drm/mediatek: Fix can't get component for external display plane.</title>
<updated>2019-12-09T01:29:05+00:00</updated>
<author>
<name>Yongqiang Niu</name>
<email>yongqiang.niu@mediatek.com</email>
</author>
<published>2019-11-27T10:04:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=92c17f6043647652e1f4a772636e4288d4ecea3e'/>
<id>92c17f6043647652e1f4a772636e4288d4ecea3e</id>
<content type='text'>
The original logic is ok for primary display, but will not find out
component for external display.

For example, plane-&gt;index is 6 for external display, but there are only
2 layer nr in external display, and this condition will never happen:
if (plane-&gt;index &lt; (count + mtk_ddp_comp_layer_nr(comp)))

Fix this by using the offset of the plane to mtk_crtc-&gt;planes as index,
instead of plane-&gt;index.

Fixes: d6b53f68356f ("drm/mediatek: Add helper to get component for a plane")
Signed-off-by: Yongqiang Niu &lt;yongqiang.niu@mediatek.com&gt;
Signed-off-by: Pi-Hsun Shih &lt;pihsun@chromium.org&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The original logic is ok for primary display, but will not find out
component for external display.

For example, plane-&gt;index is 6 for external display, but there are only
2 layer nr in external display, and this condition will never happen:
if (plane-&gt;index &lt; (count + mtk_ddp_comp_layer_nr(comp)))

Fix this by using the offset of the plane to mtk_crtc-&gt;planes as index,
instead of plane-&gt;index.

Fixes: d6b53f68356f ("drm/mediatek: Add helper to get component for a plane")
Signed-off-by: Yongqiang Niu &lt;yongqiang.niu@mediatek.com&gt;
Signed-off-by: Pi-Hsun Shih &lt;pihsun@chromium.org&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drm/mediatek: Check return value of mtk_drm_ddp_comp_for_plane.</title>
<updated>2019-12-09T01:29:05+00:00</updated>
<author>
<name>Pi-Hsun Shih</name>
<email>pihsun@chromium.org</email>
</author>
<published>2019-11-18T06:18:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=13b0ba33d78b32384ea38abd03bc2b795fcab194'/>
<id>13b0ba33d78b32384ea38abd03bc2b795fcab194</id>
<content type='text'>
The mtk_drm_ddp_comp_for_plane can return NULL, but the usage doesn't
check for it. Add check for it.

Fixes: d6b53f68356f ("drm/mediatek: Add helper to get component for a plane")
Signed-off-by: Pi-Hsun Shih &lt;pihsun@chromium.org&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The mtk_drm_ddp_comp_for_plane can return NULL, but the usage doesn't
check for it. Add check for it.

Fixes: d6b53f68356f ("drm/mediatek: Add helper to get component for a plane")
Signed-off-by: Pi-Hsun Shih &lt;pihsun@chromium.org&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge tag 'mediatek-drm-next-5.5-2' of https://github.com/ckhu-mediatek/linux.git-tags into drm-next</title>
<updated>2019-11-08T03:19:55+00:00</updated>
<author>
<name>Dave Airlie</name>
<email>airlied@redhat.com</email>
</author>
<published>2019-11-08T03:19:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=393fdfdb4aeef7dc3a45c9e28cafdc9f8a8830f2'/>
<id>393fdfdb4aeef7dc3a45c9e28cafdc9f8a8830f2</id>
<content type='text'>
Mediatek DRM next for Linux 5.5 - 2

Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;

From: CK Hu &lt;ck.hu@mediatek.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/1573093419.13645.5.camel@mtksdaap41
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Mediatek DRM next for Linux 5.5 - 2

Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;

From: CK Hu &lt;ck.hu@mediatek.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/1573093419.13645.5.camel@mtksdaap41
</pre>
</div>
</content>
</entry>
<entry>
<title>drm/mediatek: Support 180 degree rotation</title>
<updated>2019-11-06T08:00:45+00:00</updated>
<author>
<name>Sean Paul</name>
<email>seanpaul@chromium.org</email>
</author>
<published>2019-11-05T21:10:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=df444457711858d398896d678bd3cd7f43f1c1f5'/>
<id>df444457711858d398896d678bd3cd7f43f1c1f5</id>
<content type='text'>
Now that we support both reflections, we can expose 180 degree rotation
and rely on the simplify routine to convert that into REFLECT_X |
REFLECT_Y

Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that we support both reflections, we can expose 180 degree rotation
and rely on the simplify routine to convert that into REFLECT_X |
REFLECT_Y

Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drm/mediatek: Support reflect-x plane rotation</title>
<updated>2019-11-06T08:00:45+00:00</updated>
<author>
<name>Sean Paul</name>
<email>seanpaul@chromium.org</email>
</author>
<published>2019-11-05T21:10:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=b368d3ecab2db45a4fa296fe825d4ef6893f4620'/>
<id>b368d3ecab2db45a4fa296fe825d4ef6893f4620</id>
<content type='text'>
Add support for REFLECT_X rotations.

Cc: Fritz Koenig &lt;frkoenig@chromium.org&gt;
Cc: Daniele Castagna &lt;dcastagna@chromium.org&gt;
Cc: Miguel Casas &lt;mcasas@chromium.org&gt;
Cc: Mark Yacoub &lt;markyacoub@google.com&gt;
Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support for REFLECT_X rotations.

Cc: Fritz Koenig &lt;frkoenig@chromium.org&gt;
Cc: Daniele Castagna &lt;dcastagna@chromium.org&gt;
Cc: Miguel Casas &lt;mcasas@chromium.org&gt;
Cc: Mark Yacoub &lt;markyacoub@google.com&gt;
Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drm/mediatek: Support reflect-y plane rotation</title>
<updated>2019-11-06T08:00:44+00:00</updated>
<author>
<name>Sean Paul</name>
<email>seanpaul@chromium.org</email>
</author>
<published>2019-11-05T21:10:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=84d805753983757ea3655acbd47887764acf293f'/>
<id>84d805753983757ea3655acbd47887764acf293f</id>
<content type='text'>
Expose the rotation property and handle REFLECT_Y rotations.

Cc: Fritz Koenig &lt;frkoenig@chromium.org&gt;
Cc: Daniele Castagna &lt;dcastagna@chromium.org&gt;
Cc: Miguel Casas &lt;mcasas@chromium.org&gt;
Cc: Mark Yacoub &lt;markyacoub@google.com&gt;
Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Expose the rotation property and handle REFLECT_Y rotations.

Cc: Fritz Koenig &lt;frkoenig@chromium.org&gt;
Cc: Daniele Castagna &lt;dcastagna@chromium.org&gt;
Cc: Miguel Casas &lt;mcasas@chromium.org&gt;
Cc: Mark Yacoub &lt;markyacoub@google.com&gt;
Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drm/mediatek: Plumb supported rotation values from components to plane init</title>
<updated>2019-11-06T08:00:44+00:00</updated>
<author>
<name>Sean Paul</name>
<email>seanpaul@chromium.org</email>
</author>
<published>2019-11-05T21:10:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=ef87d3e2dd251374c5c9fa3b6502aeff8fe29da9'/>
<id>ef87d3e2dd251374c5c9fa3b6502aeff8fe29da9</id>
<content type='text'>
This patch adds the ability for components to expose supported rotations
which will be exposed to userspace via a plane rotation property.

No functional changes in this patch.

Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds the ability for components to expose supported rotations
which will be exposed to userspace via a plane rotation property.

No functional changes in this patch.

Signed-off-by: Sean Paul &lt;seanpaul@chromium.org&gt;
Signed-off-by: CK Hu &lt;ck.hu@mediatek.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
