From: Matthew Brost <matthew.brost@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v2 5/6] drm/xe/guc: Wait before retrying sending H2G
Date: Tue, 27 Jan 2026 11:56:40 -0800 [thread overview]
Message-ID: <aXkYeI5B4QIHXeoc@lstrano-desk.jf.intel.com> (raw)
In-Reply-To: <20260127193727.601-6-michal.wajdeczko@intel.com>
On Tue, Jan 27, 2026 at 08:37:25PM +0100, Michal Wajdeczko wrote:
> 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>
> ---
> v2: use xe_sleep_exponential_ms helper (Michal)
> don't wait full 1s (Matt)
> ---
> drivers/gpu/drm/xe/xe_guc.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
> index 2a3b057fc828..231844bce1e0 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"
> @@ -1397,6 +1398,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;
> @@ -1479,6 +1481,8 @@ int xe_guc_mmio_send_recv(struct xe_guc *guc, const u32 *request,
>
> 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;
> }
>
> --
> 2.47.1
>
next prev parent reply other threads:[~2026-01-27 19:56 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-27 19:37 [PATCH v2 0/6] drm/xe/guc: Make MMIO communication more robust Michal Wajdeczko
2026-01-27 19:37 ` [PATCH v2 1/6] drm/xe: Promote relaxed_ms_sleep Michal Wajdeczko
2026-01-27 19:46 ` Matthew Brost
2026-01-27 19:37 ` [PATCH v2 2/6] drm/xe: Move exponential sleep logic to helper Michal Wajdeczko
2026-01-27 19:49 ` Matthew Brost
2026-01-27 19:37 ` [PATCH v2 3/6] drm/xe/guc: Limit sleep while waiting for H2G credits Michal Wajdeczko
2026-01-27 19:51 ` Matthew Brost
2026-01-27 19:37 ` [PATCH v2 4/6] drm/xe/guc: Drop redundant register read Michal Wajdeczko
2026-01-27 19:37 ` [PATCH v2 5/6] drm/xe/guc: Wait before retrying sending H2G Michal Wajdeczko
2026-01-27 19:56 ` Matthew Brost [this message]
2026-01-27 19:37 ` [PATCH v2 6/6] drm/xe/guc: Allow second H2G retry on FLR Michal Wajdeczko
2026-01-27 19:57 ` Matthew Brost
2026-01-27 19:47 ` ✗ CI.checkpatch: warning for drm/xe/guc: Make MMIO communication more robust (rev2) Patchwork
2026-01-27 19:48 ` ✓ CI.KUnit: success " Patchwork
2026-01-27 20:21 ` ✓ Xe.CI.BAT: " Patchwork
2026-01-28 2:54 ` ✗ Xe.CI.Full: failure " Patchwork
2026-01-29 18:57 ` Michal Wajdeczko
2026-02-02 21:34 ` Michal Wajdeczko
2026-01-29 20:23 ` ✗ CI.checkpatch: warning for drm/xe/guc: Make MMIO communication more robust (rev3) Patchwork
2026-01-29 20:25 ` ✓ CI.KUnit: success " Patchwork
2026-01-29 21:01 ` ✓ Xe.CI.BAT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aXkYeI5B4QIHXeoc@lstrano-desk.jf.intel.com \
--to=matthew.brost@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=michal.wajdeczko@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox