From patchwork Wed May 1 00:30:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 13650149 X-Patchwork-Delegate: kuba@kernel.org Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) (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 73908646 for ; Wed, 1 May 2024 00:31:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714523511; cv=none; b=ksQqTLcSqTpkcVZ3RFZMVzXwaQxtXGieGbvbPzk4jPthw1pwYiV88MfK+ijy0YDDjwZzKQ3zvz7qptLXnyoTQRZkU8aanso4CS5Z/LHPj6SrIA7BnY8YRPafOlOG4fq5+xUZyXs8CJ3fgTvZa6NLKHy1Ke4vu41vnhEAoIa4sDc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714523511; c=relaxed/simple; bh=sY29cIiiVP+dNlgNqiwtUQDpdtVOhON+B7+0xgzuZGQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=DnETgOGmi+NAgnGa03PY7AZ+/vRoIxS6Oy79vsAmo9tlPhTmBCONb7Cjfnu4um2xFw/rVKEnrrS0tf3iHwJcHaLH85uOsR9AHGyeTFYEmHl6sKRwmL2QcGpgM26JAJM21MowBO/3ihp9PGRGhVqboKEf5lMZE0a0ICzrzt7DjGA= 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=SEXU/ZAQ; arc=none smtp.client-ip=209.85.160.176 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="SEXU/ZAQ" Received: by mail-qt1-f176.google.com with SMTP id d75a77b69052e-439656c1b50so38503701cf.1 for ; Tue, 30 Apr 2024 17:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1714523508; x=1715128308; 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=Y0FMRx5O26TdP6qBGwz2RfORle1q952ZXOMsUBF/C0Q=; b=SEXU/ZAQC8hVqEVA0VySm38S6t+KNLz/HOAcZi+jjO74do38g+z5C1fUShCJvgM2DX 9rKZLbaFG+0FOwIf3aPDV13E+Q8NQUGesJPYigEsnV60X4wYPIWNfwsA1+AP1lswYb+R htOLCH2YXkcYgmxIErMPlosvn5lfZIO8/OR7E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714523508; x=1715128308; 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=Y0FMRx5O26TdP6qBGwz2RfORle1q952ZXOMsUBF/C0Q=; b=mflZ/GZNA8Wpe2PfYlVWq/F7laDu0oFSozI9tRNvkgehFXLPWFDwqp8MwyyTJdXRaR HFj0VkMqEE2uCG8Kk9oNs31cSu8jNo/UcsXYe+gTvtJUBZ1l1BNUYsuus7X9KKs0e2sS /aCdW8OVcMgBijHaujBmr8fQm7zuCdeNgSkMyZoaV9KAoKyEKJKk/mY88qGs0nWy2CRL Z65wrc1Z1RKFIsFAHArdm4CxV2bwYtqpBVE0mVdj6r+JCMg0E24qwpjgglhaMpTAYNaJ vx12J11sfIFbl50T5Cwi/ilkYVvG0Z9ZLgUUBTaa/Qn3hxRUJUhLQHJsk6ecAqSLNnVQ OExQ== X-Gm-Message-State: AOJu0Yxv5AT7oX7/RWDZb3KLTGQdsAcWzV+iqRMtEuWzG8tSk+Bdxgal 3x5DdaZA7ogUK+xYPFNQcH60rP3FW7vIXfNlrV9BmCWIpSt4YDPwpxCsF/wDtsBJhK8vNkfPDEQ = X-Google-Smtp-Source: AGHT+IG4FeWdzsuUo2ZPjWWX8OHAkBDj1ZZhlWvTlxv4hUqkLN0amy4UeRS7y78WSNNOajCGtl6WzQ== X-Received: by 2002:ac8:590f:0:b0:43a:f80c:6923 with SMTP id 15-20020ac8590f000000b0043af80c6923mr1043721qty.36.1714523508049; Tue, 30 Apr 2024 17:31:48 -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.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2024 17:31:47 -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 v2 6/6] bnxt_en: Add VF PCI ID for 5760X (P7) chips Date: Tue, 30 Apr 2024 17:30:56 -0700 Message-Id: <20240501003056.100607-7-michael.chan@broadcom.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20240501003056.100607-1-michael.chan@broadcom.com> References: <20240501003056.100607-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 Reviewed-by: Simon Horman --- 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 ccab7817c036..78ba383d2fa0 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 1e15a25b77c7..34d82aaa49ed 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 {