]> git.itanic.dy.fi Git - linux-stable/commit
drm/i915/uc: correctly track uc_fw init failure
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Sat, 11 Dec 2021 00:07:54 +0000 (16:07 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 19:24:25 +0000 (21:24 +0200)
commit60d1bb301ea5a4be3e1071d3d0c179140b270ef8
tree30da9de6ec24e042e5e371a7785e0a28cbae3da9
parent86062ca5edf1c2acc4de26452a34ba001e9b6a68
drm/i915/uc: correctly track uc_fw init failure

[ Upstream commit 35d4efec103e1afde968cfc9305f00f9aceb19cc ]

The FAILURE state of uc_fw currently implies that the fw is loadable
(i.e init completed), so we can't use it for init failures and instead
need a dedicated error code.

Note that this currently does not cause any issues because if we fail to
init any of the firmwares we abort the load, but better be accurate
anyway in case things change in the future.

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211211000756.1698923-2-daniele.ceraolospurio@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c
drivers/gpu/drm/i915/gt/uc/intel_huc.c
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h