Re: imx_ldb: lockdep warning on 5.14.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Oct 10, 2021 at 12:39 PM Fabio Estevam <festevam@xxxxxxxxx> wrote:
>
> Hi,
>
> I am getting the lockdep warning below on a imx6q-sabred running 5.14.9.
>
> Haven't debugged this yet, but just wanted to report in case someone
> has any suggestions.

git bisect shows that the guilty commit is:

commit f4b34faa08428d813fc3629f882c503487f94a12
Author: Daniel Vetter <daniel.vetter@xxxxxxxx>
Date:   Thu Jan 21 16:29:55 2021 +0100

    drm/imx: Annotate dma-fence critical section in commit path

    drm_atomic_helper_commit_hw_done() is the last thing (no plane cleanup
    apparrently), so it's the entire function. And a nice comment
    explaining why the wait_for_flip_done is ahead, unlike the usual
    sequence.

    Aside, I think since the atomic helpers do track plane disabling now
    separately this might no longer be a real problem since:

    commit 21a01abbe32a3cbeb903378a24e504bfd9fe0648
    Author: Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx>
    Date:   Mon Sep 4 12:48:37 2017 +0200

        drm/atomic: Fix freeing connector/plane state too early by
tracking commits, v3.

    Plus the subsequent bugfixes of course, this was tricky to get right.

    Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxxx>
    Cc: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
    Cc: Shawn Guo <shawnguo@xxxxxxxxxx>
    Cc: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
    Cc: Pengutronix Kernel Team <kernel@xxxxxxxxxxxxxx>
    Cc: Fabio Estevam <festevam@xxxxxxxxx>
    Cc: NXP Linux Team <linux-imx@xxxxxxx>
    Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
    Signed-off-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>

If I revert this commit on top of 5.14, the lockdep warning is gone.

Daniel,

How do we fix this?

Thanks



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux