drm/i915: Protect pipe_crc->entries update
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 9 Dec 2014 19:28:30 +0000 (21:28 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 10 Dec 2014 16:47:25 +0000 (17:47 +0100)
commit4252fbc3d4d3abd09ccc7598342cc930d09aac27
treee7a9a5b14980fde95858b094614268f2c9e04fcf
parent2be57922d46fdec4360ced2eb108832c5a90bc0e
drm/i915: Protect pipe_crc->entries update

Set the pipe_crc->entries pointer while holding the relevant spinlock.
Doesn't matter too much since a spurious pipe crc interrupt would then
just update one entry but later that entry would get cleared when head
and tail are both set to 0. But being a bit more paranoid doesn't hurt.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c