[PATCH v2 0/6] drm/vc4: kms: Misc fixes for HVS commits
Maxime Ripard
maxime at cerno.tech
Thu Nov 18 10:40:09 UTC 2021
On Thu, Nov 18, 2021 at 02:42:58PM +0800, Jian-Hong Pan wrote:
> Maxime Ripard <maxime at cerno.tech> 於 2021年11月17日 週三 下午5:45寫道:
> > The conversion to DRM commit helpers (f3c420fe19f8, "drm/vc4: kms: Convert to
> > atomic helpers") introduced a number of issues in corner cases, most of them
> > showing themselves in the form of either a vblank timeout or use-after-free
> > error.
> >
> > These patches should fix most of them, some of them still being debugged.
> >
> > Maxime
> >
> > Changes from v1:
> > - Prevent a null pointer dereference
> >
> > Maxime Ripard (6):
> > drm/vc4: kms: Wait for the commit before increasing our clock rate
> > drm/vc4: kms: Fix return code check
> > drm/vc4: kms: Add missing drm_crtc_commit_put
> > drm/vc4: kms: Clear the HVS FIFO commit pointer once done
> > drm/vc4: kms: Don't duplicate pending commit
> > drm/vc4: kms: Fix previous HVS commit wait
> >
> > drivers/gpu/drm/vc4/vc4_kms.c | 42 ++++++++++++++++-------------------
> > 1 file changed, 19 insertions(+), 23 deletions(-)
>
> I tested the v2 patches based on latest mainline kernel with RPi 4B.
> System can boot up into desktop environment.
So the thing that was broken initially isn't anymore?
> Although it still hit the bug [1], which might be under debugging, I
> think these patches LGTM.
The vblank timeout stuff is a symptom of various different bugs. Can you
share your setup, your config.txt, and what you're doing to trigger it?
> [1] https://bugzilla.kernel.org/show_bug.cgi?id=214991
>
> Tested-by: Jian-Hong Pan <jhp at endlessos.org>
Thanks!
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20211118/432e0fd0/attachment.sig>
More information about the dri-devel
mailing list