diff options
author | Joonas Lahtinen <joonas.lahtinen@linux.intel.com> | 2017-04-28 03:53:36 -0400 |
---|---|---|
committer | Joonas Lahtinen <joonas.lahtinen@linux.intel.com> | 2017-04-28 05:11:59 -0400 |
commit | 63ffbcdadcf2b5dde2cd6db6715fc94e77cd43b6 (patch) | |
tree | fdb59ad7c9664bf324f71fbb053535de891e22e1 /drivers/gpu/drm/i915/intel_ringbuffer.h | |
parent | a3662830e1e120e9950072a48d75a61ed921ad4a (diff) |
drm/i915: Sanitize engine context sizes
Pre-calculate engine context size based on engine class and device
generation and store it in the engine instance.
v2:
- Squash and get rid of hw_context_size (Chris)
v3:
- Move after MMIO init for probing on Gen7 and 8 (Chris)
- Retained rounding (Tvrtko)
v4:
- Rebase for deferred legacy context allocation
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Oscar Mateo <oscar.mateo@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: intel-gvt-dev@lists.freedesktop.org
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h index 2506bbe26fa0..02d741ef99ad 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.h +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h | |||
@@ -196,13 +196,14 @@ struct intel_engine_cs { | |||
196 | enum intel_engine_id id; | 196 | enum intel_engine_id id; |
197 | unsigned int uabi_id; | 197 | unsigned int uabi_id; |
198 | unsigned int hw_id; | 198 | unsigned int hw_id; |
199 | unsigned int guc_id; | ||
199 | 200 | ||
200 | u8 class; | 201 | u8 class; |
201 | u8 instance; | 202 | u8 instance; |
202 | 203 | u32 context_size; | |
203 | unsigned int guc_id; | 204 | u32 mmio_base; |
204 | u32 mmio_base; | ||
205 | unsigned int irq_shift; | 205 | unsigned int irq_shift; |
206 | |||
206 | struct intel_ring *buffer; | 207 | struct intel_ring *buffer; |
207 | struct intel_timeline *timeline; | 208 | struct intel_timeline *timeline; |
208 | 209 | ||