drm/i915: Drop GEM context as a direct link from i915_request
Keep the intel_context as being the primary state for i915_request, with the GEM context a backpointer from the low level state for the rarer cases we need client information. Our goal is to remove such references to clients from the backend, and leave the HW submission agnostic to client interfaces and self-contained. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Andi Shyti <andi.shyti@intel.com> Reviewed-by: Andi Shyti <andi.shyti@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191220101230.256839-1-chris@chris-wilson.co.uk
This commit is contained in:
@@ -3112,7 +3112,7 @@ static void i915_perf_enable_locked(struct i915_perf_stream *stream)
|
||||
stream->ops->enable(stream);
|
||||
|
||||
if (stream->hold_preemption)
|
||||
i915_gem_context_set_nopreempt(stream->ctx);
|
||||
intel_context_set_nopreempt(stream->pinned_ctx);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3138,7 +3138,7 @@ static void i915_perf_disable_locked(struct i915_perf_stream *stream)
|
||||
stream->enabled = false;
|
||||
|
||||
if (stream->hold_preemption)
|
||||
i915_gem_context_clear_nopreempt(stream->ctx);
|
||||
intel_context_clear_nopreempt(stream->pinned_ctx);
|
||||
|
||||
if (stream->ops->disable)
|
||||
stream->ops->disable(stream);
|
||||
|
Reference in New Issue
Block a user