diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-08-09 21:25:17 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-08-09 22:18:30 +0300 |
commit | 48ae397b6b935c6733f15476c338df27eac9293c (patch) | |
tree | f6e892b3dd01392dbf819fa4f3a4c9d4dabe3b0e /drivers/gpu/drm/i915/gt/intel_engine_cs.c | |
parent | 4c60b1aaa255207eea2892d2d55b718db90d1ad8 (diff) | |
download | linux-48ae397b6b935c6733f15476c338df27eac9293c.tar.xz |
drm/i915: Push the ring creation flags to the backend
Push the ring creation flags from the outer GEM context to the inner
intel_context to avoid an unsightly back-reference from inside the
backend.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190809182518.20486-3-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/gt/intel_engine_cs.c')
-rw-r--r-- | drivers/gpu/drm/i915/gt/intel_engine_cs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gt/intel_engine_cs.c b/drivers/gpu/drm/i915/gt/intel_engine_cs.c index 634ef45b77da..ece731ab7b3a 100644 --- a/drivers/gpu/drm/i915/gt/intel_engine_cs.c +++ b/drivers/gpu/drm/i915/gt/intel_engine_cs.c @@ -738,6 +738,8 @@ create_kernel_context(struct intel_engine_cs *engine) if (IS_ERR(ce)) return ce; + ce->ring = __intel_context_ring_size(SZ_4K); + err = intel_context_pin(ce); if (err) { intel_context_put(ce); |