From patchwork Tue Apr 30 22:44:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 13650011 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 114961E86E for ; Tue, 30 Apr 2024 22:46:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714517184; cv=none; b=TfnRyi+1FMEFuYV5zaYFLl29W+y3JUvJ9aAr/4gbLCjR0RVdXF+FbvxY884wpCLixcGfH2OV8W2rRMSfgRV+5G11fqfRGiWafXhQsj8DacT2dfP9tQFiiZ4QRnblvjIC/KslFLkrZhwZ9EVr98xR8T864LtgcTGdlhS+xFL3EQE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714517184; c=relaxed/simple; bh=REEi6FCvPYgY8s901rpqmat1FA1f7KjS3zghBxLTepY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=ivhutjycHZK5WTL0yy/3IlQKv1wuj4ZkbQ/fE/hzlLJ3i+QJKicxZy6NcEfoW3fjzXd0jFer4VDTI3rn1DH6cB8eyfCGJuRVa51xjG6Dj+OHXGAYgy++fw2/1HJMj2Fe6RFR5nq2Lxo+bzUm8Da5u3VPf9TqX6mboEHLf2x+GdI= 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=cpw8qlZZ; arc=none smtp.client-ip=209.85.214.177 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="cpw8qlZZ" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1e4f341330fso58285275ad.0 for ; Tue, 30 Apr 2024 15:46:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1714517182; x=1715121982; darn=vger.kernel.org; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=qKl26w8FEt7WfcZ7WONzzntRM1njhxf1a8zSMePoihk=; b=cpw8qlZZD5AeUPof4MQuRVrdHlc/zRvjoMruHnhQbzcNtDlcOlAN+2O7n1l+jW8ifl 1KNFBx0Qm48RAI9+O4MruoJbA258tmpMVeM5KvhwgThvO1+HCuY2wX9dgzlFkTFr226f V3SbZ59FnD4lQ8DmUtcEw27ceG0Q9v2YAwh9w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714517182; x=1715121982; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qKl26w8FEt7WfcZ7WONzzntRM1njhxf1a8zSMePoihk=; b=hdX2JpepLP+xcgDsgNC6aDNrnAg1beibcDsSQ2eHrFVvM1pWrMagTYbJQPl+4f/ahI PA4YgNHU0mdK6IOrcmysXw50CnDLOETHyqSk5c88lePcBk5926p9VLMgcBoyuTNnGUu8 0f3HMFujCis7uyVKAsCay16cpl5jKy4CDR2rqhMqM4QyhD9pJ2h2Xs6nvQm/YBmA9Ale O/pLHLk1rosjeyExgcYgIWvgfOb649IBxpWwhY8R807KhWYabjthaN4zFptkqFfHYB/K qhO24oY61TCFEE5g+LOfwgveDQ0mMsz39Blw35QFxhpLMAL7YuZ4ymfGcPNS+xqV6oYz IYEg== X-Gm-Message-State: AOJu0YyEDdPMGaD7BbWb49UZoB/pI46F2jidtm9nwNtR3ztcCSFOa1EU MtDZgG9V+LRcRloHt8y74MJU99R4p9YbOWIVs3HT5F79FJXiTqKl0dOkQyb9ww== X-Google-Smtp-Source: AGHT+IEwU0Wbwv0Eh004rBBBcgcwF5yh9ge8PYPAx0YSwY4m1WhnMGMCwMd+fbiOCv8EAChG4/lBGA== X-Received: by 2002:a17:902:d38d:b0:1e2:9ddc:f72d with SMTP id e13-20020a170902d38d00b001e29ddcf72dmr839580pld.26.1714517182110; Tue, 30 Apr 2024 15:46:22 -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.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2024 15:46:21 -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, Ajit Khaparde , Selvin Thyparampil Xavier Subject: [PATCH net-next 7/7] bnxt_en: Add VF PCI ID for 5760X (P7) chips Date: Tue, 30 Apr 2024 15:44:38 -0700 Message-Id: <20240430224438.91494-8-michael.chan@broadcom.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20240430224438.91494-1-michael.chan@broadcom.com> References: <20240430224438.91494-1-michael.chan@broadcom.com> 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 From: Ajit Khaparde No driver logic changes are required to support the VFs, so just add the VF PCI ID. Reviewed-by: Selvin Thyparampil Xavier Signed-off-by: Ajit Khaparde Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 4 +++- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index 67294835e10e..2c9ced024250 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -137,6 +137,7 @@ static const struct { [NETXTREME_E_VF_HV] = { "Broadcom NetXtreme-E Virtual Function for Hyper-V" }, [NETXTREME_E_P5_VF] = { "Broadcom BCM5750X NetXtreme-E Ethernet Virtual Function" }, [NETXTREME_E_P5_VF_HV] = { "Broadcom BCM5750X NetXtreme-E Virtual Function for Hyper-V" }, + [NETXTREME_E_P7_VF] = { "Broadcom BCM5760X Virtual Function" }, }; static const struct pci_device_id bnxt_pci_tbl[] = { @@ -211,6 +212,7 @@ static const struct pci_device_id bnxt_pci_tbl[] = { { PCI_VDEVICE(BROADCOM, 0x1807), .driver_data = NETXTREME_E_P5_VF }, { PCI_VDEVICE(BROADCOM, 0x1808), .driver_data = NETXTREME_E_P5_VF_HV }, { PCI_VDEVICE(BROADCOM, 0x1809), .driver_data = NETXTREME_E_P5_VF_HV }, + { PCI_VDEVICE(BROADCOM, 0x1819), .driver_data = NETXTREME_E_P7_VF }, { PCI_VDEVICE(BROADCOM, 0xd800), .driver_data = NETXTREME_S_VF }, #endif { 0 } @@ -294,7 +296,7 @@ static bool bnxt_vf_pciid(enum board_idx idx) return (idx == NETXTREME_C_VF || idx == NETXTREME_E_VF || idx == NETXTREME_S_VF || idx == NETXTREME_C_VF_HV || idx == NETXTREME_E_VF_HV || idx == NETXTREME_E_P5_VF || - idx == NETXTREME_E_P5_VF_HV); + idx == NETXTREME_E_P5_VF_HV || idx == NETXTREME_E_P7_VF); } #define DB_CP_REARM_FLAGS (DB_KEY_CP | DB_IDX_VALID) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h index c62bdbb7249f..656ab81c0272 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h @@ -2013,6 +2013,7 @@ enum board_idx { NETXTREME_E_VF_HV, NETXTREME_E_P5_VF, NETXTREME_E_P5_VF_HV, + NETXTREME_E_P7_VF, }; struct bnxt {