<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/gpu/drm/arm/malidp_crtc.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-03-14T11:38:02Z</updated>
<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: mali-dp: Fix bug on scaling with rotation</title>
<updated>2018-03-14T11:38:02Z</updated>
<author>
<name>Ayan Halder</name>
<email>ayan.halder@arm.com</email>
</author>
<published>2017-12-19T16:20:16Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=6cc3a505dcd60894a3ecefcbb40058873924bcf0'/>
<id>urn:sha1:6cc3a505dcd60894a3ecefcbb40058873924bcf0</id>
<content type='text'>
In the case, when the user wants to scale and rotate a layer by 90/270
degrees, the scaling engine input dimensions' parameters ie width and
height needs to be swapped with respect to the layer's input dimensions.
This means scaling engine input height should be set to layer's input
width and scaling engine input width should be set to
layer's input height.

Signed-off-by: Ayan 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: Disable planes when their CRTC gets disabled.</title>
<updated>2017-11-24T15:43:52Z</updated>
<author>
<name>Liviu Dudau</name>
<email>Liviu.Dudau@arm.com</email>
</author>
<published>2017-08-31T16:39:24Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=54243016ae35a0912a680f884835237fd6176820'/>
<id>urn:sha1:54243016ae35a0912a680f884835237fd6176820</id>
<content type='text'>
Make sure only the planes on the active CRTCs get committed and
that all planes on the disabled CRTCs get turned off.

Reviewed-by: Brian Starkey &lt;brian.starkey@arm.com&gt;
Reviewed-by: Gustavo Padovan &lt;gustavo.padovan@collabora.com&gt;
Signed-off-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
</content>
</entry>
<entry>
<title>drm: mali-dp: Separate static internal data into a read-only structure.</title>
<updated>2017-11-24T15:42:59Z</updated>
<author>
<name>Liviu Dudau</name>
<email>Liviu.Dudau@arm.com</email>
</author>
<published>2017-08-31T14:48:43Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=a6993b215a719ad5758c1bced5f8df95add070bf'/>
<id>urn:sha1:a6993b215a719ad5758c1bced5f8df95add070bf</id>
<content type='text'>
The malidp_hw_device structure that the driver uses to handle the
differences between versions of the IP contains both non-changeable
data and fields that get updated at probe time. Previously we were
copying the read-only part into allocated memory, but that can be
completely avoided by splitting the structure into a read-only part
and keeping the runtime modifiable fields into the old structure.

Reviewed-by: Brian Starkey &lt;brian.starkey@arm.com&gt;
Reviewed-by: Gustavo Padovan &lt;gustavo.padovan@collabora.com&gt;
Signed-off-by: Liviu Dudau &lt;liviu.dudau@arm.com&gt;
</content>
</entry>
<entry>
<title>drm: Convert atomic drivers from CRTC .disable() to .atomic_disable()</title>
<updated>2017-06-30T12:53:15Z</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart+renesas@ideasonboard.com</email>
</author>
<published>2017-06-30T09:36:45Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=64581714b58bc3e16ede8dc37a025c3aa0e0eef1'/>
<id>urn:sha1:64581714b58bc3e16ede8dc37a025c3aa0e0eef1</id>
<content type='text'>
The CRTC .disable() helper operation is deprecated for atomic drivers,
the new .atomic_disable() helper operation being preferred. Convert all
atomic drivers to .atomic_disable() to avoid cargo-cult use of
.disable() in new drivers.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Acked-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt; # for sun4i
Acked-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt; # for mediatek
Acked-by: Alexey Brodkin &lt;abrodkin@synopsys.com&gt; # for arcpgu
Acked-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt; # for atmel-hlcdc
Tested-by: Philippe Cornu &lt;philippe.cornu@st.com&gt; # for stm
Acked-by: Philippe Cornu &lt;philippe.cornu@st.com&gt; # for stm
Acked-by: Vincent Abriou &lt;vincent.abriou@st.com&gt; # for sti
Reviewed-by: Thomas Hellstrom &lt;thellstrom@vmware.com&gt; # for vmwgfx
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/20170630093646.7928-3-laurent.pinchart+renesas@ideasonboard.com
</content>
</entry>
<entry>
<title>drm: Add old state pointer to CRTC .enable() helper function</title>
<updated>2017-06-30T12:53:14Z</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart+renesas@ideasonboard.com</email>
</author>
<published>2017-06-30T09:36:44Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=0b20a0f8c3cb6f74fe326101b62eeb5e2c56a53c'/>
<id>urn:sha1:0b20a0f8c3cb6f74fe326101b62eeb5e2c56a53c</id>
<content type='text'>
The old state is useful for drivers that need to perform operations at
enable time that depend on the transition between the old and new
states.

