]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Make intel_uc_sanitize_options() more robust
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 15 Mar 2017 13:37:41 +0000 (13:37 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 16 Mar 2017 08:57:46 +0000 (08:57 +0000)
commitf9a414ff6de0ccc735382a3aa8b74898ede48e22
tree516097d543ca9fa461c49e6e60e063aa050b8920
parent1813c9cde521ea06a5069ae6c4c0e7a57c0689b0
drm/i915: Make intel_uc_sanitize_options() more robust

After negative guc fw selection we could leave guc
submission flag still turned on. Reorder some checks
to cover this case. While here, fix info message and
return early if there is no Guc.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
[tursulin: fixup bad alignment]
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170315133741.150420-1-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/intel_uc.c