mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
7de96f728a
PD#SWPL-144894 Problem: Still running commit and wait vblank ioctl cause shutdown not to work. Solution: 1.drm_wait_vblank_ioctl can suspend on wait vblank, so use helper shutdown to disable KMS and disable irq. 2.drm_wait_vblank_ioctl can also suspend on lock before waiting vblank, so force drm_device.num_crtc=0 to prevent it. 3.running commit can be suspended by blocking the atomic ioctl thread and commit thread. For commit thread, flush worker of thread and stop it. Verify: yocto + S905y4 android + s905y4 yocto + t7c android + t7c Test: DRM-OSD-30 Change-Id: Id7c30e3afbcc83051ef4d1c4933c8e0140aebfd1 Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>