drm/i915/huc: Cancel HuC delayed load timer on reset.
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Mon, 13 Mar 2023 20:55:56 +0000 (13:55 -0700)
committerJani Nikula <jani.nikula@intel.com>
Mon, 3 Apr 2023 08:36:45 +0000 (11:36 +0300)
commitc74237496fbc799257b091179dd01a3200f7314d
tree535eff2b62a8ed8ccdfd0c3448d8faf932a5caeb
parentf1b17f429f066f920a6a1056332e66f8a5b92256
drm/i915/huc: Cancel HuC delayed load timer on reset.

In the rare case where we do a full GT reset after starting the HuC
load and before it completes (which basically boils down to i915 hanging
during init), we need to cancel the delayed load fence, as it will be
re-initialized in the post-reset recovery.

Fixes: 27536e03271d ("drm/i915/huc: track delayed HuC load with a fence")
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230313205556.1174503-1-daniele.ceraolospurio@intel.com
(cherry picked from commit cdf7911f7dbcb37228409a63bf75630776c45a15)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/gt/uc/intel_huc.c
drivers/gpu/drm/i915/gt/uc/intel_huc.h