<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/gpu/drm/arm/malidp_planes.c, branch linux-4.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.17.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.17.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2018-08-24T11:06:42Z</updated>
<entry>
<title>drm/mali-dp: Rectify the width and height passed to rotmem_required()</title>
<updated>2018-08-24T11:06:42Z</updated>
<author>
<name>Ayan Kumar Halder</name>
<email>ayan.halder@arm.com</email>
</author>
<published>2018-06-18T17:08:43Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=bf3a313b9dee0fa60a2327ef86cc775a309c76cf'/>
<id>urn:sha1:bf3a313b9dee0fa60a2327ef86cc775a309c76cf</id>
<content type='text'>
[ Upstream commit c6cf387ec56c19028333274747bbb4ae145a2d13 ]

The width and height needs to be swapped

Signed-off-by: Ayan Kumar halder &lt;ayan.halder@arm.com&gt;
Reviewed-by: Brian Starkey &lt;brian.starkey@arm.com&gt;
Reviewed-by: Alexandru Gheorghe &lt;alexandru-cosmin.gheorghe@arm.com&gt;
Acked-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
[rebased on top of v4.18-rc1]
Signed-off-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drm/arm/malidp: Preserve LAYER_FORMAT contents when setting format</title>
<updated>2018-08-24T11:06:42Z</updated>
<author>
<name>Ayan Kumar Halder</name>
<email>ayan.halder@arm.com</email>
</author>
<published>2018-04-10T18:25:03Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=39b9c26680448fcdcf918bb8f1ad983e6a17d0dd'/>
<id>urn:sha1:39b9c26680448fcdcf918bb8f1ad983e6a17d0dd</id>
<content type='text'>
[ Upstream commit ad7fda2e378f4356df621a39655f7c200b495d81 ]

On some Mali-DP processors, the LAYER_FORMAT register contains fields
other than the format. These bits were unconditionally cleared when
setting the pixel format, whereas they should be preserved at their
reset values.

Reported-by: Brian Starkey &lt;brian.starkey@arm.com&gt;
Reported-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
Signed-off-by: Ayan Kumar halder &lt;ayan.halder@arm.com&gt;
Acked-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
Signed-off-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@microsoft.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drm: mali-dp: Add YUV-&gt;RGB conversion support for video layers</title>
<updated>2018-03-14T11:41:01Z</updated>
<author>
<name>Mihail Atanassov</name>
<email>mihail.atanassov@arm.com</email>
</author>
<published>2017-11-07T15:30:46Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=6e810eb508f4b937bc2a718bd4e5cd74cca55500'/>
<id>urn:sha1:6e810eb508f4b937bc2a718bd4e5cd74cca55500</id>
<content type='text'>
Internally Mali DP uses an RGB pipeline so video layers that support
YUV input buffers need to convert the input data to RGB. The YUV
buffers can have various encodings and this patch introduces support
for BT.601, BT.709 and BT.2020 encodings, both limited and full ranges.

This patch adds support for specifying the color encoding of the
input buffers for the planes that are backed by the video layers
and programs the YUV2RGB coefficients into hardware based on the
selected encoding.

Signed-off-by: Mihail Atanassov &lt;mihail.atanassov@arm.com&gt;
[updated to use standard properties]
Signed-off-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
</content>
</entry>
<entry>
<title>drm: arm: malidp: Use drm_atomic_helper_shutdown() to disable planes on removal</title>
<updated>2018-03-14T11:38:03Z</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart+renesas@ideasonboard.com</email>
</author>
<published>2018-01-17T21:55:30Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=828f207077c699a8363415efbcb2a6d8a11bb100'/>
<id>urn:sha1:828f207077c699a8363415efbcb2a6d8a11bb100</id>
<content type='text'>
The plane cleanup handler currently calls drm_plane_helper_disable(),
which is a legacy helper function. Replace it with a call to
drm_atomic_helper_shutdown() at removal time.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Signed-off-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
</content>
</entry>
<entry>
<title>drm: arm: malidp: Don't destroy planes manually in error handlers</title>
<updated>2018-03-14T11:38:02Z</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart+renesas@ideasonboard.com</email>
</author>
<published>2018-01-17T21:55:29Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=084ffbd7fd147ce6e114d82298c84f143d4fff7f'/>
<id>urn:sha1:084ffbd7fd147ce6e114d82298c84f143d4fff7f</id>
<content type='text'>
The top-level error handler calls drm_mode_config_cleanup() which will
destroy all planes. There's no need to destroy them manually in lower
error handlers.

As plane cleanup is now handled entirely by drm_mode_config_cleanup(),
we must ensure that the plane .destroy() handler frees allocated memory
for the plane object that was freed by malidp_de_planes_destroy(). Do so
by replacing the call to devm_kfree() in the .destroy() handler by
kfree(). devm_kfree() is currently a no-op as the plane memory is
allocated with kzalloc(), not devm_kzalloc().

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Signed-off-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
</content>
</entry>
<entry>
<title>drm/arm/malidp: Disable pixel alpha blending for colors that do not have alpha</title>
<updated>2018-03-14T11:38:02Z</updated>
<author>
<name>Ayan Halder</name>
<email>ayan.halder@arm.com</email>
</author>
<published>2018-01-23T16:49:29Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f0437819ad82088d4a07732222912345b5b98767'/>
<id>urn:sha1:f0437819ad82088d4a07732222912345b5b98767</id>
<content type='text'>
Mali dp needs to disable pixel alpha blending (use layer alpha blending) to
display color formats that do not contain alpha bits per pixel

This patch depends on:

"[PATCH v2 01/19] drm/fourcc: Add a alpha field to drm_format_info"

Signed-off-by: Ayan Kumar Halder &lt;ayan.halder@arm.com&gt;
Signed-off-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
</content>
</entry>
<entry>
<title>drm/mali-dp: Don't enable scaling engine for planes that only rotate.</title>
<updated>2018-03-14T11:38:02Z</updated>
<author>
<name>Liviu Dudau</name>
<email>Liviu.Dudau@arm.com</email>
</author>
<published>2017-12-15T16:42:19Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=e0521c05c13cca593d386533c61a646ab3dbcfd9'/>
<id>urn:sha1:e0521c05c13cca593d386533c61a646ab3dbcfd9</id>
<content type='text'>
Currently the scaling engine gets enabled for a plane where the input
size differs from the composition size. As rotation is done natively
by the plane's hardware layer, we don't need the scaling engine to be
enabled.

Signed-off-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
</content>
</entry>
<entry>
<title>drm: mali-dp: Uninitialized variable in malidp_se_check_scaling()</title>
<updated>2018-03-14T11:38:02Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2017-12-09T11:46:13Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f2f2c85c66202edcb623626b3babce7850d8b4fb'/>
<id>urn:sha1:f2f2c85c66202edcb623626b3babce7850d8b4fb</id>
<content type='text'>
We use "mc" without initializing it if scaling is not necessary.

Fixes: 28ce675b7474 ("drm: mali-dp: Add plane upscaling support")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Reviewed-by: Mihail Atanassov &lt;Mihail.Atanassov@arm.com&gt;
Signed-off-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
</content>
</entry>
<entry>
<title>drm/mali-dp: Rotated planes need a larger pitch size.</title>
<updated>2018-03-14T11:38:02Z</updated>
<author>
<name>Liviu Dudau</name>
<email>Liviu.Dudau@arm.com</email>
</author>
<published>2017-12-05T16:51:03Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=fcad73b9b1fb9580fd43f1349fd8ab34d5d456e9'/>
<id>urn:sha1:fcad73b9b1fb9580fd43f1349fd8ab34d5d456e9</id>
<content type='text'>
Rotated planes need a pitch size that is aligned to 8 bytes
for older DP500 and DP550 and at least 64 bytes for DP650. Replace
the malidp_hw_pitch_valid() function with one that calculates
the correct pitch alignment to take into account rotation.

Signed-off-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
</content>
</entry>
<entry>
<title>drm: Don't pass clip to drm_atomic_helper_check_plane_state()</title>
<updated>2018-03-05T18:48:25Z</updated>
<author>
<name>Ville Syrjälä</name>
<email>ville.syrjala@linux.intel.com</email>
</author>
<published>2018-01-23T17:08:57Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=81af63a4af82e739aaa391d1fbb97e02c58ea6a1'/>
<id>urn:sha1:81af63a4af82e739aaa391d1fbb97e02c58ea6a1</id>
<content type='text'>
Move the plane clip rectangle handling into
drm_atomic_helper_check_plane_state(). Drivers no longer
have to worry about such mundane details.

v2: Convert armada, rcar, and sun4i as well
v3: Resolve simple_kms_helper conflict

Cc: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
Cc: Brian Starkey &lt;brian.starkey@arm.com&gt;
Cc: Mali DP Maintainers &lt;malidp@foss.arm.com&gt;
Cc: Daniel Vetter &lt;daniel.vetter@intel.com&gt;
Cc: Gustavo Padovan &lt;gustavo@padovan.org&gt;
Cc: Sean Paul &lt;seanpaul@chromium.org&gt;
Cc: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
Cc: CK Hu &lt;ck.hu@mediatek.com&gt;
Cc: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Cc: Rob Clark &lt;robdclark@gmail.com&gt;
Cc: Ben Skeggs &lt;bskeggs@redhat.com&gt;
Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Cc: Sandy Huang &lt;hjc@rock-chips.com&gt;
Cc: "Heiko Stübner" &lt;heiko@sntech.de&gt;
Cc: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Cc: Thierry Reding &lt;thierry.reding@gmail.com&gt;
Cc: VMware Graphics &lt;linux-graphics-maintainer@vmware.com&gt;
Cc: Sinclair Yeh &lt;syeh@vmware.com&gt;
Cc: Thomas Hellstrom &lt;thellstrom@vmware.com&gt;
Cc: Shawn Guo &lt;shawnguo@kernel.org&gt;
Cc: Archit Taneja &lt;architt@codeaurora.org&gt;
Cc: linux-amlogic@lists.infradead.org
Cc: linux-arm-msm@vger.kernel.org
Cc: freedreno@lists.freedesktop.org
Cc: nouveau@lists.freedesktop.org
Cc: linux-renesas-soc@vger.kernel.org
Cc: linux-tegra@vger.kernel.org
Cc: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Suggested-by: Daniel Vetter &lt;daniel@ffwll.ch&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Reviewed-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Reviewed-by: Thierry Reding &lt;treding@nvidia.com&gt;
Reviewed-by: Archit Taneja &lt;architt@codeaurora.org&gt; #msm
Link: https://patchwork.freedesktop.org/patch/msgid/20180123170857.13818-5-ville.syrjala@linux.intel.com
Acked-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt; #hdlcd,malidp
Acked-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt; #imx,mtk
Reviewed-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Reviewed-by: Sinclair Yeh &lt;syeh@vmware.com&gt; #vmwgfx
Acked-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt; #meson
Acked-by: Shawn Guo &lt;shawnguo@kernel.org&gt; #zte
</content>
</entry>
</feed>
