drm/i915: Hold gt_lock during reset
authorKeith Packard <keithp@keithp.com>
Fri, 6 Jan 2012 19:44:11 +0000 (11:44 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 19 Jan 2012 20:28:42 +0000 (12:28 -0800)
commit286fed412a134e76be55899bc628c6fa59cb70da
treeaebb2c7db1204cbffaf40febab8770fa1acadc6e
parentb6e45f866465f42b53d803b0c574da0fc508a0e9
drm/i915: Hold gt_lock during reset

This ensures that no register reads occur while the forcewake state of
the hardware is indeterminate during the reset operation.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c