From: Boris Brezillon <boris.brezillon@free-electrons.com>
To: Eric Anholt <eric@anholt.net>
Cc: Mark Rutland <mark.rutland@arm.com>, Lee Jones <lee@kernel.org>,
Liviu Dudau <Liviu.Dudau@arm.com>,
dri-devel@lists.freedesktop.org,
Gerd Hoffmann <kraxel@redhat.com>,
Florian Fainelli <f.fainelli@gmail.com>,
Eben Upton <eben@raspberrypi.org>,
bcm-kernel-feedback-list@broadcom.com,
devicetree@vger.kernel.org, Pawel Moll <pawel.moll@arm.com>,
Stephen Warren <swarren@wwwdotorg.org>,
Ray Jui <rjui@broadcom.com>, Rob Herring <robh+dt@kernel.org>,
linux-rpi-kernel@lists.infradead.org, "Hollingworth,
Gordon" <gordon@raspberrypi.org>,
"Cobley, Dom" <dom@raspberrypi.org>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Scott Branden <sbranden@broadcom.com>,
Kumar Gala <galak@codeaurora.org>,
Shawn Guo <shawnguo@kernel.org>
Subject: Re: [PATCH 2/7] drm/vc4: Fix vblank handling
Date: Fri, 16 Jun 2017 09:47:58 +0200 [thread overview]
Message-ID: <20170616094758.66b7ea29@bbrezillon> (raw)
In-Reply-To: <87fuf0u8ul.fsf@eliezer.anholt.net>
On Thu, 15 Jun 2017 16:30:58 -0700
Eric Anholt <eric@anholt.net> wrote:
> Boris Brezillon <boris.brezillon@free-electrons.com> writes:
>
> > There are two problems related to VBLANK handling in the current CRTC
> > driver:
> >
> > * 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
> > * 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.
>
> Does drm_crtc_vblank_get() actually fail when drm_crtc_vblank_on()
> hasn't been called? The code is a bit twisty, but it looked like we
> would track the get refcount and then turn on the interrupt once
> drm_crtc_vblank_on() was called.
I thought I had faced the WARN_ON() backtrace while developing the TXP
block, but I can't reproduce it (even after reverting these changes),
so it was probably caused by something else.
>
> The first change of the two seems straightforward and good, though (and
> possible to separate, right?).
I'll prepare a new patch containing only the first change.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2017-06-16 7:47 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-02 8:32 [PATCH 0/7] drm/vc4: Add writeback support to the VC4 driver Boris Brezillon
2017-06-02 8:32 ` [PATCH 1/7] drm: Add drm_atomic_helper_wait_for_flip_done() Boris Brezillon
[not found] ` <1496392332-8722-1-git-send-email-boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-06-02 8:32 ` [PATCH 2/7] drm/vc4: Fix vblank handling Boris Brezillon
[not found] ` <1496392332-8722-3-git-send-email-boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-06-15 23:30 ` Eric Anholt
2017-06-16 7:47 ` Boris Brezillon [this message]
2017-06-02 8:32 ` [PATCH 3/7] drm/vc4: Mimic drm_atomic_helper_commit() behavior Boris Brezillon
[not found] ` <1496392332-8722-4-git-send-email-boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-06-06 20:27 ` Eric Anholt
[not found] ` <87k24orheq.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org>
2017-06-06 20:48 ` Boris Brezillon
2017-06-07 17:46 ` Eric Anholt
[not found] ` <87o9tzg06z.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org>
2017-06-15 23:33 ` Eric Anholt
[not found] ` <87d1a4u8qw.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org>
2017-06-16 7:19 ` Boris Brezillon
2017-06-21 17:25 ` Eric Anholt
2017-06-13 10:10 ` Boris Brezillon
2017-06-02 8:32 ` [PATCH 4/7] drm/vc4: Use drm_atomic_helper_wait_for_flip_done() Boris Brezillon
[not found] ` <1496392332-8722-5-git-send-email-boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-06-06 20:24 ` Eric Anholt
[not found] ` <87lgp4rhj2.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org>
2017-06-06 20:59 ` Boris Brezillon
2017-06-02 8:32 ` [PATCH 5/7] drm/vc4: Add support for the TXP (transposer) block Boris Brezillon
[not found] ` <1496392332-8722-6-git-send-email-boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-06-05 11:25 ` Brian Starkey
2017-06-06 19:13 ` Boris Brezillon
2017-06-13 10:34 ` Brian Starkey
2017-06-13 17:32 ` Eric Anholt
[not found] ` <87efunaj4o.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org>
2017-06-14 8:23 ` Brian Starkey
2017-06-02 8:32 ` [PATCH 6/7] dt-bindings: Document the VC4 TXP module nodes Boris Brezillon
[not found] ` <1496392332-8722-7-git-send-email-boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
2017-06-06 20:30 ` Eric Anholt
2017-06-07 22:21 ` Rob Herring
2017-06-02 8:32 ` [PATCH 7/7] ARM: dts: bcm283x: Add Transposer block Boris Brezillon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170616094758.66b7ea29@bbrezillon \
--to=boris.brezillon@free-electrons.com \
--cc=Liviu.Dudau@arm.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=devicetree@vger.kernel.org \
--cc=dom@raspberrypi.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=eben@raspberrypi.org \
--cc=eric@anholt.net \
--cc=f.fainelli@gmail.com \
--cc=galak@codeaurora.org \
--cc=gordon@raspberrypi.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=kraxel@redhat.com \
--cc=lee@kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=rjui@broadcom.com \
--cc=robh+dt@kernel.org \
--cc=sbranden@broadcom.com \
--cc=shawnguo@kernel.org \
--cc=swarren@wwwdotorg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).