From patchwork Thu Aug 29 18:58:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Peixoto X-Patchwork-Id: 1978592 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WvrCz4Kdfz1yXd for ; Fri, 30 Aug 2024 04:58:54 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sjkLv-0004Gu-VP; Thu, 29 Aug 2024 18:58:39 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sjkLv-0004Gm-74 for kernel-team@lists.ubuntu.com; Thu, 29 Aug 2024 18:58:39 +0000 Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 1428D3F327 for ; Thu, 29 Aug 2024 18:58:39 +0000 (UTC) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-71420354182so1147686b3a.1 for ; Thu, 29 Aug 2024 11:58:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724957917; x=1725562717; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vkasaSu4H6rc/uh17IOPgYOufyBDlRjNghrtJnOY07Q=; b=jd9/G/YKkZ/V0Fxmjo+4c2PTOBg/X21n5lGpFMQoBZZ7ZZ8AukUBcrobc9vP2A0DTd QftbrszcWUgee8mayB5Btw+wZMm1UZLqE394XImmZm0rQYtlAu2QpzW2jsdQSn+v9czX cjBoPsJwZ164x93LdbDaZj31/6O3yvw+CdAu+OoMbG2D+TaHY16H9TyPE5QIYmKQf/f/ w+N5Etvpuf7FglPWZDSyCKSpDERamGOXyZZ3tK4YBdGikAQNMRZeO/4E3nQTuiVNPRh8 blF7P3tnkH6TJ8wdrgFxENuZi7Lrk5mAoJSGOZP65pTFAhllvFUkFDG9T/VWhYCVCmsg apvA== X-Gm-Message-State: AOJu0YwuPa4HzvUbXmo+RKV5hEMOelD/cm7z7Zv/qtzRbhgem/S21ZkG /sJnRbfcQXE6ZRRgs56XIOTAajUOd+5CBwiNGuE/MixzHIBY5TGOBYFRmul8fYYsnB97W8JL++m CD+UwZ/FCraByUuIhcgGnD9/r1rkzxtjTN5P4Q51aEjiXCQLhDvAX0A48RuXw4I/LYpFpDzjmDo HizLkVD+Xv6Jp6 X-Received: by 2002:a05:6a00:198d:b0:714:21f0:c799 with SMTP id d2e1a72fcca58-715dfb26b96mr4435015b3a.12.1724957917206; Thu, 29 Aug 2024 11:58:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZpwIkeE0UO4BNoM247DgXQOT6d6Ev63f7VvvCeuroQoWYSB9PYGlNuadAskiMVShbITWxCg== X-Received: by 2002:a05:6a00:198d:b0:714:21f0:c799 with SMTP id d2e1a72fcca58-715dfb26b96mr4434991b3a.12.1724957916788; Thu, 29 Aug 2024 11:58:36 -0700 (PDT) Received: from canonical.com ([2801:8a:c811:1:9564:9fa2:7074:64f9]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7d22e774263sm1565988a12.26.2024.08.29.11.58.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2024 11:58:36 -0700 (PDT) From: Vinicius Peixoto To: kernel-team@lists.ubuntu.com Subject: [SRU][o/n/j:linux-azure][PATCH 0/1] Fix race of mana_hwc_post_rx_wqe and new hwc response Date: Thu, 29 Aug 2024 15:58:27 -0300 Message-ID: <20240829185830.76913-1-vinicius.peixoto@canonical.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2078001 [Impact] Microsoft has requested us to backport the following bugfix, currently in the netdev tree: 8af174ea863c net: mana: Fix race of mana_hwc_post_rx_wqe and new hwc response https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=8af174ea863c72f25ce31cee3baad8a301c0cf0f [Fix] Clean cherry-pick from the netdev tree to the {oracular,noble,jammy}:linux-azure trees. [Test plan] Build and boot tested. [Where problems could occur] This seems to have a low risk of regression, since it's just making sure to finish posting an RX workqueue event before waiting for completion in order to avoid a race condition with the hardware. However, any regressions here would likely impact users as MANA-related errors/timeouts. [Other info] SF #00393766 Haiyang Zhang (1): net: mana: Fix race of mana_hwc_post_rx_wqe and new hwc response .../net/ethernet/microsoft/mana/hw_channel.c | 62 ++++++++++--------- 1 file changed, 34 insertions(+), 28 deletions(-) Acked-by: Aaron Jauregui Acked-by: Thibault Ferrante