]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/exynos: exynos7_drm_decon: add vblank check in IRQ handling
authorKaustabh Chakraborty <kauschluss@disroot.org>
Thu, 26 Jun 2025 19:20:30 +0000 (00:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:25:01 +0000 (18:25 +0200)
commitb4e72c0bf878f02faa00a7dc7c9ffc4ff7c116a7
treef341808a55580bc0e95e5d342f2e022f51b13664
parenta801f7b08b598d8dc66c28c55b08e5cabea6b74c
drm/exynos: exynos7_drm_decon: add vblank check in IRQ handling

commit b846350aa272de99bf6fecfa6b08e64ebfb13173 upstream.

If there's support for another console device (such as a TTY serial),
the kernel occasionally panics during boot. The panic message and a
relevant snippet of the call stack is as follows:

  Unable to handle kernel NULL pointer dereference at virtual address 000000000000000
  Call trace:
    drm_crtc_handle_vblank+0x10/0x30 (P)
    decon_irq_handler+0x88/0xb4
    [...]

Otherwise, the panics don't happen. This indicates that it's some sort
of race condition.

Add a check to validate if the drm device can handle vblanks before
calling drm_crtc_handle_vblank() to avoid this.

Cc: stable@vger.kernel.org
Fixes: 96976c3d9aff ("drm/exynos: Add DECON driver")
Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/exynos/exynos7_drm_decon.c