]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use the g4x+ approach on gen2 for handling display stuff around GPU reset
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 5 Aug 2016 20:28:30 +0000 (23:28 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 5 Aug 2016 20:28:30 +0000 (23:28 +0300)
commita6a196e12fcfd3e057fec37b4fbb9a230f3b0301
treea88a96291797459b0f7c66c422975969f8da5764
parent5d725870a5473b6931a17eff12bc4579fa0e56be
drm/i915: Use the g4x+ approach on gen2 for handling display stuff around GPU reset

We don't have GPU reset support for gen2, which means the display
hardware is unaffected when a GPU hang is handled. However as the ring
has in fact stopped, any flips still in the ring will never complete,
and thus the display base address updates will never happen. So we
really need to fix that up manually just like we do on g4x+.

In fact, let's just use intel_has_gpu_reset() instead of IS_GEN2()
since that'll also handle cases where someone would disable the GPU
reset support on gen3/4 for whatever reason.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470428910-12125-5-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c