]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/uc: Cleanup fw fetch only if it was successful
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Sat, 17 Aug 2019 13:11:42 +0000 (13:11 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 17 Aug 2019 14:04:35 +0000 (15:04 +0100)
commitad4eff5fb361c645ff6e5e54256bdff3018a9579
tree77261fff685fba239b929baa99fd9edb796a8c4c
parent5e363c6ddde93d2a8e32b46d77ed805454e82934
drm/i915/uc: Cleanup fw fetch only if it was successful

We can rely on firmware status AVAILABLE to determine if any
firmware cleanup is required. Also don't unconditionally reset
fw status to SELECTED as we will loose MISSING/ERROR codes.

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/20190817131144.26884-2-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c