From: Tilak Tangudu <tilak.tangudu@xxxxxxxxx> 1. Added D3Cold-Off support for runtime pm for discrete gpu. 2. LMEM is switched off and gpu is in off state in D3Cold-Off so, lmem & GT deep suspend/resume is added. 3. Re-used i915_gem_backup_suspend, i915_gem_suspend_late and i915_gem_resume to handle above 2. 4. These functions use runtime helpers, which in-turn call runtime suspend/resume callbacks and leads to deadlock. So, these helpers need to be avoided. 5. Added is_intel_rpm_allowed and disallowed rpm callbacks during suspending and resuming. 6. Integrated D3Cold policy patch, but is a FIXME, as LMEM usage is not queried, lmem->avail stopped tracking lmem usage after ttm port. 7. Added/used i915_save/load_pci_state helpers 8. In intel_guc_global_policies_update, guarded intel_guc_is_ready with rpm helpers as it needs guc interaction. 9. Fixed error *ERROR DC state mismatch (0x8 -> 0x0)". 10. Guarded rc6 rpm helpers with is_intel_rpm_allowed as these are called in suspend/resume cllbacks. Signed-off-by: Tilak Tangudu <tilak.tangudu@xxxxxxxxx> Anshuman Gupta (1): Drm/i915/rpm: Add intel_runtime_idle Aravind Iddamsetty (1): drm/i915: Add i915_save/load_pci_state helpers Tilak Tangudu (6): drm/i915: Added is_intel_rpm_allowed helper drm/i915: Guard rc6 helpers with is_intel_rpm_allowed drm/i915: Extend rpm in intel_guc_global_policies_update drm/i915: sanitize dc state in rpm resume drm/i915/rpm: d3cold Policy drm/i915 : Add D3COLD OFF support .../drm/i915/display/intel_display_power.c | 1 + drivers/gpu/drm/i915/gt/intel_rc6.c | 13 +- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 9 +- drivers/gpu/drm/i915/i915_driver.c | 126 ++++++++++++++++-- drivers/gpu/drm/i915/i915_driver.h | 2 + drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_params.c | 5 + drivers/gpu/drm/i915/i915_params.h | 1 + drivers/gpu/drm/i915/intel_pm.c | 35 +++++ drivers/gpu/drm/i915/intel_pm.h | 1 + drivers/gpu/drm/i915/intel_runtime_pm.c | 26 +++- drivers/gpu/drm/i915/intel_runtime_pm.h | 8 ++ 12 files changed, 206 insertions(+), 22 deletions(-) -- 2.25.1