drm/i915: protect ringbuffer sarea update behind !MODESET
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Feb 2014 22:44:34 +0000 (23:44 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Feb 2014 22:44:34 +0000 (23:44 +0100)
commitfb19e2ac7cc0f4addbdb1577501a4cdfb6183e7d
tree1d8128f225e5220eb19083373445dcc278a0d556
parent1fcb195e901575e503253cd16ad86326d4218b7d
drm/i915: protect ringbuffer sarea update behind !MODESET

Avoids surprises when userspace races open/closes against this.

Cc: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c