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 2E54FA0507; Mon, 4 Apr 2022 16:44:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 20D694281A; Mon, 4 Apr 2022 16:44:03 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2051.outbound.protection.outlook.com [40.107.223.51]) by mails.dpdk.org (Postfix) with ESMTP id D271F4068C for ; Mon, 4 Apr 2022 16:44:00 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DuLYcE8Gd0fDOoP2Na9Uueinpm8Lr2Y4W+Xsxt1FhB++tOJFjZQBnSaXFwj+ddOebGgyZ+UgBoMJ3luxvvUgRFn1xM8Fl9lVxdlcm/q24NwpJ8NVTwi3ArtHMLpcS8rFwE62zSFI11As0USr0TKa1E1gnDuW1X+W3xfJeC8PyIkpzsqmmjudDijFzW2UeG2ZssHfSnkUzyhIvM5FW9A7VhlFm4p+AQGghScc+p6gDiDE4glxWiR1i3+GgrYGpWZ4xpxWSJJyj3pMYvk7ab/kB1FVQWlEYgB3CwRlmM5UMzj92Og2+wVsOmEZvzBKFWZCvzHLEfdff6/iyzH178Tb3g== 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=0HN87DVuRO6akVK7SsTU0c06FasLyWclhSF8x1KdpZw=; b=iOmjxwUcSEHRwvW4rNwiSpVLMJma3W28UDD3XU5Lh0kD3FKJo3+vUEpeYWHY1jY1ocP3DOubCYY4ZsqMd2r3Fa3ZLxF89esIhIc3umHdc4hk1u3VUXzngzya6RaGuYz38WNrOBd22zSuV1Gbyg/iLQPGu3RA7d10I4R2fgMqLcPQlYqdQ+DQayHWwRJ63zkEb9DYXP01iY27SpKCC9XZl2p0EihqY8rCK8qrTuiXuYxQCplzrWHgWm1gPevUm9P/h4b/7md6I3+JU3KcZkD0fCiJG4/pdwbD2Jiamws1AhuNJpqJbgxjnPZREl8cy1Hz29b4JwgiJ8gPhgjUz8VJMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.236) 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=0HN87DVuRO6akVK7SsTU0c06FasLyWclhSF8x1KdpZw=; b=jrzJvTYvV8JYU8zytNSy+iGOeONB7wCkofsp4LZEY3F2lk039NMjHToMDBLE+38zubejKt9B7gaCJTvRuNsMCwCbEcoqaugckjYpjTR7tjfotcYs+QGDzxMrC5V06eXymTQ6yyQoBqIqyD3XPj5gZ9T8wQ7PzJ/g3MRyogE7Pls5Wes9I+BB+eVD4B3fvkW6xUgzyuDDHip4GLfZCD8k5rqN/G2+/0fowr1qXGxGTy4/s8ghpvay1ockxvjpetoNhMH334dUGnwVzryjAjid0oHNMG2ehCTTaa54TOtSbkeMK+83IJmFsC+qQ6RY2x0V4zYs8W/0zQvFfjmEVM7MXA== Received: from DM6PR11CA0034.namprd11.prod.outlook.com (2603:10b6:5:190::47) by CH2PR12MB4152.namprd12.prod.outlook.com (2603:10b6:610:a7::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.31; Mon, 4 Apr 2022 14:43:59 +0000 Received: from DM6NAM11FT022.eop-nam11.prod.protection.outlook.com (2603:10b6:5:190:cafe::49) by DM6PR11CA0034.outlook.office365.com (2603:10b6:5:190::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.13 via Frontend Transport; Mon, 4 Apr 2022 14:43:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.236) 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.236 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.236; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.236) by DM6NAM11FT022.mail.protection.outlook.com (10.13.172.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5123.19 via Frontend Transport; Mon, 4 Apr 2022 14:43:59 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL109.nvidia.com (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Mon, 4 Apr 2022 14:43:58 +0000 Received: from nvidia.com (10.126.230.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.22; Mon, 4 Apr 2022 07:43:57 -0700 From: To: CC: Elena Agostini Subject: [PATCH] gpu/cuda: add new A30X GPU type code for DPU Date: Mon, 4 Apr 2022 14:43:52 +0000 Message-ID: <20220404144352.126808-1-eagostini@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.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: f80afa54-2169-42ba-6555-08da16498dbb X-MS-TrafficTypeDiagnostic: CH2PR12MB4152:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZhUimhSl3wN+XmO2DXSNFBLiEvHyaHSSPGaYhbXaSj3tTDZj0R3At89o2PfjR5Fpi4UbZ9GZd5FG4ojUzFMEUVf/WDOdk7UBaa2BLL/6LQ1GWFUCZQmvp0qhMaG3yKdAf18AbJDUGIE1yRJOUXOTdUGMGMFNScerHNkLEXhM1TBZ+SFX0JHLp4c5/SPt7BduaJWEclR2ZPjnrAcGPtShQalbG/3lp1nLil8gUnnzf4A9L5V9mWxs4BLbo5JrE2V8vdk4woe89gbLEw6jVVVlkQKDGKNhNfFP3KjFOxsdkzLcpq6k1fXtXs9ZqxV1+0jbZAqHeD5I14QjvuR5e90MhUmufigMTIMmvq4XFK1SYlGgv8YREv4sKJ/RmEqDgzZMlZbR9XjSRo/vW30jufrFEZO9GGj3LhFQ8gEehyKZ9sP6RAUTL6Ue7jH1tNc1oFDuB57MCqIfOrIkBkvEAy4SyQ2F7DfIXIHlrbijEkQ+1KhXlp0ztL36Gm8sSKdqA8A9CbJx+PT3i0dv+ysoHucyg5jdsBncLAMZbnVNpIj0RtsiS/dcR1PCjy8BmX3kDIKDwFjq000JRIUxvUb+7UAVj50cCSoQrt85H4QMcMnF2F6IXJXNg2dZe5c7ZXe8fSB0sewkOYyoRyOcy8Y85uXW6dtrWjgkgZnxMVHFMUsZZfXEk+RjV/ShW/NauDExpuXNFhxNgQUitM7rXO9tcp+a9g== X-Forefront-Antispam-Report: CIP:12.22.5.236; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(86362001)(47076005)(36860700001)(107886003)(8676002)(70586007)(70206006)(82310400004)(186003)(55016003)(16526019)(26005)(336012)(426003)(1076003)(4326008)(2616005)(508600001)(4744005)(356005)(40460700003)(8936002)(5660300002)(81166007)(2906002)(2876002)(316002)(6916009)(7696005)(36756003)(6286002)(6666004)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2022 14:43:59.1232 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f80afa54-2169-42ba-6555-08da16498dbb 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.236]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT022.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4152 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 A30X GPU code for DPU. 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 8505d39d64..92097e067e 100644 --- a/drivers/gpu/cuda/cuda.c +++ b/drivers/gpu/cuda/cuda.c @@ -62,6 +62,7 @@ static gdr_t gdrc_h; #define NVIDIA_GPU_A100_80GB_DPU_DEVICE_ID (0x20b8) #define NVIDIA_GPU_A30_24GB_DEVICE_ID (0x20b7) +#define NVIDIA_GPU_A30_24GB_DPU_DEVICE_ID (0x20b9) #define NVIDIA_GPU_A10_24GB_DEVICE_ID (0x2236) #define NVIDIA_GPU_V100_32GB_SXM_DEVICE_ID (0x1db5) @@ -95,6 +96,10 @@ static const struct rte_pci_id pci_id_cuda_map[] = { RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID, NVIDIA_GPU_A30_24GB_DEVICE_ID) }, + { + RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID, + NVIDIA_GPU_A30_24GB_DPU_DEVICE_ID) + }, { RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID, NVIDIA_GPU_A10_24GB_DEVICE_ID) -- 2.25.1