OSDN Git Service

drm/i915: Don't set cursor pipe select bits on g4x+
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 30 Jan 2018 20:38:01 +0000 (22:38 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 20 Feb 2018 18:37:51 +0000 (20:37 +0200)
commit32ea06b67eb2b693c78bd795b8a8f7fdac03fb6a
treecdb1ed5b3698689f46e25bc3cc9145775b1792a1
parentaa81e2c334824d399f16e7cabe272ebf3c0e43df
drm/i915: Don't set cursor pipe select bits on g4x+

G4x cursor control registers still allow us to write to the pipe select
bits even though cursors are supposed to be fixed to a specific pipe.
Bspec tells us that we should only ever write 0 to these bits. Let's
follow that recommendation. On ilk+ the bits become hardwired to 0.

Also looks like ICL repurposes these bits for some other use, so
we had better stop setting them to bogus values there.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180130203807.13721-1-ville.syrjala@linux.intel.com
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
drivers/gpu/drm/i915/intel_display.c