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 B6839A034E; Wed, 9 Feb 2022 18:49:05 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 75F1D41101; Wed, 9 Feb 2022 18:49:05 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2072.outbound.protection.outlook.com [40.107.96.72]) by mails.dpdk.org (Postfix) with ESMTP id EB52140140 for ; Wed, 9 Feb 2022 18:49:03 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hNzIp00/OUHQzdRpm3Ty4sP7+OL8NFAuzGXFY+ndTkyxdfC7T0GVa+sMnv+AAbJO+8eoD4HWG9GTzyJw8tX+zPg6rS9rCuLBy3xsjbq8Y9SVICkfrcBol022svKcbiv0arKXpJ6gGARwqHlpwZ8GS9ZTeVxPt/kRvaDd0ZJ/k83jUYjU+eRXIp+zrTptR/mbU5xFr6uplU/tk1Yvim4sNgnQyJ64RUPCJrJ+iR+tiUDB50InBd5v2C5GfbvwnabyoKuxBsM9JfklU100uSSIIjPQIE4dl6I4TVlb2kQMnEcKLN3DgM+9PVqPVQQS+YeabplT9xyCJCQBO/SP9NpIkw== 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=F/BDubUqeuzTGKaOjG8SZqgQBiJIh/VR+NrwqsttT5w=; b=leyb+nnwZw5xvJIzbXQMOF/JorULQY6S9EKYHCYBJV0cdDecoGLh6Tny2BIyLHiJ2c2uFkyRiKoJKJEslWXjxBFTMfYL2dJWISlQwH0Alo+87Fj2DBaWcI21rjE3ZoJd21kXwdsrFz7if6rTKZ9qaNwKKp+RjoHBp2EEjZOqCEWH/Fa3ZQbAnMDezw74jOT+Nyd6wZ2Rt6nIeNkE4lccT+HeYBL/S4FmA2eGrww0TedAMII7eFH8v6FUpa/BnKX8fBIkqx2symmzmE8YBiWy8WAg4duL6zASJrzFlZkSgJs1I/yv0wVk+y0NCgY6VoDvM2b83W9Hw/J/pngbKrCytg== 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=F/BDubUqeuzTGKaOjG8SZqgQBiJIh/VR+NrwqsttT5w=; b=WKgQGSjs/DSneES1zQQVKc+F7C0K5Pe9ApG0mgt1WRa7GUSnJI3om7pePgwDRTRia3JbwFcm/egtBO9d1LFVoyyc8OdXQlqkyf4Y96aS1iMhEABmMF0gII+/82TzDlK8szm8rWNq3EYZI+OtTsTrNAwsdJuXW5VCuXkZye78KbfQf9q34RGiLFIigbX12IBDQuMHMajnYrRtOR5pRnXaJS/poqseE7ZjGvb/sRU49rOzSI52Z8lZDHuoYOt60glRxFr27QKDAtFfAfdkdR8x0EeHi+SbEuxoQdBq/RuAS6lxu1EuusW6x81MkXIuHJltEZU0ZG6JdiZlnmR+z8dEnA== Received: from DS7PR06CA0041.namprd06.prod.outlook.com (2603:10b6:8:54::10) by SA0PR12MB4351.namprd12.prod.outlook.com (2603:10b6:806:71::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Wed, 9 Feb 2022 17:49:02 +0000 Received: from DM6NAM11FT055.eop-nam11.prod.protection.outlook.com (2603:10b6:8:54:cafe::8a) by DS7PR06CA0041.outlook.office365.com (2603:10b6:8:54::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12 via Frontend Transport; Wed, 9 Feb 2022 17:49:02 +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 DM6NAM11FT055.mail.protection.outlook.com (10.13.173.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4975.11 via Frontend Transport; Wed, 9 Feb 2022 17:49:02 +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, 9 Feb 2022 17:49:01 +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_GCM_SHA384) id 15.2.986.9; Wed, 9 Feb 2022 09:49:00 -0800 From: To: CC: Elena Agostini Subject: [PATCH] gpu/cuda: differentiate V100 32GB GPU IDs Date: Thu, 10 Feb 2022 01:58:51 +0000 Message-ID: <20220210015851.15624-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: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4da0a653-5699-47b7-096b-08d9ebf47549 X-MS-TrafficTypeDiagnostic: SA0PR12MB4351:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:296; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SolGOrjCVcmmRWIPa7a/jisvMK7W0ocMFRl+vnmuquJNUUN7q1KchWx9C8iCcOABNgxeA53KlnTV5ioOnhWqJihydwInj70w8O8n3U0JI6enTLnknhkD6opT6bXh87lWZEQMwis0P4o8NrhkAoV3TbRytndlskUBC9rO83ZXGZFIUr6md6q5Ki+4NgSLd88MF30CQa6QQoingiRoxZ7JhFNhgkteOK65HDP1hLH1UMiyEGZGs71L9dXjnNJ/aKZuf9ViG7CL3+OPu1dP5sx9SZFZ6Y+vjgr9t4JLd6rbSPg1XneDa/ChDdRKHL+yU9qWjJAG1ctOkp9jETrV3lxnF+8oOb4IOb1RxcNK0XS7PNuTGt5rKeKXLwBoIa3d6AfeSXOUUI8TabGvwfL4OW8XdN1jYuoJ/8Piux0cJSiiyYom5zIY6BVXXatR4FQvbDd1ZuBM7VbYE4kvQvHa+obZl+mftcpRmphuXcT5ptpT64vlXB7zfS40dd7FdRIqjzNU+W7ySS3l4ND2o6hAOG6qQVvRBRXGgzL+wbJnfRkdMicL8+Momu8gTUNuYaNNLNhTa5tssRlOaawdPxBenPVnXaYT3sIZA12evjPcd8RAfXHfCfWdbk9xY1gxHwgk39I9tn7H42BNnHTyRR5H0AoyfQYHYBQaCUKZE95YeSu7QeCk5UpFYn+Wn9dDbyvit5Tyu8aREe2/BBcfYk/cX4ZhPg== 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:(13230001)(4636009)(36840700001)(46966006)(40470700004)(40460700003)(82310400004)(356005)(70206006)(86362001)(36756003)(4326008)(8936002)(2876002)(81166007)(316002)(70586007)(6916009)(2906002)(36860700001)(55016003)(1076003)(5660300002)(6286002)(16526019)(508600001)(6666004)(7696005)(47076005)(2616005)(83380400001)(8676002)(26005)(336012)(426003)(186003)(107886003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2022 17:49:02.0810 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4da0a653-5699-47b7-096b-08d9ebf47549 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: DM6NAM11FT055.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4351 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 Differentiate between GPU V100 32GB SMX2 device id and V100 32GB PCIe device id. Signed-off-by: Elena Agostini --- drivers/gpu/cuda/cuda.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/cuda/cuda.c b/drivers/gpu/cuda/cuda.c index 0ece1bb612..49c7b065a3 100644 --- a/drivers/gpu/cuda/cuda.c +++ b/drivers/gpu/cuda/cuda.c @@ -63,7 +63,8 @@ static int cuda_driver_version; #define NVIDIA_GPU_A30_24GB_DEVICE_ID (0x20b7) #define NVIDIA_GPU_A10_24GB_DEVICE_ID (0x2236) -#define NVIDIA_GPU_V100_32GB_DEVICE_ID (0x1db6) +#define NVIDIA_GPU_V100_32GB_SXM_DEVICE_ID (0x1db5) +#define NVIDIA_GPU_V100_32GB_PCIE_DEVICE_ID (0x1db6) #define NVIDIA_GPU_V100_16GB_DEVICE_ID (0x1db4) #define NVIDIA_GPU_T4_16GB_DEVICE_ID (0x1eb8) @@ -107,7 +108,11 @@ static const struct rte_pci_id pci_id_cuda_map[] = { }, { RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID, - NVIDIA_GPU_V100_32GB_DEVICE_ID) + NVIDIA_GPU_V100_32GB_SXM_DEVICE_ID) + }, + { + RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID, + NVIDIA_GPU_V100_32GB_PCIE_DEVICE_ID) }, { RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID, -- 2.17.1