]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: dpu: Move pm_runtime_(get|put) from vblank_enable
authorSean Paul <seanpaul@chromium.org>
Fri, 16 Nov 2018 18:42:27 +0000 (13:42 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 11 Dec 2018 18:10:13 +0000 (13:10 -0500)
commit1a077a1eedc1f435ffba45d11da5d8a0dbfbd544
tree9e1ae07710f8ec24861b59a3897567d8e70d9a5c
parentd93b9b57761c8fd907f41ee9635bd9f9ef387ec4
drm/msm: dpu: Move pm_runtime_(get|put) from vblank_enable

There are 4 times that _dpu_crtc_vblank_enable_no_lock() is called:

1- crtc enable
2- crtc disable
3- crtc vblank enable
4- crtc vblank disable

When we enable or disable the crtc, we call drm_crtc_vblank_on and
drm_crtc_vblank_off respectively. That will gate vblank enables and
disables to only being called when the crtc is active. That means that
we can just enable/disable pm runtime in crtc enable/disable. This will
be beneficial in trying to eliminate blocking calls from the vblank call
chain.

Changes in v2:
- None

Reviewed-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c