]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: init submission structures as part of guc_init
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Thu, 25 Jul 2019 17:46:55 +0000 (10:46 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 26 Jul 2019 08:07:08 +0000 (09:07 +0100)
commitaea60e7c5a5ec629e528b523f8a3ea5c508da8ed
treed7b50df4f0b641a670148ba16dfd0cfc6a8384d3
parentdc339a3951e6c3179e7366e840eb6b2f20cef450
drm/i915/guc: init submission structures as part of guc_init

guc->stage_desc_pool is required as part of the init parameters and
there is no reason we have to init them after HuC. This fixes a NULL
ptr dereference due to guc->stage_desc_pool not being set (no fixes
tag since GuC submission can't be enabled yet).

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190725174655.24382-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc.c
drivers/gpu/drm/i915/gt/uc/intel_uc.c