<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/gpu/drm/vc4/vc4_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-04-30T19:36:28Z</updated>
<entry>
<title>drm/vc4: Make sure vc4_bo_{inc,dec}_usecnt() calls are balanced</title>
<updated>2018-04-30T19:36:28Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@bootlin.com</email>
</author>
<published>2018-04-30T13:32:32Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f7aef1c207092770d06d0df21dceafdca2b49c39'/>
<id>urn:sha1:f7aef1c207092770d06d0df21dceafdca2b49c39</id>
<content type='text'>
Commit b9f19259b84d ("drm/vc4: Add the DRM_IOCTL_VC4_GEM_MADVISE ioctl")
introduced a mechanism to mark some BOs as purgeable to allow the driver
to drop them under memory pressure. In order to implement this feature
we had to add a mechanism to mark BOs as currently used by a piece of
hardware which materialized through the -&gt;usecnt counter.

Plane code is supposed to increment usecnt when it attaches a BO to a
plane and decrement it when it's done with this BO, which was done in
the -&gt;prepare_fb() and -&gt;cleanup_fb() hooks. The problem is, async page
flip logic does not go through the regular atomic update path, and
-&gt;prepare_fb() and -&gt;cleanup_fb() are not called in this case.

Fix that by manually calling vc4_bo_{inc,dec}_usecnt() in the
async-page-flip path.

Note that all this should go away as soon as we get generic async page
flip support in the core, in the meantime, this fix should do the
trick.

Fixes: b9f19259b84d ("drm/vc4: Add the DRM_IOCTL_VC4_GEM_MADVISE ioctl")
Reported-by: Peter Robinson &lt;pbrobinson@gmail.com&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;
Signed-off-by: Eric Anholt &lt;eric@anholt.net&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20180430133232.32457-1-boris.brezillon@bootlin.com
Link: https://patchwork.freedesktop.org/patch/msgid/20180430133232.32457-1-boris.brezillon@bootlin.com
</content>
</entry>
<entry>
<title>drm/vc4: Enable background color fill when necessary</title>
<updated>2018-03-09T19:25:11Z</updated>
<author>
<name>Stefan Schake</name>
<email>stschake@gmail.com</email>
</author>
<published>2018-03-09T00:53:37Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1d49f2e546a5a3258a88f85a1c04fd6feb6def37'/>
<id>urn:sha1:1d49f2e546a5a3258a88f85a1c04fd6feb6def37</id>
<content type='text'>
Using the hint from the plane state, we turn on the background color
to avoid display corruption from planes blending with the background.

Changes from v1:
 - Use needs_bg_fill from plane state

Signed-off-by: Stefan Schake &lt;stschake@gmail.com&gt;
Signed-off-by: Eric Anholt &lt;eric@anholt.net&gt;
Reviewed-by: Eric Anholt &lt;eric@anholt.net&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/1520556817-97297-5-git-send-email-stschake@gmail.com
</content>
</entry>
<entry>
<title>drm/vc4: switch to drm_*{get,put} helpers</title>
<updated>2017-08-08T20:20:11Z</updated>
<author>
<name>Cihangir Akturk</name>
<email>cakturk@gmail.com</email>
</author>
<published>2017-08-03T11:58:40Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1d5494e965be7b512cc03d48f1bfc6a93a876121'/>
<id>urn:sha1:1d5494e965be7b512cc03d48f1bfc6a93a876121</id>
<content type='text'>
drm_*_reference() and drm_*_unreference() functions are just
compatibility alias for drm_*_get() and drm_*_put() adn should not be
used by new code. So convert all users of compatibility functions to use
the new APIs.

Signed-off-by: Cihangir Akturk &lt;cakturk@gmail.com&gt;
Signed-off-by: Eric Anholt &lt;eric@anholt.net&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/1501761585-11757-26-git-send-email-cakturk@gmail.com
Reviewed-by: Eric Anholt &lt;eric@anholt.net&gt;
</content>
</entry>
<entry>
<title>Backmerge tag 'v4.13-rc2' into drm-next</title>
<updated>2017-07-26T22:15:43Z</updated>
<author>
<name>Dave Airlie</name>
<email>airlied@redhat.com</email>
</author>
<published>2017-07-26T22:15:43Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=0eb2c0ae578ba00f97c7541e01abbce022d14909'/>
<id>urn:sha1:0eb2c0ae578ba00f97c7541e01abbce022d14909</id>
<content type='text'>
Linux 4.13-rc2

