]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Restore memory mapping for DPT FBs across system suspend/resume
authorImre Deak <imre.deak@intel.com>
Mon, 1 Nov 2021 18:35:51 +0000 (20:35 +0200)
committerImre Deak <imre.deak@intel.com>
Wed, 3 Nov 2021 09:07:24 +0000 (11:07 +0200)
commit9755f055f5121c40c481c1d5dd02a1c3fb0e7953
tree4d49ce6f9f06312b4927e9da00ed9d3fe196d0e9
parent8d2f683f1c49b3a3c56ab92437722eda7e85bac2
drm/i915: Restore memory mapping for DPT FBs across system suspend/resume

At least during hibernation the DPT mappings are lost with all stolen
memory content, so suspend/resume these mappings similarly to GGTT
mappings.

This fixes a problem where the restoring modeset during system resume fails
with pipe faults if a tiled framebuffer was active before suspend.

v2: Clarify the way restore works in intel_dpt_resume()'s Docbook entry.
    (Chris)

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Vunny Sodhi <vunny.sodhi@intel.com>
Reported-and-tested-by: Vunny Sodhi <vunny.sodhi@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211101183551.3580546-2-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dpt.c
drivers/gpu/drm/i915/display/intel_dpt.h
drivers/gpu/drm/i915/i915_drv.c