Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp173675lqo; Tue, 7 May 2024 16:39:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVolQ1s1DyOI35zM7/Cw8a+aMOz1Qp4wiOAXvKlfY67YRHk7gpd6JwkI7T5eBe26N+d/W+gQT9vr7SMeGlfoE5tPGlqERRoO1VQa/kF1g== X-Google-Smtp-Source: AGHT+IGY9Vbm3EtiErtEhbmNfpiH7IMge7/3q3nXB4/vx+BfS0jp96qsUJoWX17HQLpFepvpJn/e X-Received: by 2002:a05:6a00:8306:b0:6ed:4aaa:3cbf with SMTP id d2e1a72fcca58-6f49c1f5b90mr1262970b3a.3.1715125140777; Tue, 07 May 2024 16:39:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715125140; cv=pass; d=google.com; s=arc-20160816; b=wZs0Qy+TNT1fcvgXsuxPxxpZcDwjRRHG5R0vT8k2Tm1V04m5oxlmFiHpzbBk4bavRm Iod011bpcDekBconuNScNLG0Cw4gm2f5PX4ngY+GGkgLvyvhEn/SDdvo0FXMGTIDnx66 Yh4gA6IyFuBObTMkEAf2SD30V1lrNulekYrNFXrxDXBNF5ry7Ghzd1lhpiylnGjr0Y44 QKPUOmcq5+7vMk7LqU+YtkqulQiHlNMhYy+1o2xNb/GJwtODW4QrVz7X7vyQkWPfyM5p agN37hAPpsw0gmbyR38rBMphK2M8CX54D6X8I55lYKkzz6uBgdzn92Tg6BS0kf7QJnoF HPHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=hgfxTbYm19KbHdSXIVV2+IBqO2hXcLJrPCnCIU5t/Hs=; fh=QE3mxyl1/accWatj8HbjsJ3n9lvBblTj8j8tleMgR28=; b=gXkGUX5iUJR0cGyntAO0NwQhzDAr5GaccTDiFVez1hdkTPxCX77PKR+QR3GIneZBje zzSP4Ub8GHxOseRZOXOvm13Jc+/DpiVljNfEz+snSkXs7sNzwWi1e2I+HlghhZMoQiea BoL8prcsKX3JTuGvV7Ddmoe3WkjGnJlRo1/JLRoBhMJVBnb1iWEk7Jpv8yzchXM3zrfO Jgkvau1SZ/oxLV9dJ+IuHGVLnESsmgKQbyptGMbrjcZQUdtuD9IghvPLX+SG9a2Xl1QL MZq7/2pCByc0gy8zgfznhVcuGHyqfo4ONcEc9bCyrBoPAVSad3A6f7fik7yf7fDH+pEa L41g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JaNUWpLK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172412-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172412-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b23-20020a637157000000b0061c41c86f14si9749872pgn.594.2024.05.07.16.39.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 16:39:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172412-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JaNUWpLK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172412-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172412-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 656F62835E3 for ; Tue, 7 May 2024 23:39:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B645214AD2D; Tue, 7 May 2024 23:11:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JaNUWpLK" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DDA1214AD0A; Tue, 7 May 2024 23:11:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123466; cv=none; b=CNYUTxNZicjsip61lysYQZRU5vU+4xGG5XkDJBDIXazq1WjPCriOtEyRRr2StUuSIFe2pi7O+e/65Nj5t1G6bnIUY+RxJwBKvSX99A0J6YmCkpYmqnZ0VQ1WldK5UAf9qQq7VB/THzwv2pyDEFcWKASWhPj2OJtR2WTMAWJwDg4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123466; c=relaxed/simple; bh=/CV7Z6rF391rfbdBV98VvbhtFxwBt+jxT5UoV7D8kvM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=S1G4p+zec+sM35WIPk5r5B/2TobqOlMdx8wMEULZcJBXeYaKRoc95TiHw9+zaMHKbwYmDL8VodTBKwy5KXl7ND1LrQooXV0xT+TgVolul5ZeGxXsoIYL80gajnTI8s0n5Rioz0JxZMNZ/3ryf0z1HfK71HcmnBtO7xguFYhmOtc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JaNUWpLK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62AF8C4AF63; Tue, 7 May 2024 23:11:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715123465; bh=/CV7Z6rF391rfbdBV98VvbhtFxwBt+jxT5UoV7D8kvM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JaNUWpLKwphTOQzIkLOZ0HTSTophQWs0GY9qTQlKopR8FTi9K+JkYqaUtmOfFNSsz vN+dwwbWubOFPqPPXx87v6YLklGmuGSmMOPD64ZtY/ImeZmMJoJP6qfoSUQpdjxjQ1 qFjS5ufq0WhqH9tjlhqccAIXuFvQ2VjMqcEsa0QhChOwskEeMXr/hMeOdxbb/DhGrt lqqHKx7La+x/t/C0KKJZqWBOQBPB5qFEaCghxOEXrNJBx8/Mq/YydGJ7AI17oeTrfb +BXJ22JKF2Jf+XSQliyd8BNTTmwf8AQrTfRYP6BgwyHO4rh7XpyG6Z5RnmJADOn8AP lI5oJ+pMI7O1w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Peter Colberg , Matthew Gerlach , Xu Yilun , Xu Yilun , Sasha Levin , hao.wu@intel.com, mdf@kernel.org, linux-fpga@vger.kernel.org Subject: [PATCH AUTOSEL 6.6 17/43] fpga: dfl-pci: add PCI subdevice ID for Intel D5005 card Date: Tue, 7 May 2024 19:09:38 -0400 Message-ID: <20240507231033.393285-17-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240507231033.393285-1-sashal@kernel.org> References: <20240507231033.393285-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.6.30 Content-Transfer-Encoding: 8bit From: Peter Colberg [ Upstream commit bb1dbeceb1c20cfd81271e1bd69892ebd1ee38e0 ] Add PCI subdevice ID for the Intel D5005 Stratix 10 FPGA card as used with the Open FPGA Stack (OFS) FPGA Interface Manager (FIM). Unlike the Intel D5005 PAC FIM which exposed a separate PCI device ID, the OFS FIM reuses the same device ID for all DFL-based FPGA cards and differentiates on the subdevice ID. The subdevice ID values were chosen as the numeric part of the FPGA card names in hexadecimal. Signed-off-by: Peter Colberg Reviewed-by: Matthew Gerlach Acked-by: Xu Yilun Link: https://lore.kernel.org/r/20240422230257.1959-1-peter.colberg@intel.com Signed-off-by: Xu Yilun Signed-off-by: Sasha Levin --- drivers/fpga/dfl-pci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/fpga/dfl-pci.c b/drivers/fpga/dfl-pci.c index 98b8fd16183e4..80cac3a5f9767 100644 --- a/drivers/fpga/dfl-pci.c +++ b/drivers/fpga/dfl-pci.c @@ -78,6 +78,7 @@ static void cci_pci_free_irq(struct pci_dev *pcidev) #define PCIE_DEVICE_ID_SILICOM_PAC_N5011 0x1001 #define PCIE_DEVICE_ID_INTEL_DFL 0xbcce /* PCI Subdevice ID for PCIE_DEVICE_ID_INTEL_DFL */ +#define PCIE_SUBDEVICE_ID_INTEL_D5005 0x138d #define PCIE_SUBDEVICE_ID_INTEL_N6000 0x1770 #define PCIE_SUBDEVICE_ID_INTEL_N6001 0x1771 #define PCIE_SUBDEVICE_ID_INTEL_C6100 0x17d4 @@ -101,6 +102,8 @@ static struct pci_device_id cci_pcie_id_tbl[] = { {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_PAC_D5005_VF),}, {PCI_DEVICE(PCI_VENDOR_ID_SILICOM_DENMARK, PCIE_DEVICE_ID_SILICOM_PAC_N5010),}, {PCI_DEVICE(PCI_VENDOR_ID_SILICOM_DENMARK, PCIE_DEVICE_ID_SILICOM_PAC_N5011),}, + {PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL, + PCI_VENDOR_ID_INTEL, PCIE_SUBDEVICE_ID_INTEL_D5005),}, {PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL, PCI_VENDOR_ID_INTEL, PCIE_SUBDEVICE_ID_INTEL_N6000),}, {PCI_DEVICE_SUB(PCI_VENDOR_ID_INTEL, PCIE_DEVICE_ID_INTEL_DFL_VF, -- 2.43.0