Fix drm suspend and resume issue
jason-jh.lin
jason-jh.lin at mediatek.com
Tue Nov 16 22:41:55 PST 2021
Subject: [PATCH 0/3] Fix drm suspend and resume issue
1. When the hardwire components on crtc is using GCE to configure their
register, cmdq_suspend may be called.
So add cmdq_mbox_flush to clear all tasks and release GCE clocks
before cmdq_suspend.
2. The suspend and resume order of components on crtc can be guaranteed
by the same power-domain, but cmdq can not.
So add devlink to cmdq dev make sure the order of suspend and resume:
cmdq_suspend is latter than drm_suspend and
cmdq_resume is earlier than drm_resume.
jason-jh.lin (3):
mialbox: move cmdq suspend,resume and remove after cmdq_mbox_flush
mailbox: add cmdq_mbox_flush to clear all task before suspend
drm/mediatek: add devlink to cmdq dev
drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 13 ++++
drivers/mailbox/mtk-cmdq-mailbox.c | 81 ++++++++++++-------------
2 files changed, 52 insertions(+), 42 deletions(-)
--
2.18.0
More information about the linux-arm-kernel
mailing list