drm/i915: Add a spinlock to protect the active_list
This is a baby-step in the direction of having finer-grained locking than the struct_mutex. Specifically, this will enable new debugging code to read the active list for printing out GPU state when the GPU is wedged, (while the struct_mutex is held, of course). Signed-off-by:Carl Worth <cworth@cworth.org> [anholt: indentation fix] Signed-off-by:
Eric Anholt <eric@anholt.net>
Showing
- drivers/gpu/drm/i915/i915_drv.h 1 addition, 0 deletionsdrivers/gpu/drm/i915/i915_drv.h
- drivers/gpu/drm/i915/i915_gem.c 20 additions, 4 deletionsdrivers/gpu/drm/i915/i915_gem.c
- drivers/gpu/drm/i915/i915_gem_debug.c 2 additions, 0 deletionsdrivers/gpu/drm/i915/i915_gem_debug.c
- drivers/gpu/drm/i915/i915_gem_debugfs.c 6 additions, 0 deletionsdrivers/gpu/drm/i915/i915_gem_debugfs.c
Please register or sign in to comment