drm/i915/guc/slpc: Check GuC status before freq boost
authorVinay Belgaumkar <vinay.belgaumkar@intel.com>
Fri, 12 Nov 2021 07:10:16 +0000 (23:10 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Fri, 12 Nov 2021 18:19:48 +0000 (10:19 -0800)
commit5f1176b419f9468f05dabdc8352bfa9b15427377
tree2cd5f6e3427806ac6d36ba8bef58cee61d7aea30
parent212e6562f33becbab1996261677a0b89c5ab8b54
drm/i915/guc/slpc: Check GuC status before freq boost

It's possible that i915 might get wedged between a boost
and un-boost. Validate the i915-GuC connection before trying
to send a H2G to change the min frequency.

Bug: https://gitlab.freedesktop.org/drm/intel/-/issues/4464

Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211112071016.9640-1-vinay.belgaumkar@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c