drm/i915/fbc: Fix nuke for pre-snb platforms
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 2 Jul 2020 15:37:21 +0000 (18:37 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 3 Jul 2020 11:56:14 +0000 (14:56 +0300)
commit2a4d632cc03e5a881a1e44bbc9e2f0248ea434d5
treebfed0be7a571b078523619e64d08d858cc0cca18
parente5ec1f95486957f9668da4e1f2b1666c085d307f
drm/i915/fbc: Fix nuke for pre-snb platforms

The MSG_FBC_REND_STATE register only exists on snb+. For older
platforms (would also work for snb+) we can simply rewite DSPSURF
to trigger a flip nuke.

While generally RMW is considered harmful we'll use it here for
simplicity. And since FBC doesn't exist in i830 we don't have to
worry about the DSPSURF double buffering hardware fails present
on that platform.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200702153723.24327-3-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/i915/display/intel_fbc.c