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 43701A0524; Fri, 4 Jun 2021 07:51:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0C7E240147; Fri, 4 Jun 2021 07:51:36 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id A6E524003C for ; Fri, 4 Jun 2021 07:51:33 +0200 (CEST) IronPort-SDR: U576ia5nuQpzeJpJ98rY5caK3GE2kzED//ZD5dFNvZTC/Nuqk3x6XTdefhAEqYPjvlvHNIhSO7 K9xjmkhKf4Sw== X-IronPort-AV: E=McAfee;i="6200,9189,10004"; a="191566335" X-IronPort-AV: E=Sophos;i="5.83,247,1616482800"; d="scan'208";a="191566335" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2021 22:51:30 -0700 IronPort-SDR: K4BfHp8agM0JVkBHC8+XP54P/ZTyESnZKPEEwysEAjQB6wCseTB4NPrA7RLuKezG0kJUemUOs0 F0VTZ1ZynEfw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,247,1616482800"; d="scan'208";a="480518370" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga001.jf.intel.com with ESMTP; 03 Jun 2021 22:51:29 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Thu, 3 Jun 2021 22:51:29 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Thu, 3 Jun 2021 22:51:28 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4 via Frontend Transport; Thu, 3 Jun 2021 22:51:28 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.176) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Thu, 3 Jun 2021 22:51:25 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LUP9JujKTnIrJrnxzehYUDA4d5HQ1gukmdIh0hDTGa5zGHapi6XRglo6migG5abXv5bEUSuzw6wDQNYe8r5T033+6WNTYsaRYwgW/fJtoS5uSB0SpaLhb8+vN/zqoh8QNmwPftDRVG+RrDkTfGFqAYfGSiy2EKTkYYXTtu+x2TyKR1Lil0TW8IwMsEVkTdCHl+n0LlUNGSipoztQaVHwLoAcYOo4RBYDO0F30NF9WW0oIeUKeU1Vy0fuiDtDfIL/HgJ9A26gLONiMgSV5FfAxjda8bpmOytA0Cexa2Iigiau2ZaBzugzw2YdP4ILF5+ajuWRN+AROk+2k8HsDACRWw== 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-SenderADCheck; bh=sbJSeY6XnDxeB0m6K3boXwzaUtc2+yHTRp+yaRjnq68=; b=ZfcGkY8YP3Wm53gVj2vTSJ+3QPWLAOBM5ue7l8fFVrT4jCVERTpezJgk/0AIIb0VbYbYX8slYmo2vmh85w2tz0FtMBu4cAtrJyNNm2bHY+VxazNpBegf+EvoZ31sTfM58t3MQ8RLW2owhYPKwiemO6YkHhDpsinr0LAixOlUQB+TZ96LXwhdo5tVxXRnUGUIfJUdMzX8uAAmuwssfHoO7XoVsDk7NV1mwi5S4bLOXzbkZkqDYeFQZ8YN/LYzIpOWv1QMdAcAGHb4YPEmcExyKB+3WpTtpnXSRx3yGquFsJauMiPYPIGpLsygdYQpoS2QPTaPncJ+zEoXP7dYDUJTkg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sbJSeY6XnDxeB0m6K3boXwzaUtc2+yHTRp+yaRjnq68=; b=dsBL+1OLtO2h6IF0tdQK8FBvVhVjt9tnETdeeV+qJjfqUt09DeVAFK0ORpXz0Pq5tGSBSFPhWUgfnVB9H03ULnmfb4DbB081Aygg+HlM5KrQvbpqFX8oM9dGAqyMzkYfTf4VTN4LBqCQsabeLZ2mftiuEka+c8SILoLbsuTIjR4= Received: from BN8PR11MB3795.namprd11.prod.outlook.com (2603:10b6:408:82::31) by BN9PR11MB5242.namprd11.prod.outlook.com (2603:10b6:408:133::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.23; Fri, 4 Jun 2021 05:51:24 +0000 Received: from BN8PR11MB3795.namprd11.prod.outlook.com ([fe80::8807:6661:e425:102]) by BN8PR11MB3795.namprd11.prod.outlook.com ([fe80::8807:6661:e425:102%7]) with mapi id 15.20.4195.021; Fri, 4 Jun 2021 05:51:24 +0000 From: "Wang, Haiyue" To: Thomas Monjalon , "dev@dpdk.org" CC: Elena Agostini Thread-Topic: [dpdk-dev] [PATCH] gpudev: introduce memory API Thread-Index: AQHXV+8BBxLOVwnssEGBVBOBXmJb5asDWuCA Date: Fri, 4 Jun 2021 05:51:24 +0000 Message-ID: References: <20210602203531.2288645-1-thomas@monjalon.net> In-Reply-To: <20210602203531.2288645-1-thomas@monjalon.net> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.0.76 authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.51] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d726ce05-a8cf-46c6-c9ee-08d9271cc9a7 x-ms-traffictypediagnostic: BN9PR11MB5242: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: nYcoS2EAnQZLCw6q3QulI1fIlReREEWeRlNE4+8PsJIPfQ3QvdM9iOe7eKLKkCccKh8997T6q6OUq3xsovgL+webTB5zY+rTI917HICSHl6ezPMSRGWz66qkzxqdGqaxFqDY8Nt0iaYp+AifPjlMwqo5Z5EIu6216qUTmHh9X3DDaHx/jSKMHp63fJO/t16sBVqIjW+RjtuZA4DkArs/ImYC0ROaH6TkX3tV2P8W1Il+6mrWG/wAfy9R1CVBATcUBy4yM9e0Yp1RcgNEtRGiiV7TTvhgFBnlxRrKV9ofIi282t/2+5/6LEU//au33DqqtYDhZo5DKpspPv3W+uikLd29qhhfCtBNQVEc+pODUs8QTKdL1jCbAWtgyGhFwRLDPqsRb6lMcPzzeBhK9N3iHI4ZCHpmKGvv39ikgdjPYX4zcMqIhYUKwWXO4SeO02Tsw3hTK1k2zaEtDvpPYo4seK+Ls/8GHMAcaOE7KtcztlyLB2BIggwNTBMz85WKz5vWZMFv8VgdU1Rss/D65r9WPzShd3uufTDGJ86cT116eHr4po4ayM+eH85zJjHfFBaGaHIF/szaUBteQHluQTk7watkkGyKAVzhR3VQfRPQAnFy46S/TzDr+2x1q5uIyNoM2jrJHnvp2HYJpeRLkq7AbmWu9ODLoi3ggIEHc28lrfsG25ljxFI68ShBjcfbtIclajGcvrKlIh/z2DdrumnY7KzIqwLBU2BGPD7kJwyb1pE= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN8PR11MB3795.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(376002)(346002)(136003)(396003)(39860400002)(9686003)(2906002)(55016002)(8676002)(122000001)(110136005)(52536014)(316002)(8936002)(86362001)(38100700002)(5660300002)(71200400001)(7696005)(966005)(83380400001)(76116006)(478600001)(53546011)(33656002)(6506007)(4326008)(66946007)(66476007)(66556008)(64756008)(66446008)(186003)(26005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?mxNnXlUN7a8ufPLPuga0UK0zRxqvz+rWvX+42dm1ZSSKPz+oZk54G+KXKBNP?= =?us-ascii?Q?Vhe7dlrXKyr8hoNZndiF5hUxC3OQ1b7w8hKpYfVZ/BtMwMN1zeclr+CRW23O?= =?us-ascii?Q?aKmONW+VOlEVRss5AwkscmkOPeFp6cJLOWIOX/SbCTbdIJzjzoWpjrsshEPx?= =?us-ascii?Q?MyeSxF+4TsUmvP+Cr5Z7bR1tIYqpW9f+XiOgG/hckUj+H+11tB1Rcbasth9D?= =?us-ascii?Q?rYBHIBqM+F9ek02t2sBp4fvxHeG22NxTRJmRhFf8ztohgsSKNx0D9Uok8dz4?= =?us-ascii?Q?3igpVun/9hzpKU63vj+RIsZYDMYEpo9vjIxf+8Dzc5/nA+bB6vDie/BMZQsD?= =?us-ascii?Q?1fg9bLrLIgzoXEo5+WG6cZqnnefQfo8Oc38J7FrMfkPSeUjEEg8Jhu8ed/a2?= =?us-ascii?Q?oBhX5g+SBDTPKV11Yi0yIQHSoJjBYIU84Fm27rSKivcbu46cSAPw3id/QQvF?=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ange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN8PR11MB3795.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d726ce05-a8cf-46c6-c9ee-08d9271cc9a7 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2021 05:51:24.3881 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: tHCGSzvueRnDJAy5gjpENsAQWqUQ1qOLEwyVtEsRRMjM1d1cdzUkKohKsnGm5ZU9VghteCMNyXqgxhgNYmDZCw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR11MB5242 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH] gpudev: introduce memory API 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 Sender: "dev" > -----Original Message----- > From: dev On Behalf Of Thomas Monjalon > Sent: Thursday, June 3, 2021 04:36 > To: dev@dpdk.org > Cc: Elena Agostini > Subject: [dpdk-dev] [PATCH] gpudev: introduce memory API >=20 > From: Elena Agostini >=20 > The new library gpudev is for dealing with GPU from a DPDK application > in a vendor-agnostic way. >=20 > As a first step, the features are focused on memory management. > A function allows to allocate memory inside the GPU, > while another one allows to use main (CPU) memory from the GPU. >=20 > The infrastructure is prepared to welcome drivers in drivers/gpu/ > as the upcoming NVIDIA one, implementing the gpudev API. > Other additions planned for next revisions: > - C implementation file > - guide documentation > - unit tests > - integration in testpmd to enable Rx/Tx to/from GPU memory. >=20 > The next step should focus on GPU processing task control. >=20 Is this patch for 'L2FWD-NV Workload on GPU' on P26 ? https://developer.download.nvidia.com/video/gputechconf/gtc/2019/presentati= on/s9730-packet-processing-on-gpu-at-100gbe-line-rate.pdf > Signed-off-by: Elena Agostini > Signed-off-by: Thomas Monjalon > --- > .gitignore | 1 + > MAINTAINERS | 6 + > doc/api/doxy-api-index.md | 1 + > doc/api/doxy-api.conf.in | 1 + > doc/guides/conf.py | 8 ++ > doc/guides/gpus/features/default.ini | 13 ++ > doc/guides/gpus/index.rst | 11 ++ > doc/guides/gpus/overview.rst | 7 + > doc/guides/index.rst | 1 + > doc/guides/prog_guide/gpu.rst | 5 + > doc/guides/prog_guide/index.rst | 1 + > drivers/gpu/meson.build | 4 + > drivers/meson.build | 1 + > lib/gpudev/gpu_driver.h | 44 +++++++ > lib/gpudev/meson.build | 9 ++ > lib/gpudev/rte_gpudev.h | 183 +++++++++++++++++++++++++++ > lib/gpudev/version.map | 11 ++ > lib/meson.build | 1 + > 18 files changed, 308 insertions(+) > create mode 100644 doc/guides/gpus/features/default.ini > create mode 100644 doc/guides/gpus/index.rst > create mode 100644 doc/guides/gpus/overview.rst > create mode 100644 doc/guides/prog_guide/gpu.rst > create mode 100644 drivers/gpu/meson.build > create mode 100644 lib/gpudev/gpu_driver.h > create mode 100644 lib/gpudev/meson.build > create mode 100644 lib/gpudev/rte_gpudev.h > create mode 100644 lib/gpudev/version.map >=20 > -- > 2.31.1