From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 65B07A04AD; Wed, 19 Jan 2022 14:32:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 022974114F; Wed, 19 Jan 2022 14:32:08 +0100 (CET) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08on2085.outbound.protection.outlook.com [40.107.100.85]) by mails.dpdk.org (Postfix) with ESMTP id 92A6241147 for ; Wed, 19 Jan 2022 14:32:06 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cXBo2BVUTQvhsGQ0B2cYQTEAJGlOPu2MH/5lNTBwyKkd2MWIXIflyv90W16JWlxFMhkAe3iwQTCwM/dlnTaEcglcdmwrY12qvemn8rVw9WXzFpDNokYcvYIky717aDJdEcwPKhSG7K/ZWHx3Id3CztVw3CZhozDMVZoUnfHZtIFN2pJjliwW0IiL6NYURcTyh/EvGDhSZuuxjua0dckZ+SiIkIilX78sc6OW6En+ZDMI8DfGlRbvWz08L0QjSDcsoipp4cnhk54K4LpGBoo3xf6CTyBz8tCsmZNx1THgIHj0EQWdWlMwRY1mfunw/+pGrBanWgVSGyDWTjOaEtx4Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=k0ZmbNaURNCqk4T8guZaeI2IXPKqEJewhPYEdwfntS0=; b=Fhs9ql15Nf0/HNGPnNrAfpNSKXgKxltYBcKgoARRkGg1s05OkAuJnDa1PVUw7uAnE0e0I9IAhB66yvRGYb7XXxX4vl1eR9xuEmeQW5MJNuuQpZZ0unT2yyXMsACgetk9iYqvheYt17mn79URkDbWRGnE/x9+NUvIPtm9REDI1i230O12sZNrwyVp34nQZtigzk5OjeH72hx030kZ5/JbnV0gqH8t6s9g8xHY1FxzzgqNfjtt1+1wFPjLcdIpiOGZoZ+aErsmHWL3d7W5IEWU4EATEEuYwmQ0Zrlz+QyhieTHjWZgYKYi+2+CHnjPLQMUFo3X1IhLlHo/wH68f6a0QA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.238) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k0ZmbNaURNCqk4T8guZaeI2IXPKqEJewhPYEdwfntS0=; b=T1Ck7Dyq9mw8WMdi3RC7Dm2QDExtsfujcCtPU9KylXe2R8jwPDbzf+L7lHL2QrUO9KLgnlQyf4OC8mK7Pc306BPlNXaIAayJowS6M8t4lcavPdAfKH7YPddIOaid5cH/waKKjXjzWNGGcYPYXj1r4nVzAhgaIocy08BDfBJReL5oftPrT3cTJK6FQ8lJt9cGdYAcMi5VG64QwYTh69GMiMTo+hxNrNhkM0vEJkaI4YaMCq5P/MoDqPyh7qYqGz6UmpkFRup8DDJi5Su0t4JcbqMtRN/+236PsfV3OKH8lt6arjagh5HnhLMa9SOHCCfVfi2qAwAcss91BUgOji4RNA== Received: from BN9PR03CA0583.namprd03.prod.outlook.com (2603:10b6:408:10d::18) by SA0PR12MB4416.namprd12.prod.outlook.com (2603:10b6:806:99::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.8; Wed, 19 Jan 2022 13:32:04 +0000 Received: from BN8NAM11FT034.eop-nam11.prod.protection.outlook.com (2603:10b6:408:10d:cafe::20) by BN9PR03CA0583.outlook.office365.com (2603:10b6:408:10d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.8 via Frontend Transport; Wed, 19 Jan 2022 13:32:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.238) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.238 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.238; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.238) by BN8NAM11FT034.mail.protection.outlook.com (10.13.176.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4909.7 via Frontend Transport; Wed, 19 Jan 2022 13:32:03 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL105.nvidia.com (10.27.9.14) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 19 Jan 2022 13:32:03 +0000 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.9; Wed, 19 Jan 2022 05:32:02 -0800 From: To: CC: Elena Agostini Subject: [PATCH v1] gpu/cuda: add NVIDIA GPU A100 identifier for DPU Date: Wed, 19 Jan 2022 21:41:49 +0000 Message-ID: <20220119214149.10027-1-eagostini@nvidia.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 835fb716-ab49-4f53-94c1-08d9db501489 X-MS-TrafficTypeDiagnostic: SA0PR12MB4416:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:962; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BAf/OqGu5GJxJgOG5DBoyDjgMwD3NmXWe9JRb742/T806kDK3XfPC+rJnDgiUNn43v7h7jKy21a9w795WXWOhm6oHeLf2Njtu97Abi34bkWD9X94i3x9eEIFOrz8FQdIbb1+iGbDk6fcQM4/Xro1MKO/PU5CxylnyzslIoLX8qKUFQYMN15K0NbLA9xlERGKbMAsouDFlQxtdyO428SBJo2f/N37jf7l68fP7U37nvz30U1Uq09a6eqy2YUEObb72iRU0xANSiXksC9P+jM6pWv018ZjBQRQOjwAystzeUNRKSQPZi9RQqcXXVvjlaRNYxH+pXKpFslOsGRbP5JpKwyQ4X8YdQRcGqKONipKQGu2qOgej2/JGj+v06KgPlJ4vubepp5z/UUf7X9F2Q9qs7708DadiDu8/hNZU5k7sxCt0o9/qC2WU67npaL3IX0rxVSLmBCQcabgZk0YWpuBSLXKjBGe6Mr/FI9OAbAi2qBmnb31hAX9Sa7QRLY03OycQ/KYf7CBm69NvYeaO1baW6s3coywZI4wlPkLnSm99NynUfGsyWsXkI40eJoUCqTzljfq7HjG+uKrPvPXBGtyj+XLT/4/2EteUGDF6zs7knZFWRvM4On/LBVPAwUow5GIH9V0wj0Mzt8qppGbbqFzpeG9NrA2JyfG/GW/ar/+vrwpsIrvnBz8u+11Pxq0wEIrAj4t9be7LHAH7R4u+sW4wPIW68VNku1ZuU6H/zwWeeTCs/bVPbawLAvOE2AADo86aI274B6MV4lOJ/OGFpO2Rv1ziGDEODdTm4tPnAngdWo= X-Forefront-Antispam-Report: CIP:12.22.5.238; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(40470700002)(7696005)(40460700001)(36860700001)(26005)(55016003)(6916009)(2876002)(8936002)(81166007)(5660300002)(82310400004)(316002)(86362001)(47076005)(107886003)(356005)(2906002)(336012)(70206006)(6286002)(6666004)(508600001)(4326008)(1076003)(186003)(70586007)(36756003)(16526019)(426003)(2616005)(8676002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2022 13:32:03.6344 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 835fb716-ab49-4f53-94c1-08d9db501489 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.238]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT034.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4416 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Elena Agostini Adding a new NVIDIA GPU identifier to let driver recognize the A100 on a DPU card. Signed-off-by: Elena Agostini --- drivers/gpu/cuda/cuda.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/cuda/cuda.c b/drivers/gpu/cuda/cuda.c index 882df08e56..c295e7cc70 100644 --- a/drivers/gpu/cuda/cuda.c +++ b/drivers/gpu/cuda/cuda.c @@ -58,6 +58,7 @@ static int cuda_driver_version; /* NVIDIA GPU device IDs */ #define NVIDIA_GPU_A100_40GB_DEVICE_ID (0x20f1) #define NVIDIA_GPU_A100_80GB_DEVICE_ID (0x20b5) +#define NVIDIA_GPU_A100_80GB_DPU_DEVICE_ID (0x20b8) #define NVIDIA_GPU_A30_24GB_DEVICE_ID (0x20b7) #define NVIDIA_GPU_A10_24GB_DEVICE_ID (0x2236) @@ -92,6 +93,10 @@ static const struct rte_pci_id pci_id_cuda_map[] = { RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID, NVIDIA_GPU_A100_80GB_DEVICE_ID) }, + { + RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID, + NVIDIA_GPU_A100_80GB_DPU_DEVICE_ID) + }, { RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID, NVIDIA_GPU_A30_24GB_DEVICE_ID) -- 2.17.1