From nobody Sun Jul 07 11:52:23 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WH5GJ01tsz5PFVC; Sun, 07 Jul 2024 11:52:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WH5GH6cxbz4YpK; Sun, 7 Jul 2024 11:52:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720353143; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hVp5AoVY9Z1tKvkc2o5elvnlvah8e+JmqOfXajSBvxY=; b=aPoKS5LqykprzM54BVEaHZVDgWQbgeAgKpp6iOz0x64x+MLGfZOKHvCg0hMD4FsLL57sMa jsBzDZ9s8Z04hqosczwvarlBzhN6xySvAumjpTjNSPmricmoPrvhwDhg4LJ9E4aBVmzpNI zCs/Q0Ixa0+hpWCGKJgtwhIIB8vi4nvpOkxLSOyTYzfJ4zj6KmkI39dGQf4JKnOrhNbsHU tS3la+EN0Yn0G645gRGFAFUfez/pbBB4asg7JimlW3BXdGg9pDXNTwNtBKIqRirleOjZNb jDomS1I/KZrSmLh4XqqNElV7XopCmbP/AnBAKNtS7jDTCD+G/31uEVDfpwfW9Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720353143; a=rsa-sha256; cv=none; b=gOrjWb/ET32XBLXcAFB6h7N5WLqk6QLw2xBHJmODkyj4WkhZEZJ07ej8+n//J7d4RMyiLc FWEUtaLZzfP/J5IRJKkDMiv/Xh8WliYPohF4ic5ZqmkfKzo962kph2BeADPfy4Ez57GNy7 aQu7fHg/CTq1I8Cnz3puYeMeiTc14FlXlrJ/uFUEBu5O/2QGzdY/xbWBn0esHO7itOPS5Y qLd3MUW9OS6UNYn8QkEYTbV0gTJa65nvH0mkWhH0IQecD94XQOlXMLuRwHvEygZwhqqp3a WK3n2R55xfved+KNNFRz1kVVMvNASDqlVFv3WvzMavmYEofgV/6gMtGWKmwlyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720353143; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hVp5AoVY9Z1tKvkc2o5elvnlvah8e+JmqOfXajSBvxY=; b=DVWdYeXvsG/NJA+fu1MfJJU6JLheH05i1QNlaLg+1zLEumkWroZKAV0XhAhhlxLBxxam07 ULMb09Zn/40BIFKCfahy/cy7c0GjZXk/ELFP+lgeLR+YBdDdZq+D2s2jMqiCKbtpa9USFN NUmTZPV1AqO6ymYHkPHE9cO2lT10diiifx5lhtNjfGp+wsajOjehIyEW3ufFqyuyuuwO3Q W5yPJbPA7UTj5Yk79s3/H66rNe9mKKQPtDtEcbRzGB6m+RaDco+st+g7mDlTfg5kvuZwUB Dp1FnoIswNLKb4AkkvE0wVPLijiJAwiehMjRP5iEdS/+giMsR2f2NRVTBbojFw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WH5GH6Djvz1Ln0; Sun, 7 Jul 2024 11:52:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 467BqNps072147; Sun, 7 Jul 2024 11:52:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 467BqNZU072144; Sun, 7 Jul 2024 11:52:23 GMT (envelope-from git) Date: Sun, 7 Jul 2024 11:52:23 GMT Message-Id: <202407071152.467BqNZU072144@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 0bff71667441 - main - /sys/dev/bnxt: Enable NPAR support on BCM57504 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0bff716674418ec9f8c48131fb34cafc0af671e8 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=0bff716674418ec9f8c48131fb34cafc0af671e8 commit 0bff716674418ec9f8c48131fb34cafc0af671e8 Author: Vinícius Ferrão AuthorDate: 2024-06-29 05:16:43 +0000 Commit: Warner Losh CommitDate: 2024-07-07 11:49:34 +0000 /sys/dev/bnxt: Enable NPAR support on BCM57504 This commit enables NPAR support for Broadcom 57504 10/25GbE NICs Signed-off-by: Vinícius Ferrão Reviewed by: imp,ssaxena,nightquick@proton.me Pull Request: https://github.com/freebsd/freebsd-src/pull/1306 --- sys/dev/bnxt/bnxt_en/bnxt.h | 1 + sys/dev/bnxt/bnxt_en/if_bnxt.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/sys/dev/bnxt/bnxt_en/bnxt.h b/sys/dev/bnxt/bnxt_en/bnxt.h index cf4f99077b58..c5fadeafa181 100644 --- a/sys/dev/bnxt/bnxt_en/bnxt.h +++ b/sys/dev/bnxt/bnxt_en/bnxt.h @@ -86,6 +86,7 @@ #define BCM58700 0x16cd #define BCM57508 0x1750 #define BCM57504 0x1751 +#define BCM57504_NPAR 0x1801 #define BCM57502 0x1752 #define NETXTREME_C_VF1 0x16cb #define NETXTREME_C_VF2 0x16e1 diff --git a/sys/dev/bnxt/bnxt_en/if_bnxt.c b/sys/dev/bnxt/bnxt_en/if_bnxt.c index 6c0ec892f2c6..00d37f5e0151 100644 --- a/sys/dev/bnxt/bnxt_en/if_bnxt.c +++ b/sys/dev/bnxt/bnxt_en/if_bnxt.c @@ -143,6 +143,8 @@ static const pci_vendor_info_t bnxt_vendor_info_array[] = "Broadcom BCM57508 NetXtreme-E 10Gb/25Gb/50Gb/100Gb/200Gb Ethernet"), PVID(BROADCOM_VENDOR_ID, BCM57504, "Broadcom BCM57504 NetXtreme-E 10Gb/25Gb/50Gb/100Gb/200Gb Ethernet"), + PVID(BROADCOM_VENDOR_ID, BCM57504_NPAR, + "Broadcom BCM57504 NetXtreme-E Ethernet Partition"), PVID(BROADCOM_VENDOR_ID, BCM57502, "Broadcom BCM57502 NetXtreme-E 10Gb/25Gb/50Gb/100Gb/200Gb Ethernet"), PVID(BROADCOM_VENDOR_ID, NETXTREME_C_VF1, @@ -2087,6 +2089,7 @@ bnxt_attach_pre(if_ctx_t ctx) case BCM57414_NPAR2: case BCM57416_NPAR1: case BCM57416_NPAR2: + case BCM57504_NPAR: softc->flags |= BNXT_FLAG_NPAR; break; case NETXTREME_C_VF1: @@ -2170,6 +2173,7 @@ bnxt_attach_pre(if_ctx_t ctx) if ((softc->ver_info->chip_num == BCM57508) || (softc->ver_info->chip_num == BCM57504) || + (softc->ver_info->chip_num == BCM57504_NPAR) || (softc->ver_info->chip_num == BCM57502)) softc->flags |= BNXT_FLAG_CHIP_P5;