Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915/gt: Increase suspend timeout

With GuC submission on DG1, the execution of the requests times out
for the gem_exec_suspend igt test case after executing around 800-900
of 1000 submitted requests.

Given the time we allow elsewhere for fences to signal (in the order of
seconds), increase the timeout before we mark the gt wedged and proceed.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Acked-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210922062527.865433-4-thomas.hellstrom@linux.intel.com

+3 -1
+3 -1
drivers/gpu/drm/i915/gt/intel_gt_pm.c
··· 19 19 #include "intel_rps.h" 20 20 #include "intel_wakeref.h" 21 21 22 + #define I915_GT_SUSPEND_IDLE_TIMEOUT (HZ / 2) 23 + 22 24 static void user_forcewake(struct intel_gt *gt, bool suspend) 23 25 { 24 26 int count = atomic_read(&gt->user_wakeref); ··· 281 279 if (!intel_gt_pm_is_awake(gt)) 282 280 return; 283 281 284 - if (intel_gt_wait_for_idle(gt, I915_GEM_IDLE_TIMEOUT) == -ETIME) { 282 + if (intel_gt_wait_for_idle(gt, I915_GT_SUSPEND_IDLE_TIMEOUT) == -ETIME) { 285 283 /* 286 284 * Forcibly cancel outstanding work and leave 287 285 * the gpu quiet.