From patchwork Tue Apr 30 22:44:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 13650004 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DC811CD21 for ; Tue, 30 Apr 2024 22:46:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714517172; cv=none; b=cQAh8e5c7NXkOxC2QGuvpb+5ZtIqcDxTt3aTICfUl85yf0UkLxPFTjgFn9ZTAN5b2Ur0u56REB7CXvcd+Z8pxvbMn3vzbdFsKF+9F1dAaWuqlDdFZ/WBP3dNODU/5eQ0hrrqxPhD1rKexI23jKZuOPksfZyzU7Ob5Neava2y5Os= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714517172; c=relaxed/simple; bh=kBaLHc8rExGMu8OlF2HhKGVpHNO7JKbu9VSj7iccY0U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=nebS/NWAsgSMkUHP/Yv+AMu9ZbTUQwKd2uJ0zmlFuYoOHpQ+4dheleEedOVqWaaEVwOR7jAoSH8GPFVIIVdlCxfwUSIVma4d+2x9OH+Bmbtnf1jAa4Blhj5b7cePfe4UHziScitvbJttbgY94IWyIhF02RdxqxPlM/SnWK+Eqn8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=MMzevtOQ; arc=none smtp.client-ip=209.85.216.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="MMzevtOQ" Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-2ad8fb779d2so5240846a91.0 for ; Tue, 30 Apr 2024 15:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1714517170; x=1715121970; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=t1vVeT6zlMbtMXbJ1T8vScsknN5yM1eIgiMF3QHSlgA=; b=MMzevtOQ92KRQW6DSksq44OIoU3xqXtRM0fuE5Jw9ayfi0qeXfIuCW0H6r1hLteOl0 yQavtL8EibFcEMMgVJha3GB0GludzaQzIvX39SY/m862+oFLVd4OHKKVZIIpPpl0HteM FkSZVEdBEIrlPcreemm0tNr7ndoGnkEt0lbj0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714517170; x=1715121970; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=t1vVeT6zlMbtMXbJ1T8vScsknN5yM1eIgiMF3QHSlgA=; b=X78AJHzlnNRBOiAIZYMA+hBs9ugiV+ehbnm0tXiLC1qFYpCA8+W4Iyay6xlepqgQpz h3+/b972dPGA/EoNjRXR986HskBThKyiHgg/6wqisSR/FjUp82mppTjei1/4X8Dsugyx em7f9SDAyGtJl0Je6iu9IiguZA+jnuTDpqlu+CgSoC1kOY4e6CpvCxd6QLkPabPKeaBi VJYS2UkGioYtwm6apoFeTc+UWYILdG55282hKvU2zMJrtaZSxkjV4vnTx9BO/it4dyyY UOVVv3Kfnv6l6IDZOyyp3taTl7POySTHNs4rTB/5xIAI5ZLVG6HJ+Av7JuRAOpk6ny+M Pkdw== X-Gm-Message-State: AOJu0YwLD0UL000r8E1G9tx1V4DNe86EOktBOzVEqxQMmV/QZl9/of+e wK72llLGup4fDFEes7s1B8EywNWeNWWW2JooEUxnNdouebC7RYQVjQcbkmB4kQ== X-Google-Smtp-Source: AGHT+IFS+gQQeEu/Jd/oCu3pYdm1Baqjc4+8rJH7iQoQywfEd0025U/KB9AAsSvTFqNfj4MXG/16cw== X-Received: by 2002:a17:90a:4093:b0:2a8:1fdf:b1b0 with SMTP id l19-20020a17090a409300b002a81fdfb1b0mr853915pjg.29.1714517170034; Tue, 30 Apr 2024 15:46:10 -0700 (PDT) Received: from lvnvda5233.lvn.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id s11-20020a170902a50b00b001eb2fb28eabsm7836476plq.227.2024.04.30.15.46.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2024 15:46:09 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, andrew.gospodarek@broadcom.com Subject: [PATCH net-next 0/7] bnxt_en: Updates for net-next Date: Tue, 30 Apr 2024 15:44:31 -0700 Message-Id: <20240430224438.91494-1-michael.chan@broadcom.com> X-Mailer: git-send-email 2.32.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org The first patch is a bug fix for a recent regression in net-next on older NICs. The second patch converts the sw_stats field in the completion ring structure to a pointer. This allows the group of completion rings using the same MSIX to share the same sw_stats structure. Prior to this, the correct completion ring must be used to count packets. The next four patches remove the RTNL lock when calling the RoCE driver for asynchronous stop and start during error recovery and firmware reset. The RTNL ilock is replaced with a private mutex used to synchronize RoCE register, unregister, stop, and start. The last patch adds VF PCI IDs for the 5760X chips. Ajit Khaparde (1): bnxt_en: Add VF PCI ID for 5760X (P7) chips Edwin Peer (1): bnxt_en: share NQ ring sw_stats memory with subrings Kalesh AP (3): bnxt_en: Don't support offline self test when RoCE driver is loaded bnxt_en: Add a mutex to synchronize ULP operations bnxt_en: Optimize recovery path ULP locking in the driver Michael Chan (2): bnxt_en: Fix and simplify bnxt_get_avail_msix() calls bnxt_en: Don't call ULP_STOP/ULP_START during L2 reset drivers/net/ethernet/broadcom/bnxt/bnxt.c | 139 ++++++++++-------- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 5 +- .../net/ethernet/broadcom/bnxt/bnxt_devlink.c | 7 +- .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 15 +- drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 20 ++- drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h | 3 + 6 files changed, 115 insertions(+), 74 deletions(-)