drm/i915/uc: Consider enable_guc modparam during fw selection
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 31 Jul 2019 22:33:19 +0000 (22:33 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 1 Aug 2019 20:13:27 +0000 (21:13 +0100)
commitdb81bc6eb9c01598782599ecf6797adfb167f801
tree2ea756ed361a5d92e1b835db434816c773bf0dc1
parent57a68c3507161bed25c97df8941fb45166acec99
drm/i915/uc: Consider enable_guc modparam during fw selection

We can use value of enable_guc modparam during firmware path selection
and start using firmware status to see if GuC/HuC is being used.
This is first step to make enable_guc modparam read-only.

v2: rebased, don't care about <0 (Chris)
v3: oops

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