• J
    drm/i915: Sanitize engine context sizes · 63ffbcda
    Joonas Lahtinen 提交于
    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: NJoonas 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: NTvrtko Ursulin <tvrtko.ursulin@intel.com>
    Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
    Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
    63ffbcda
intel_engine_cs.c 35.2 KB