OSDN Git Service

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)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Tue, 28 Mar 2023 19:15:00 +0000 (12:15 -0700)
commitcdf7911f7dbcb37228409a63bf75630776c45a15
tree5a4b26fbe41ef4e22bbe91e219ebeeecc7f1e3db
parentfdd9b7dcf1ad7115b2d997e047e8e978c474736b
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
drivers/gpu/drm/i915/gt/uc/intel_huc.c
drivers/gpu/drm/i915/gt/uc/intel_huc.h