drm/i915/guc: Allow for very slow GuC loading
authorJohn Harrison <John.C.Harrison@Intel.com>
Thu, 16 Mar 2023 22:06:32 +0000 (15:06 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Thu, 23 Mar 2023 22:49:50 +0000 (15:49 -0700)
commit9469d456c6a28494dd9d5cc16e17cf2d4c15c571
treec4d0298ba19f4bca23f1290b20cda552a6e89be7
parent411de2b5ac61a29e1e79db44539f69bb9b35a34d
drm/i915/guc: Allow for very slow GuC loading

A failure to load the GuC is occasionally observed where the GuC log
actually showed that the GuC had loaded just fine. The implication
being that the load just took ever so slightly longer than the 200ms
timeout. Given that the actual time should be tens of milliseconds at
the slowest, this should never happen. So far the issue has generally
been caused by a bad IFWI resulting in low frequencies during boot
(depsite the KMD requesting max frequency). However, the issue seems
to happen more often than one would like.

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 case of the slow down.

v2: Reduce timeout in non-debug builds, add references (Daniele)

References: https://gitlab.freedesktop.org/drm/intel/-/issues/7931
References: https://gitlab.freedesktop.org/drm/intel/-/issues/8060
References: https://gitlab.freedesktop.org/drm/intel/-/issues/8083
References: https://gitlab.freedesktop.org/drm/intel/-/issues/8136
References: https://gitlab.freedesktop.org/drm/intel/-/issues/8137
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Tested-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230316220632.3312218-3-John.C.Harrison@Intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c