diff options
author | Imre Deak <imre.deak@intel.com> | 2021-11-25 20:16:03 +0300 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2021-11-29 23:21:29 +0300 |
commit | 74ba89c08e309bfeb2b2f401bf588ab54a1542fe (patch) | |
tree | 59bb85395f8b1f063a468f5a71c33958a71d2779 /include/drm/drm_privacy_screen_driver.h | |
parent | 86c82c8aeebf6db5df8ab73cec8333853c405070 (diff) | |
download | linux-74ba89c08e309bfeb2b2f401bf588ab54a1542fe.tar.xz |
drm/i915: Fix DPT suspend/resume on !HAS_DISPLAY platforms
The drm.mode_config state is not initialized in case of !HAS_DISPLAY
so taking the fb_lock and iterating the fb list won't work on those
platforms. Skip the suspend/resume with an explicit check for this.
Fixes: 9755f055f512 ("drm/i915: Restore memory mapping for DPT FBs across system suspend/resume")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211125171603.1775179-1-imre.deak@intel.com
Diffstat (limited to 'include/drm/drm_privacy_screen_driver.h')
0 files changed, 0 insertions, 0 deletions