From patchwork Sat Jul 13 23:43:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 13732549 Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (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 07BAE1CFB6 for ; Sat, 13 Jul 2024 23:43:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720914241; cv=none; b=u+hAP7w9Ks1YzMMjxfvE6L7qOH4XlOYuS7dPYnZD8hDHvPU5KplY/n1c5C2N3JjU4y0OGT/bXjfFhF5ozwZXbf8+tFIdYWsGFDxcmciQUO6qAB0w7Sna2D26Cim8JvcLhd/iCuKG6YDpnMit3LTVaxbQ0FsmmUoOMc4JzUZl5d0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720914241; c=relaxed/simple; bh=zlgqCJw6WYQJpnlnVghLQRPJ0YoYWBtJavXle984bJk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=fNQhjXD5v0YZjG4mhrUf74utQ7o6R4r/YbOSdFjJw2BL5iWXe2Y1OvejRE48m9vwdOJJ854U9SJX0Td/OYdOhjs6S8TfKvr4Naj9cMB58oKzC2ELtfQ/1eN82iLGVgXSQVObqwbD1luccAg+cpEN9L5ahRRqTbdtq2EodiXktP4= 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=ImJoSCc5; arc=none smtp.client-ip=209.85.222.179 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="ImJoSCc5" Received: by mail-qk1-f179.google.com with SMTP id af79cd13be357-79f1828ed64so214273185a.1 for ; Sat, 13 Jul 2024 16:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1720914239; x=1721519039; darn=vger.kernel.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=iqde//ABvOII1ZaTaub0t86y7Arzqo3nCX2qzLQfG3o=; b=ImJoSCc5/WziQ0w3DBzdXv3Cmh5BS5oUkF3H1akyDHuDMyDsbmxKyaMp6/KiJWZXSY BLSpKYTn6tG2qpLdUR7fodncM9Jf6OGcLrQ/MnavZ6fWF5+MLj5nGjpjim3iFDtT62N7 rI3giNfd3dPurTT0E5xbY6qHv6KboDSGOC5uM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720914239; x=1721519039; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=iqde//ABvOII1ZaTaub0t86y7Arzqo3nCX2qzLQfG3o=; b=dDOQ4wk4t/7/G+UeMIoH4vGyo9qf5h37/FvTeOSnNQBjdeklrbbbLRdlGkrs/J9svX IMRSGaZ0YORPSVU6d/A8VKnJnZQmubnvf+Rk4wNbu83TUYA41Y5PMFMaTxGD5u/vI+8l QL7npPBJDZmq/6/TU1cd+y6Zu0ARjUQ/IbKASZl+4SimFd/pjasP21FzAruWcJuc7N24 3B2fQaRrI2Q+tJyAe+FHlThYtsw6jhOVQU46Q3IELIKk7PiN60ppQumYaaJqnem0daqG CTSRC6IgC4TZ3zci45BO4vE+Kfro2dySKVw9MXup+m24zu7pY/83LPZIWk3An+MWFbX8 QykQ== X-Gm-Message-State: AOJu0YzU7sy9Zmez/t4FbbnYynxAaII+d11+cFPX1fWAYidYfvSDt4PD 8ZC8hq2RfbM7ZavSrHU0SVr4ou11tmSt164JWCp1lVMSaat5YQ0iYKBPizcrHQ== X-Google-Smtp-Source: AGHT+IFchzgSOcvpl/ijP4s1eXlZSFfRGUgDqpipR233Uyms0pLP3XJ+bIfp7rVPky7+N3kzcmZIoQ== X-Received: by 2002:a05:620a:12f1:b0:79e:ff5a:2da4 with SMTP id af79cd13be357-79f19befbb3mr1754460585a.66.1720914238790; Sat, 13 Jul 2024 16:43:58 -0700 (PDT) Received: from lvnvda5233.lvn.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a160bbe6f7sm78124585a.37.2024.07.13.16.43.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Jul 2024 16:43:58 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, pavan.chebbi@broadcom.com, andrew.gospodarek@broadcom.com Subject: [PATCH net-next 0/9] bnxt_en: Update for net-next Date: Sat, 13 Jul 2024 16:43:30 -0700 Message-ID: <20240713234339.70293-1-michael.chan@broadcom.com> X-Mailer: git-send-email 2.43.4 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 This series starts with 2 patches to support firmware crash dump. The driver allocates the required DMA memory ahead of time for firmware to store the crash dump if and when it crashes. Patch 3 adds priority and TPID for the .ndo_set_vf_vlan() callback. Note that this was rejected and reverted last year and it is being re-submitted after recent changes in the guidelines. The remaining patches are MSIX related. Legacy interrupt is no longer supported by firmware so we remove the support in the driver. We then convert to use the newer kernel APIs to allocate and enable MSIX vectors. The last patch adds support for dynamic MSIX. Michael Chan (6): bnxt_en: Deprecate support for legacy INTX mode bnxt_en: Remove BNXT_FLAG_USING_MSIX flag bnxt_en: Remove register mapping to support INTX bnxt_en: Replace deprecated PCI MSIX APIs bnxt_en: Allocate the max bp->irq_tbl size for dynamic msix allocation bnxt_en: Support dynamic MSIX Sreekanth Reddy (1): bnxt_en: Support QOS and TPID settings for the SRIOV VLAN Vikas Gupta (2): bnxt_en: add support for storing crash dump into host memory bnxt_en: add support for retrieving crash dump using ethtool drivers/net/ethernet/broadcom/bnxt/bnxt.c | 329 ++++++++++-------- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 8 +- .../ethernet/broadcom/bnxt/bnxt_coredump.c | 101 +++++- .../ethernet/broadcom/bnxt/bnxt_coredump.h | 8 + .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 13 +- .../net/ethernet/broadcom/bnxt/bnxt_sriov.c | 29 +- 6 files changed, 302 insertions(+), 186 deletions(-)