From patchwork Fri Sep 6 17:59:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Peixoto X-Patchwork-Id: 1982005 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 4X0kX15LRqz1y1H for ; Sat, 7 Sep 2024 03:59:45 +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 1smdF8-0008Tw-SR; Fri, 06 Sep 2024 17:59:34 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1smdF7-0008To-Ew for kernel-team@lists.ubuntu.com; Fri, 06 Sep 2024 17:59:33 +0000 Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.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-0.canonical.com (Postfix) with ESMTPS id 243103F5AB for ; Fri, 6 Sep 2024 17:59:33 +0000 (UTC) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-2052a68430fso33077185ad.2 for ; Fri, 06 Sep 2024 10:59:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725645571; x=1726250371; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CaIcmLBWEaihashVBy4boZUSD2AJFwM5dvwOtrWTMEU=; b=ICk7H5buG1h8c+8/u+qCLy56lauKlG2cm8clBwu/CdD5QkeZLumV7+ZWUfWxQMl4T0 hFrEn9l50nXfv5cGiiZj/9vGCXTFWLnA3rAa+Wwwer+qkRlGruwXP3piambWacMOZfb8 rEzN8wS2TCiK9afYNJ2W7eCBar2pEh/yy1t+yk7rKsM1xV2ZycaDR5uRSim3g9+EOUAu URt61YFyiEhPzqT5Ois0sC9MkNd9TAONvSAkcpPDmWaz/ZizVG8mobnNU4N+mpQlq+ik 29ND/OCvoYaDm51wwDZg28gVc9cv4ZoFsWoJVpjKfSMofAgiAORvivyYJP3zvZ7rPrGo m0NA== X-Gm-Message-State: AOJu0YwNUjorCSUHH1/rPx4feosI7MlEpkjLER7N9oCBFhcz+1mQCIeo KE0K1eMJvsuBWsnLkbmzl7uIGoSwA0tNv04KJ7Z1Apl+2OXa4ToZ0yi3F7qvyCiQjroOh1oBRxz naB+YID1P2NGodOStZjHzz9m86o5XT1mvkbitBOT/a1hsi4J2UW9zHJR9ucmwiMdRhzLAgcOjeC Exg92AkelRBw== X-Received: by 2002:a17:903:28f:b0:205:3730:c591 with SMTP id d9443c01a7336-2053730c7abmr300195965ad.22.1725645570734; Fri, 06 Sep 2024 10:59:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoYOTPWzwfBg31rPHWxnQGAuwc1Slc77jx0eciderrutX0fP8NOZ2+dZbujlUGVGrUXJ6FoQ== X-Received: by 2002:a17:903:28f:b0:205:3730:c591 with SMTP id d9443c01a7336-2053730c7abmr300195675ad.22.1725645570206; Fri, 06 Sep 2024 10:59:30 -0700 (PDT) Received: from canonical.com (201-95-42-158.dsl.telesp.net.br. [201.95.42.158]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dadc0ca704sm1895349a91.53.2024.09.06.10.59.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2024 10:59:29 -0700 (PDT) From: Vinicius Peixoto To: kernel-team@lists.ubuntu.com Subject: [SRU][o/n/j:linux-azure][PATCH v2 0/1] net: mana: Fix RX buf alloc_size alignment and atomic op panic Date: Fri, 6 Sep 2024 14:59:16 -0300 Message-ID: <20240906175919.773606-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/2079854 [Impact] Microsoft has requested us to backport the following bugfix: 32316f676b4e ("net: mana: Fix RX buf alloc_size alignment and atomic op panic") https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=32316f676b4e [Fix] Clean-cherry pick to the trees (oracular/noble/jammy) containing the following break commit: 80f6215b450e ("net: mana: Add support for jumbo frame") [Test plan] Compile tested only. [Where problems could occur] This is a minor adjustment to the allocated size for MANA RX buffers, fixing the alignment of the resulting SKB in order to improve performance and avoid alignment faults during atomic operations on ARM64. As such, the regression risk seems to be low (especially considering the allocated size for the buffer will end up being bigger, not smaller), but any issues here would impact the reception of network packets in MANA. [Other info] SF #00394982 v1 -> v2: - Fix cover letter subject Haiyang Zhang (1): net: mana: Fix RX buf alloc_size alignment and atomic op panic drivers/net/ethernet/microsoft/mana/mana_en.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) Acked-by: John Cabaj