Files
kernel_common_drivers/drivers/drm
yujun.zhang 7de96f728a drm: refine shutdown callback [1/1]
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>
2024-04-30 02:35:16 -07:00
..
2024-04-28 22:40:16 -07:00
2024-04-17 19:31:20 +08:00
2024-04-17 19:31:22 +08:00
2024-04-17 19:31:22 +08:00