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

Configure Feed

Select the types of activity you want to include in your feed.

drm/xe/guc: Wait before retrying sending H2G

We shall resend H2G message after receiving NO_RESPONSE_RETRY reply,
but since GuC dropped that H2G due to some interim state, we should
give it a little time to stabilize. Wait before sending the same H2G
again, start with 1ms delay, then increase exponentially to 256ms.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260127193727.601-6-michal.wajdeczko@intel.com

+4
+4
drivers/gpu/drm/xe/xe_guc.c
··· 40 40 #include "xe_memirq.h" 41 41 #include "xe_mmio.h" 42 42 #include "xe_platform_types.h" 43 + #include "xe_sleep.h" 43 44 #include "xe_sriov.h" 44 45 #include "xe_sriov_pf_migration.h" 45 46 #include "xe_uc.h" ··· 1409 1408 struct xe_reg reply_reg = xe_gt_is_media_type(gt) ? 1410 1409 MED_VF_SW_FLAG(0) : VF_SW_FLAG(0); 1411 1410 const u32 LAST_INDEX = VF_SW_FLAG_COUNT - 1; 1411 + unsigned int sleep_period_ms = 1; 1412 1412 bool lost = false; 1413 1413 u32 header; 1414 1414 int ret; ··· 1492 1490 1493 1491 xe_gt_dbg(gt, "GuC mmio request %#x: retrying, reason %#x\n", 1494 1492 request[0], reason); 1493 + 1494 + xe_sleep_exponential_ms(&sleep_period_ms, 256); 1495 1495 goto retry; 1496 1496 } 1497 1497