This is required for drm-misc fixing.
</content>
</entry>
<entry>
<title>drm/vc4: Fix VBLANK handling in crtc-&gt;enable() path</title>
<updated>2017-07-14T20:19:48Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@free-electrons.com</email>
</author>
<published>2017-06-22T20:25:26Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1ed134e6526b1b513a14fba938f6d96aa1c7f3dd'/>
<id>urn:sha1:1ed134e6526b1b513a14fba938f6d96aa1c7f3dd</id>
<content type='text'>
When we are enabling a CRTC, drm_crtc_vblank_get() is called before
drm_crtc_vblank_on(), which is not supposed to happen (hence the
WARN_ON() in the code). To solve the problem, we delay the 'update
display list' operation after the CRTC is actually enabled.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Reviewed-by: Eric Anholt &lt;eric@anholt.net&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1498163126-26678-1-git-send-email-boris.brezillon@free-electrons.com
Fixes: 34c8ea400ff6 ("drm/vc4: Mimic drm_atomic_helper_commit() behavior")
</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/vc4: Remove dead vc4_event_pending().</title>
<updated>2017-06-22T18:14:39Z</updated>
<author>
<name>Eric Anholt</name>
<email>eric@anholt.net</email>
</author>
<published>2017-06-21T18:50:02Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=55a0b9d70a6c571b7d4f2f7eecb451c73b2f94a0'/>
<id>urn:sha1:55a0b9d70a6c571b7d4f2f7eecb451c73b2f94a0</id>
<content type='text'>
It is no longer used as of commit 34c8ea400ff6 ("drm/vc4: Mimic
drm_atomic_helper_commit() behavior")

Signed-off-by: Eric Anholt &lt;eric@anholt.net&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/20170621185002.28563-4-eric@anholt.net
Acked-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Reviewed-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>drm/vc4: Send a VBLANK event when disabling a CRTC</title>
<updated>2017-06-21T17:27:04Z</updated>
<author>
<name>Boris Brezillon</name>
<email>boris.brezillon@free-electrons.com</email>
</author>
<published>2017-06-16T08:30:33Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=edeb729f7929d1372ab426a7f56fd0b337ba5751'/>
<id>urn:sha1:edeb729f7929d1372ab426a7f56fd0b337ba5751</id>
<content type='text'>
VBLANK events are missed when the CRTC is being disabled because the
driver does not wait till the end of the frame before stopping the
HVS and PV blocks. In this case, we should explicitly issue a VBLANK
event if there's one waiting.

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Reviewed-by: Eric Anholt &lt;eric@anholt.net&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1497601833-24588-1-git-send-email-boris.brezillon@free-electrons.com
</content>
</entry>
<entry>
<title>drm: vc4: Use crtc-&gt;mode_valid() and encoder-&gt;mode_valid() callbacks</title>
<updated>2017-06-20T08:46:36Z</updated>
<author>
<name>Jose Abreu</name>
<email>Jose.Abreu@synopsys.com</email>
</author>
<published>2017-05-25T14:19:22Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c50a115b6e916b93f6fee0ede8ec1358b083c840'/>
<id>urn:sha1:c50a115b6e916b93f6fee0ede8ec1358b083c840</id>
<content type='text'>
Now that we have a callback to check if crtc and encoder supports a
given mode we can use it in vc4 so that we restrict the number of
probed modes to the ones we can actually display.

Also, remove the mode_fixup() calls as these are 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: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Cc: Eric Anholt &lt;eric@anholt.net&gt;
Cc: David Airlie &lt;airlied@linux.ie&gt;
Reviewed-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Compile-tested and Reviewed-by: Eric Anholt &lt;eric@anholt.net&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/5bea792f91074688c88a2dab8b0a90eec6e98fdf.1495720737.git.joabreu@synopsys.com
</content>
</entry>
</feed>
