]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/imx: ignore plane updates on disabled crtcs
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 5 Nov 2018 15:36:07 +0000 (16:36 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit0200a6d772ac576e2b2ea56c43ef66ff0e3929ca
tree58e9d57c28d1c40ae99da384214d0194bf44ef45
parentdc3d0140e76bbd1ae2b67989dfd07b01f4304a6a
drm/imx: ignore plane updates on disabled crtcs

BugLink: https://bugs.launchpad.net/bugs/1837952
[ Upstream commit 4fb873c9648e383206e0a91cef9b03aa54066aca ]

This patch fixes backtraces like the following when sending SIGKILL to a
process with a currently pending plane update:

    [drm:ipu_plane_atomic_check] CRTC should be enabled
    [drm:drm_framebuffer_remove] *ERROR* failed to commit
    ------------[ cut here ]------------
    WARNING: CPU: 3 PID: 63 at drivers/gpu/drm/drm_framebuffer.c:926 drm_framebuffer_remove+0x47c/0x498
    atomic remove_fb failed with -22

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/gpu/drm/imx/ipuv3-plane.c