While at it, rename the operation to .atomic_enable() to be consistent
with .atomic_disable(), as the .enable() operation is used by atomic
helpers only.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Acked-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt; # for sun4i
Acked-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt; # for imx-drm and mediatek
Acked-by: Alexey Brodkin &lt;abrodkin@synopsys.com&gt; # for arcpgu
Acked-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt; # for atmel-hlcdc
Acked-by: Liviu Dudau &lt;Liviu.Dudau@arm.com&gt; # for hdlcd and mali-dp
Acked-by: Stefan Agner &lt;stefan@agner.ch&gt; # for fsl-dcu
Tested-by: Philippe Cornu &lt;philippe.cornu@st.com&gt; # for stm
Acked-by: Philippe Cornu &lt;philippe.cornu@st.com&gt; # for stm
Acked-by: Vincent Abriou &lt;vincent.abriou@st.com&gt; # for sti
Reviewed-by: Thomas Hellstrom &lt;thellstrom@vmware.com&gt; # for vmwgfx
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/20170630093646.7928-2-laurent.pinchart+renesas@ideasonboard.com
</content>
</entry>
<entry>
<title>drm/arm: malidp: Use crtc-&gt;mode_valid() callback</title>
<updated>2017-06-16T10:56:46Z</updated>
<author>
<name>Jose Abreu</name>
<email>Jose.Abreu@synopsys.com</email>
</author>
<published>2017-05-19T00:52:17Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=e2113c036775408348cf1bd60a5659648220973f'/>
<id>urn:sha1:e2113c036775408348cf1bd60a5659648220973f</id>
<content type='text'>
Now that we have a callback to check if crtc supports a given mode
we can use it in malidp so that we restrict the number of probbed
modes to the ones we can actually display.

Also, remove the mode_fixup() callback as this is no longer needed
because mode_valid() will be called before.

Signed-off-by: Jose Abreu &lt;joabreu@synopsys.com&gt;
Cc: Carlos Palminha &lt;palminha@synopsys.com&gt;
Cc: Alexey Brodkin &lt;abrodkin@synopsys.com&gt;
Cc: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Cc: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Cc: Dave Airlie &lt;airlied@linux.ie&gt;
Cc: Andrzej Hajda &lt;a.hajda@samsung.com&gt;
Cc: Archit Taneja &lt;architt@codeaurora.org&gt;
Cc: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Liviu Dudau &lt;liviu@dudau.co.uk&gt;
</content>
</entry>
<entry>
<title>drm: mali-dp: use div_u64 for expensive 64-bit divisions</title>
<updated>2017-04-26T16:54:58Z</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2017-04-25T19:56:53Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=763656d30b3d220a52e4b2bd1fc174a4cd6c0f43'/>
<id>urn:sha1:763656d30b3d220a52e4b2bd1fc174a4cd6c0f43</id>
<content type='text'>
On 32-bit machines, we can't divide 64-bit integers:

drivers/gpu/drm/arm/malidp_crtc.o: In function `malidp_crtc_atomic_check':
malidp_crtc.c:(.text.malidp_crtc_atomic_check+0x3c0): undefined reference to `__aeabi_uldivmod'
malidp_crtc.c:(.text.malidp_crtc_atomic_check+0x3dc): undefined reference to `__aeabi_uldivmod'

This calls the div_u64 function explicitly instead.

Fixes: 4cea4e9f6690 ("drm: mali-dp: Add plane upscaling support")
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
<entry>
<title>drm: mali-dp: Check the mclk rate and allow up/down scaling</title>
<updated>2017-04-24T12:28:09Z</updated>
<author>
<name>Mihail Atanassov</name>
<email>mihail.atanassov@arm.com</email>
</author>
<published>2017-02-13T15:09:01Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c2e7f82d336a451ebb904b8bf9a5a558cf16c39b'/>
<id>urn:sha1:c2e7f82d336a451ebb904b8bf9a5a558cf16c39b</id>
<content type='text'>
When downscaling, mclk needs to be sufficiently higher than pxlclk in
order to be able to fetch the higher-resolution data and produce output
pixels. When not scaling, or when upscaling, mclk can be equal to
pxlclk. Since the driver doesn't control mclk, just ensure that the
requirement is satisfied with the current clock rate.

Signed-off-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: Enable image enhancement when scaling</title>
<updated>2017-04-24T12:28:08Z</updated>
<author>
<name>Mihail Atanassov</name>
<email>mihail.atanassov@arm.com</email>
</author>
<published>2017-02-06T12:20:56Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=0274e6a0ba9a4994a449fcd3483ef530027e152f'/>
<id>urn:sha1:0274e6a0ba9a4994a449fcd3483ef530027e152f</id>
<content type='text'>
Apply image enhacement when we are upscaling by a factor of 2
or more in either direction.

Signed-off-by: Mihail Atanassov &lt;mihail.atanassov@arm.com&gt;
Signed-off-by: Liviu Dudau &lt;Liviu.Dudau@arm.com&gt;
</content>
</entry>
</feed>
