-
- Downloads
drm/i915: Mark the GEM context link as RCU protected
The only protection for intel_context.gem_cotext is granted by RCU, so annotate it as a rcu protected pointer and carefully dereference it in the few occasions we need to use it. Fixes: 9f3ccd40 ("drm/i915: Drop GEM context as a direct link from i915_request") Signed-off-by:Chris Wilson <chris@chris-wilson.co.uk> Cc: Andi Shyti <andi.shyti@intel.com> Acked-by:
Andi Shyti <andi.shyti@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191222233558.2201901-1-chris@chris-wilson.co.uk
Showing
- drivers/gpu/drm/i915/gem/i915_gem_context.c 3 additions, 2 deletionsdrivers/gpu/drm/i915/gem/i915_gem_context.c
- drivers/gpu/drm/i915/gt/intel_context_types.h 1 addition, 1 deletiondrivers/gpu/drm/i915/gt/intel_context_types.h
- drivers/gpu/drm/i915/gt/intel_reset.c 20 additions, 6 deletionsdrivers/gpu/drm/i915/gt/intel_reset.c
- drivers/gpu/drm/i915/gt/intel_ring_submission.c 1 addition, 1 deletiondrivers/gpu/drm/i915/gt/intel_ring_submission.c
- drivers/gpu/drm/i915/i915_gpu_error.c 26 additions, 14 deletionsdrivers/gpu/drm/i915/i915_gpu_error.c
- drivers/gpu/drm/i915/i915_request.c 3 additions, 3 deletionsdrivers/gpu/drm/i915/i915_request.c
- drivers/gpu/drm/i915/i915_request.h 8 additions, 0 deletionsdrivers/gpu/drm/i915/i915_request.h
Loading
Please register or sign in to comment