From patchwork Wed May 1 00:30:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 13650143 Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (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 E3545A20 for ; Wed, 1 May 2024 00:31:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714523500; cv=none; b=LhABZhXcSVPZbsZ5gc6YXXqdXr0P266l0TBIzDVOOLZ35BXuLdD2fY0+DGRMa713P1IKKTclzO9rEBm2IdHsPZgmbX+DD9q7gw3pcA9E6wlm+QD2IGEOuFNaXXnzjbQNzmTBsJtewsZqzaWTVq+PugKjXqwUBYMGSU+BjnLlle0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714523500; c=relaxed/simple; bh=rcsLSZ+eBDj4vBfweoknjgV4SBCGj+MWVXc/mGb1iPs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=HlezHJK4CuJ43C96VZjlSqMhEWfrrfrmqTjPmlDFXtdoVFFLZSD/6VAGUs2Bw99ado6NkRpXo0xYXIF9ALOELs1yhve54drxbvp7thsj7h4hs7f39th61Mo/wIc8XVMoWXov+OEjDgAec5ADznfSyHomfrzKWYvK6tIZGB5Xy/U= 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=ZGgGHXyM; arc=none smtp.client-ip=209.85.128.181 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="ZGgGHXyM" Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-61df496df01so8294907b3.3 for ; Tue, 30 Apr 2024 17:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1714523498; x=1715128298; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=e9DTY0R+bk660Wo0XwbxvEI7Q8MRa5f+m1M874f5FcM=; b=ZGgGHXyMPWN09v977h0TgwddEP4Dlc0Rt851UI5J87S9pdHy94p9neKsWd17QoeRYg XhVGbGDEGCyyGsEnJU+BgNQDbk9PJV152+0PqFHa4bfabPAh5qsOAIeA8KfnxTiuggTA XWnx4zcWVFReIe0cwDvQ7STPhAP6lkNTdKKwk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714523498; x=1715128298; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=e9DTY0R+bk660Wo0XwbxvEI7Q8MRa5f+m1M874f5FcM=; b=gxqE4nYlbHcS+FSqn0d80KeM9g3pIGg9dmoMKhInAEemuiutasLx/ksA85JmdwcxJQ IVG08PrDzN4sEJUQhDiz1e50kcHuOoTdNUzdRQHVY7ocwwPimT269FsHvreYDf2Oi1dA t8N0RZRixu8WiKVJWFux/NICg5JklI+td/u2+7/g3Z/NDxhhlYnpDHxGWFvFRD4ckXEn 26YRw/J7iYFYbLf/WHWYY94AYdwd3bSBUU3I30Udah1uIS0l0v2vmLQcML64uczDXdgr jHjCSfN8zW/hD6iC6ZK06uj9V4Ak1qthHeuZk2EXp1ZgVrIs9pqB4AL8oeJ5TVNF9bv7 2EyA== X-Gm-Message-State: AOJu0YxjHSquBKqyrq9i5CkdcC4Khv0uKN3a6CroGmB3SiKeHfLY9dJJ yxINjMW/hP1fDZNmqH5GUhDMiyQxCnFVgpBKR5cnNza8AxoaIoIdaDiMYElgoA== X-Google-Smtp-Source: AGHT+IELzIzJ46Qe7c1tx60gDSJm9771URgITnMa8QjHy0Yo8aYTyhXr6ucSdEQ9DsCsk8wnWzn+xA== X-Received: by 2002:a81:ac51:0:b0:61b:3364:32db with SMTP id z17-20020a81ac51000000b0061b336432dbmr1078676ywj.36.1714523497465; Tue, 30 Apr 2024 17:31:37 -0700 (PDT) Received: from lvnvda5233.lvn.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id f15-20020ac8470f000000b0043a7cb47069sm4337935qtp.9.2024.04.30.17.31.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2024 17:31:37 -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 v2 0/6] bnxt_en: Updates for net-next Date: Tue, 30 Apr 2024 17:30:50 -0700 Message-Id: <20240501003056.100607-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 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. v2: Dropped patch #1 from v1. Will work with David to get that patch in separately. 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 (1): bnxt_en: Don't call ULP_STOP/ULP_START during L2 reset drivers/net/ethernet/broadcom/bnxt/bnxt.c | 119 ++++++++++-------- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 4 +- .../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, 107 insertions(+), 61 deletions(-)