[SRU][J:linux-azure][PATCH 1/1] net: mana: Reduce waiting time if HWC not responding

Yifei Liu yifei.liu at canonical.com
Wed Nov 18 01:22:41 UTC 2026


Hi John,
please see inline.

On Thu, 5 Nov 2026 at 23:28, John Cabaj via kernel-team
<kernel-team at lists.ubuntu.com> wrote:
>
> From: Haiyang Zhang <haiyangz at microsoft.com>
>
> BugLink: https://bugs.launchpad.net/bugs/2173137
>
> If HW Channel (HWC) is not responding, reduce the waiting time, so further
> steps will fail quickly.
> This will prevent getting stuck for a long time (30 minutes or more), for
> example, during unloading while HWC is not responding.
>
> Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com>
> Link: https://patch.msgid.link/1757537841-5063-1-git-send-email-haiyangz@linux.microsoft.com
> Signed-off-by: Jakub Kicinski <kuba at kernel.org>
> (backported from commit c4deabbc1abe452ea230b86d53ed3711e5a8a062)
> [john-cabaj: hwc->hwc_timeout != 0 check was introduced as part
> of fbe346ce9d62: "net: mana: Handle Reset Request from MANA NIC",
It is more common to use this format for a commit: commit sha1 ("subject").
> which carries to large a delta to incorporate into 5.15 at this
maybe it should be: which carries a too large delta to ...?
> point. However, this check merely gates an error logging call,
> so there's some confidence that we can leave this out.]
> Signed-off-by: John Cabaj <john.cabaj at canonical.com>
> ---
>  drivers/net/ethernet/microsoft/mana/hw_channel.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/microsoft/mana/hw_channel.c b/drivers/net/ethernet/microsoft/mana/hw_channel.c
> index 9ed0f63bad9e..2c4a84efc226 100644
> --- a/drivers/net/ethernet/microsoft/mana/hw_channel.c
> +++ b/drivers/net/ethernet/microsoft/mana/hw_channel.c
> @@ -868,7 +868,12 @@ int mana_hwc_send_request(struct hw_channel_context *hwc, u32 req_len,
>
>         if (!wait_for_completion_timeout(&ctx->comp_event,
>                                          (msecs_to_jiffies(hwc->hwc_timeout)))) {
> -               dev_err(hwc->dev, "HWC: Request timed out!\n");
> +               dev_err(hwc->dev, "HWC: Request timed out: %u ms\n",
> +                               hwc->hwc_timeout);
> +
> +               /* Reduce further waiting if HWC no response */
> +               if (hwc->hwc_timeout > 1)
> +                       hwc->hwc_timeout = 1;
>                 err = -ETIMEDOUT;
>                 goto out;
>         }
> --
> 2.43.0
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team



More information about the kernel-team mailing list