drm/i915/huc: Allow for very slow HuC loading
authorJohn Harrison <John.C.Harrison@Intel.com>
Tue, 2 Jan 2024 22:22:02 +0000 (14:22 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Sat, 6 Jan 2024 00:18:21 +0000 (16:18 -0800)
commita797099562267ebb281acd59750f1a8dbba36eef
treebf3ef82c6c7daea1afc9d2cc216c2d10149ef65c
parentc5b32a41946139b9f4f7a087fda2355a90f671cb
drm/i915/huc: Allow for very slow HuC loading

A failure to load the HuC is occasionally observed where the cause is
believed to be a low GT frequency leading to very long load times.

So a) increase the timeout so that the user still gets a working
system even in the case of slow load. And b) report the frequency
during the load to see if that is the cause of the slow down.

Also update the similar code on the GuC load to not use uncore->gt
when there is a local gt available. The two should match, but no need
for unnecessary de-referencing.

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240102222202.310495-1-John.C.Harrison@Intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c
drivers/gpu/drm/i915/gt/uc/intel_huc.c