drm/i915/guc/slpc: Use non-blocking H2G for waitboost
authorVinay Belgaumkar <vinay.belgaumkar@intel.com>
Thu, 23 Jun 2022 00:32:25 +0000 (17:32 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Mon, 27 Jun 2022 22:08:58 +0000 (15:08 -0700)
commit58eaa6b3fb636072a4f19e6b6c76bbf564e95b95
treeb453d8f7a8b4d19ebb7c391c61b85a056f45e937
parent0667429ce68e0b08f9f1fec8fd0b1f57228f605e
drm/i915/guc/slpc: Use non-blocking H2G for waitboost

SLPC min/max frequency updates require H2G calls. We are seeing
timeouts when GuC channel is backed up and it is unable to respond
in a timely fashion causing warnings and affecting CI.

This is seen when waitboosting happens during a stress test.
this patch updates the waitboost path to use a non-blocking
H2G call instead, which returns as soon as the message is
successfully transmitted.

v2: Use drm_notice to report any errors that might occur while
sending the waitboost H2G request (Tvrtko)
v3: Add drm_notice inside force_min_freq (Ashutosh)

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/20220623003225.23301-1-vinay.belgaumkar@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c