<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/imx, branch linux-5.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-07-14T14:59:45Z</updated>
<entry>
<title>drm/imx: ipuv3-plane: fix PRG modifiers after drm managed resource conversion</title>
<updated>2021-07-14T14:59:45Z</updated>
<author>
<name>Lucas Stach</name>
</author>
<published>2021-05-10T14:59:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6d41df73ee939c3b94f9a4aa3318e3eaf0b11e9f'/>
<id>urn:sha1:6d41df73ee939c3b94f9a4aa3318e3eaf0b11e9f</id>
<content type='text'>
[ Upstream commit 17b9a94656fe19aef3647c4f93d93be51697ceb1 ]

The conversion to drm managed resources introduced two bugs: the plane is now
always initialized with the linear-only list, while the list with the Vivante
GPU modifiers should have been used when the PRG/PRE engines are present. This
masked another issue, as ipu_plane_format_mod_supported() is now called before
the private plane data is set up, so if a non-linear modifier is supplied in
the plane modifier list, we run into a NULL pointer dereference checking for
the PRG presence. To fix this just remove the check from this function, as we
know that it will only be called with a non-linear modifier, if the plane init
code has already determined that the PRG/PRE is present.

Fixes: 699e7e543f1a ("drm/imx: ipuv3-plane: use drm managed resources")
Signed-off-by: Lucas Stach &lt;l.stach@pengutronix.de&gt;
Link: https://lore.kernel.org/r/20210510145927.988661-1-l.stach@pengutronix.de
Signed-off-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>drm/imx: ipuv3-plane: do not advertise YUV formats on planes without CSC</title>
<updated>2021-07-14T14:59:44Z</updated>
<author>
<name>Philipp Zabel</name>
</author>
<published>2021-01-19T13:51:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2fecec4f9bc92c2af8362b1b3eeee9f59fd846ed'/>
<id>urn:sha1:2fecec4f9bc92c2af8362b1b3eeee9f59fd846ed</id>
<content type='text'>
[ Upstream commit 06841148c570832d4d247b0f6befc1922a84120b ]

Only planes that are displayed via the Display Processor (DP) path
support color space conversion. Limit formats on planes that are
shown via the direct Display Controller (DC) path to RGB.

Reported-by: Fabio Estevam &lt;festevam@gmail.com&gt;
Signed-off-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>drm/imx: imx-ldb: fix out of bounds array access warning</title>
<updated>2021-03-25T06:48:34Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2021-03-24T16:47:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=33ce7f2f95cabb5834cf0906308a5cb6103976da'/>
<id>urn:sha1:33ce7f2f95cabb5834cf0906308a5cb6103976da</id>
<content type='text'>
When CONFIG_OF is disabled, building with 'make W=1' produces warnings
about out of bounds array access:

drivers/gpu/drm/imx/imx-ldb.c: In function 'imx_ldb_set_clock.constprop':
drivers/gpu/drm/imx/imx-ldb.c:186:8: error: array subscript -22 is below array bounds of 'struct clk *[4]' [-Werror=array-bounds]

Add an error check before the index is used, which helps with the
warning, as well as any possible other error condition that may be
triggered at runtime.

The warning could be fixed by adding a Kconfig depedency on CONFIG_OF,
but Liu Ying points out that the driver may hit the out-of-bounds
problem at runtime anyway.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Reviewed-by: Liu Ying &lt;victor.liu@nxp.com&gt;
Signed-off-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>drm/imx: imx-ldb: Register LDB channel1 when it is the only channel to be used</title>
<updated>2021-03-25T06:47:14Z</updated>
<author>
<name>Liu Ying</name>
</author>
<published>2021-03-22T02:56:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=12d0ca80bffdad9e9b2a7a68784bfca54c8cf1a1'/>
<id>urn:sha1:12d0ca80bffdad9e9b2a7a68784bfca54c8cf1a1</id>
<content type='text'>
LDB channel1 should be registered if it is the only channel to be used.
Without this patch, imx_ldb_bind() would skip registering LDB channel1
if LDB channel0 is not used, no matter LDB channel1 needs to be used or
not.

