Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3012695pxj; Mon, 17 May 2021 15:33:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZ8QQpkWhAFvzpLZx+HYzUQkf5P7bkVEAoc3qXMo4q4isllfmskqNlCpbtPrqF9JEZZ1JU X-Received: by 2002:a17:906:11d3:: with SMTP id o19mr2261289eja.387.1621290803198; Mon, 17 May 2021 15:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621290803; cv=none; d=google.com; s=arc-20160816; b=qHmM/xQEukYnQ004S3rexACI+p/FDVhJHoELoG5JMnfYmU0+lAVqksd+U/LTMIG0E2 7zkcYbW+VGuTeYKJO/4TMpQFaqE+tiMqTa43sk+BlkotV1KVPpb1msmxxqkMenGKO1sT QlUUgm9OXISJrPp8L83Lslt94TQMqxH94am9NoXwP0HBbLFzIl8e93pSq7Qw5hzN9Wk+ zzQ/2Xbx279E4a1oW1r/KJPOOl5OkzVrtBWDcK/ClRsvu57//QK4FEGVeVaRftm3aEMx vVQvISTABluHkY+ZCK/Klhcyg0U6AcLzHo1o8tN/7CsKP+B9V12T699DiflSLKRpWFzR lF5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YCvGfO3yhbuSuJ0Hod47VIiWFung9kmq8ns4sDA+ZPc=; b=gt7huW8+WGh6wzs/GNQMni59RAYVv/3hyvsiI7K7862AfP3c5O032Zh89cMGIkHQcT 1ne94lAUcUNlkUdNfNWZLqzQoMvbw9JPBhgcVup4BikKsOKQr6lq1avdZHXEBTSHnpZk 9NXUV89bPCaeLebGypHXGDq996kU+BjaD0Iz2NCXYcluSnhq5yG+zUW42d98fFOxJw3p qeR37ZHwkvFqzarOT+MC1GomI5p+2P1pkZEJYbcLqvzX6c1fbdBmzkbXxdXZR7f2LZcB kkRlfesB+4bwmDPiElir2jGWDJ/92M3+1X1ybLyekWk3wljdS3GWXq7trmo4s9v0uTCy D9AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qN7aIjql; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si15318622ejd.638.2021.05.17.15.32.59; Mon, 17 May 2021 15:33:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qN7aIjql; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235193AbhEQOQI (ORCPT + 99 others); Mon, 17 May 2021 10:16:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:47270 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238533AbhEQONK (ORCPT ); Mon, 17 May 2021 10:13:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E56AA61396; Mon, 17 May 2021 14:08:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621260514; bh=yIQfe4DWt3YvVoGHxLkOPrftl9QKP/9VnDR/P/JOzBQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qN7aIjqlqv+fnoviviJUy8pCbygQl8vnBMGPndWudzABx7EdlbIrdLJ2P+uM32zY0 ozLdT7pF/D7nZ58K7Gq5j5sY7mswWZ8eM3c9Ss1MuIWZxIv+NacYPsGU+8O0QIpYtq d4mTwrND5qeICQ+SCrJj4my/dhQ7c5uwmtktNbVM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vasundhara Volam , Andy Gospodarek , Edwin Peer , Michael Chan , "David S. Miller" , Sasha Levin Subject: [PATCH 5.12 116/363] bnxt_en: Add PCI IDs for Hyper-V VF devices. Date: Mon, 17 May 2021 15:59:42 +0200 Message-Id: <20210517140306.548800098@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Chan [ Upstream commit 7fbf359bb2c19c824cbb1954020680824f6ee5a5 ] Support VF device IDs used by the Hyper-V hypervisor. Reviewed-by: Vasundhara Volam Reviewed-by: Andy Gospodarek Signed-off-by: Edwin Peer Signed-off-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index 73239d3eaca1..cf4249d59383 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -122,7 +122,10 @@ enum board_idx { NETXTREME_E_VF, NETXTREME_C_VF, NETXTREME_S_VF, + NETXTREME_C_VF_HV, + NETXTREME_E_VF_HV, NETXTREME_E_P5_VF, + NETXTREME_E_P5_VF_HV, }; /* indexed by enum above */ @@ -170,7 +173,10 @@ static const struct { [NETXTREME_E_VF] = { "Broadcom NetXtreme-E Ethernet Virtual Function" }, [NETXTREME_C_VF] = { "Broadcom NetXtreme-C Ethernet Virtual Function" }, [NETXTREME_S_VF] = { "Broadcom NetXtreme-S Ethernet Virtual Function" }, + [NETXTREME_C_VF_HV] = { "Broadcom NetXtreme-C Virtual Function for Hyper-V" }, + [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" }, }; static const struct pci_device_id bnxt_pci_tbl[] = { @@ -222,15 +228,25 @@ static const struct pci_device_id bnxt_pci_tbl[] = { { PCI_VDEVICE(BROADCOM, 0xd804), .driver_data = BCM58804 }, #ifdef CONFIG_BNXT_SRIOV { PCI_VDEVICE(BROADCOM, 0x1606), .driver_data = NETXTREME_E_VF }, + { PCI_VDEVICE(BROADCOM, 0x1607), .driver_data = NETXTREME_E_VF_HV }, + { PCI_VDEVICE(BROADCOM, 0x1608), .driver_data = NETXTREME_E_VF_HV }, { PCI_VDEVICE(BROADCOM, 0x1609), .driver_data = NETXTREME_E_VF }, + { PCI_VDEVICE(BROADCOM, 0x16bd), .driver_data = NETXTREME_E_VF_HV }, { PCI_VDEVICE(BROADCOM, 0x16c1), .driver_data = NETXTREME_E_VF }, + { PCI_VDEVICE(BROADCOM, 0x16c2), .driver_data = NETXTREME_C_VF_HV }, + { PCI_VDEVICE(BROADCOM, 0x16c3), .driver_data = NETXTREME_C_VF_HV }, + { PCI_VDEVICE(BROADCOM, 0x16c4), .driver_data = NETXTREME_E_VF_HV }, + { PCI_VDEVICE(BROADCOM, 0x16c5), .driver_data = NETXTREME_E_VF_HV }, { PCI_VDEVICE(BROADCOM, 0x16cb), .driver_data = NETXTREME_C_VF }, { PCI_VDEVICE(BROADCOM, 0x16d3), .driver_data = NETXTREME_E_VF }, { PCI_VDEVICE(BROADCOM, 0x16dc), .driver_data = NETXTREME_E_VF }, { PCI_VDEVICE(BROADCOM, 0x16e1), .driver_data = NETXTREME_C_VF }, { PCI_VDEVICE(BROADCOM, 0x16e5), .driver_data = NETXTREME_C_VF }, + { PCI_VDEVICE(BROADCOM, 0x16e6), .driver_data = NETXTREME_C_VF_HV }, { PCI_VDEVICE(BROADCOM, 0x1806), .driver_data = NETXTREME_E_P5_VF }, { 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, 0xd800), .driver_data = NETXTREME_S_VF }, #endif { 0 } @@ -265,7 +281,8 @@ static struct workqueue_struct *bnxt_pf_wq; static bool bnxt_vf_pciid(enum board_idx idx) { return (idx == NETXTREME_C_VF || idx == NETXTREME_E_VF || - idx == NETXTREME_S_VF || idx == NETXTREME_E_P5_VF); + idx == NETXTREME_S_VF || idx == NETXTREME_C_VF_HV || + idx == NETXTREME_E_VF_HV || idx == NETXTREME_E_P5_VF); } #define DB_CP_REARM_FLAGS (DB_KEY_CP | DB_IDX_VALID) -- 2.30.2