drm/i915: fbdev restore mode needs to invalidate frontbuffer
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 8 Jul 2015 23:25:21 +0000 (16:25 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 9 Jul 2015 19:55:36 +0000 (21:55 +0200)
commitd04df7325ac9def8c4a68b49822c1d0a0c5379c6
tree6c7c2bc6861fcc222aae7d7c60f22893051febb9
parentaba6da3e61779186a7bd45e2206d88524f422e5b
drm/i915: fbdev restore mode needs to invalidate frontbuffer

This fbdev restore mode was another corner case that was now
calling frontbuffer flip and flush and making we miss
screen updates with PSR enabled.

So let's also add the invalidate hack here while we don't have
a reliable dirty fbdev op.

v2: As pointed by Paulo: removed seg fault risk, used fb_helper
    when possible and put brackets on if.

Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Testcase: igt/kms_fbcon_fbt/psr
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_fbdev.c