Fixes: 8767f4711b2b (drm/imx: imx-ldb: move initialization into probe)
Signed-off-by: Liu Ying &lt;victor.liu@nxp.com&gt;
Signed-off-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>drm/imx: fix memory leak when fails to init</title>
<updated>2021-03-25T06:43:42Z</updated>
<author>
<name>Pan Bian</name>
</author>
<published>2021-01-20T09:16:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=69c3ed7282a143439bbc2d03dc00d49c68fcb629'/>
<id>urn:sha1:69c3ed7282a143439bbc2d03dc00d49c68fcb629</id>
<content type='text'>
Put DRM device on initialization failure path rather than directly
return error code.

Fixes: a67d5088ceb8 ("drm/imx: drop explicit drm_mode_config_cleanup")
Signed-off-by: Pan Bian &lt;bianpan2016@163.com&gt;
Signed-off-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>drm/imx: dw_hdmi-imx: depend on OF to fix randconfig compile tests on x86_64</title>
<updated>2021-01-07T10:54:21Z</updated>
<author>
<name>Philipp Zabel</name>
</author>
<published>2021-01-06T17:19:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5d91295257eae2ebc01d23e2d04b891475d1ecd2'/>
<id>urn:sha1:5d91295257eae2ebc01d23e2d04b891475d1ecd2</id>
<content type='text'>
The i.MX6 HDMI driver uses of_drm_find_bridge() and thus cannot be built
with CONFIG_OF disabled:

    ld: drivers/gpu/drm/imx/dw_hdmi-imx.o: in function `dw_hdmi_imx_probe':
    dw_hdmi-imx.c:(.text+0x29f): undefined reference to `of_drm_find_bridge'

Reported-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;
Acked-by: Randy Dunlap &lt;rdunlap@infradead.org&gt; # build-tested
Fixes: c805ec7eb210 ("drm/imx: dw_hdmi-imx: move initialization into probe")
Signed-off-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>drm/imx: ipuv3-crtc: use drm managed resources</title>
<updated>2021-01-04T11:59:34Z</updated>
<author>
<name>Philipp Zabel</name>
</author>
<published>2020-12-10T15:38:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=16da8e9a7767ac77720f49bfa870def61a250cda'/>
<id>urn:sha1:16da8e9a7767ac77720f49bfa870def61a250cda</id>
<content type='text'>
Use use drmm_crtc_alloc_with_planes() to align crtc memory lifetime
with the drm device. drm_crtc_cleanup() is called automatically before
the memory is freed.
Also use drmm_add_action_or_reset() to make sure IPU resources are
released automatically.

Signed-off-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
Acked-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
<entry>
<title>drm/imx: ipuv3-plane: use drm managed resources</title>
<updated>2021-01-04T11:59:34Z</updated>
<author>
<name>Philipp Zabel</name>
</author>
<published>2020-12-10T15:38:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=699e7e543f1a7cc5a28159832e9a28261bc9e6be'/>
<id>urn:sha1:699e7e543f1a7cc5a28159832e9a28261bc9e6be</id>
<content type='text'>
Use drmm_universal_plane_alloc() to align plane memory lifetime with
the drm device. drm_plane_cleanup() is called automatically before the
memory is freed.
Also move the call to ipu_plane_get_resources() into ipu_plane_init()
and use drm managed resources to put IPU resources automatically when
required. Handle error return values of the plane property creation
functions.

Signed-off-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
Acked-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
<entry>
<title>drm/imx: parallel-display: use drm managed resources</title>
<updated>2021-01-04T11:59:34Z</updated>
<author>
<name>Philipp Zabel</name>
</author>
<published>2020-12-10T15:38:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c0ad88a9d8e53d63859e5b692b319c1a1a173917'/>
<id>urn:sha1:c0ad88a9d8e53d63859e5b692b319c1a1a173917</id>
<content type='text'>
Use drmm_simple_encoder_alloc() to align encoder memory lifetime with
the drm device. drm_encoder_cleanup() is called automatically before
the memory is freed.

Signed-off-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
Acked-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
<entry>
<title>drm/imx: imx-tve: use drm managed resources</title>
<updated>2021-01-04T11:59:33Z</updated>
<author>
<name>Philipp Zabel</name>
</author>
<published>2020-12-10T15:38:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2b20c96174100f1ace4ec3f66e53dad5ae966e3b'/>
<id>urn:sha1:2b20c96174100f1ace4ec3f66e53dad5ae966e3b</id>
<content type='text'>
Use drmm_simple_encoder_alloc() to align encoder memory lifetime with
the drm device. drm_encoder_cleanup() is called automatically before
the memory is freed.
Also fold imx_tve_register() into imx_tve_bind().

Signed-off-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
Acked-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
</feed>
