linux_dsm_epyc7002/drivers/gpu/drm/arm
Ayan Kumar Halder e368fc75c1 drm/arm/malidp: Added the late system pm functions
malidp_pm_suspend_late checks if the runtime status is not suspended
and if so, invokes malidp_runtime_pm_suspend which disables the
display engine/core interrupts and the clocks. It sets the runtime status
as suspended.

The difference between suspend() and suspend_late() is as follows:-
1. suspend() makes the device quiescent. In our case, we invoke the DRM
helper which disables the CRTC. This would have invoked runtime pm
suspend but the system suspend process disables runtime pm.
2. suspend_late() It continues the suspend operations of the drm device
which was started by suspend(). In our case, it performs the same functionality
as runtime_suspend().

The complimentary functions are resume() and resume_early(). In the case of
resume_early(), we invoke malidp_runtime_pm_resume() which enables the clocks
and the interrupts. It sets the runtime status as active. If the device was
in runtime suspend mode before system suspend was called, pm_runtime_work()
will put the device back in runtime suspended mode( after the complete system
has been resumed).

Signed-off-by: Ayan Kumar Halder <ayan.halder@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
2018-07-05 15:19:10 +01:00
..
hdlcd_crtc.c drm: Don't pass clip to drm_atomic_helper_check_plane_state() 2018-03-05 20:48:25 +02:00
hdlcd_drv.c Merge tag 'drm-misc-next-2017-11-30' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 2017-12-04 05:42:49 +10:00
hdlcd_drv.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hdlcd_regs.h
Kconfig drm/arm: make fbdev support really optional 2016-07-18 09:11:42 +02:00
Makefile drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_crtc.c drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_drv.c drm/arm/malidp: Added the late system pm functions 2018-07-05 15:19:10 +01:00
malidp_drv.h drm: mali-dp: Add debugfs file for reporting internal errors 2018-07-05 15:19:05 +01:00
malidp_hw.c drm/arm/malidp: Set the output_depth register in modeset 2018-07-05 15:19:08 +01:00
malidp_hw.h drm/arm/malidp: Set the output_depth register in modeset 2018-07-05 15:19:08 +01:00
malidp_mw.c drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_mw.h drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_planes.c drm/mali-dp: Rectify the width and height passed to rotmem_required() 2018-06-18 18:08:43 +01:00
malidp_regs.h drm: mali-dp: Add debugfs file for reporting internal errors 2018-07-05 15:19:05 +01:00