diff options
| author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2026-01-27 22:37:25 +0300 |
|---|---|---|
| committer | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2026-02-03 00:35:45 +0300 |
| commit | e116fd5c60c4950171fbe7773a34a5841a021b9f (patch) | |
| tree | f0fdfef83e93e8bb0766f2048010034c86e46bcb | |
| parent | 09b45fd9d330e52a5b31d1abc0db4a22b16d340a (diff) | |
| download | linux-e116fd5c60c4950171fbe7773a34a5841a021b9f.tar.xz | |
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
| -rw-r--r-- | drivers/gpu/drm/xe/xe_guc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c index 2ae5a78b52ed..6cc778e7cb57 100644 --- a/drivers/gpu/drm/xe/xe_guc.c +++ b/drivers/gpu/drm/xe/xe_guc.c @@ -40,6 +40,7 @@ #include "xe_memirq.h" #include "xe_mmio.h" #include "xe_platform_types.h" +#include "xe_sleep.h" #include "xe_sriov.h" #include "xe_sriov_pf_migration.h" #include "xe_uc.h" @@ -1408,6 +1409,7 @@ int xe_guc_mmio_send_recv(struct xe_guc *guc, const u32 *request, struct xe_reg reply_reg = xe_gt_is_media_type(gt) ? MED_VF_SW_FLAG(0) : VF_SW_FLAG(0); const u32 LAST_INDEX = VF_SW_FLAG_COUNT - 1; + unsigned int sleep_period_ms = 1; bool lost = false; u32 header; int ret; @@ -1490,6 +1492,8 @@ timeout: xe_gt_dbg(gt, "GuC mmio request %#x: retrying, reason %#x\n", request[0], reason); + + xe_sleep_exponential_ms(&sleep_period_ms, 256); goto retry; } |
