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 D9369A0C4E; Mon, 8 Nov 2021 19:39:39 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5F4AA410E4; Mon, 8 Nov 2021 19:39:39 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2061.outbound.protection.outlook.com [40.107.93.61]) by mails.dpdk.org (Postfix) with ESMTP id D6DDC40E5A for ; Mon, 8 Nov 2021 19:39:37 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jIjrXh3dUEcsCnd4+tFPm8yeByXrlCx9K7R3jCtazZEA+YaBWGcfTzlZNFDjouwkLfxIfZ85QdOrfOVJ1+RP39Qi2vsiu2UvyZBelEYnvMDY3PiqFRI5/fMvNToL4wIBfTaO+4U9P0DbWX7BJq83t80QZUwZhYgncVqp6aZ3yE21QcufSz+8tlipfXkiHcmJKytlU/Mdc/2mTmshYA/174FTYDuf4kEwZcnO7wvh0DkNCw5N6X31qUZxIDdcX0vGNQo2wR00elc6uHXswDdA7Sz3bpfuyAf9ovTenVCsKLqEVI2BhDaHvJAPoYwGL+l1B+eoht/9k1ubumJJNIppIw== 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=bZf8LY/LYgPoRhYujpWWQ3VTrID5Ax2sP+r0Or+8k9g=; b=XoIkoggLhfTdqRnjThYZ/opM8V8GnntXFX9P7pYE6ElNNZAZfQ5UYus1BwPMk+7vCjnt3P4/t/JYKEu++NQ/UWzpUtWqRG4e5TNf+dLzjuFYs7fvuzsZGirgLQ/01D0Iku7jnb39UgqmTQxjxevlSO2IELpJOuOhVfD9UgdJkNtIcjGoEYR67IkBvSXFaVLjpJG3CFmyVnWilhDvxCbNdvkTdBgsL96B3+9aAOgkxBcgDuKhoRUTiLUcHMZvCy7opaL6JTLD3YxM5GkAynwREUoqQLLHkDDLRqxs3UdddjvUJ1T8CsdUa+B4uBMu+1PVaEP1EOIVbohP8D/BP6hGSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=bZf8LY/LYgPoRhYujpWWQ3VTrID5Ax2sP+r0Or+8k9g=; b=JiCEzI3UpzfHOWdWLLyo4Ge7T+sPBaiPYwz/nYFgYwo3Jl+k1EgbvGpDKtzhU6d80GX7GZC4KZd4xsNwXOAwXJ/TE8yRRth5TAtk1bpL6b6O+kMVi8coADrEUDgVldpc/aHs79Ff3k1mVkTXiXKaFw/NgdbvOe/YvROZbNETWLCt3wAjyaT3cgfB6b9zd3G2sNDVgcIgmByWGlg41Kl8Iplz5sb5qip3NpoQEN1P7cc2kqBLl3ewkSdMqts+cuR/V4Wqks2ctk8x/ZTIITc7fTwkIAeOgvT+XRDlR9aEPnvL3CO75RUpgJ2sgfPa9ogo47VTfNyZX/BMgf5+Zrj49Q== Received: from DM6PR12MB4107.namprd12.prod.outlook.com (2603:10b6:5:218::7) by DM6PR12MB4548.namprd12.prod.outlook.com (2603:10b6:5:2a1::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10; Mon, 8 Nov 2021 18:39:36 +0000 Received: from DM6PR12MB4107.namprd12.prod.outlook.com ([fe80::98ea:e961:8212:62f4]) by DM6PR12MB4107.namprd12.prod.outlook.com ([fe80::98ea:e961:8212:62f4%6]) with mapi id 15.20.4669.016; Mon, 8 Nov 2021 18:39:36 +0000 From: Elena Agostini To: Stephen Hemminger CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2 1/1] gpu/cuda: introduce CUDA driver Thread-Index: AQHX0NtZpw31DMDY2E+67RD2sxiMXav5/RiAgAAAbKg= Date: Mon, 8 Nov 2021 18:39:36 +0000 Message-ID: References: <20211005224905.13505-1-eagostini@nvidia.com> <20211104020128.13165-1-eagostini@nvidia.com> <20211104020128.13165-2-eagostini@nvidia.com> <20211108103529.41007024@hermes.local> In-Reply-To: <20211108103529.41007024@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0caccc22-9783-48c3-c948-08d9a2e71d44 x-ms-traffictypediagnostic: DM6PR12MB4548: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AubP7JqDaltNAxowJplM8ddzDuBg/kxkgghk/RRUOSo+BllIkNFWLsprFk/zXqXUAsVPZcppFhzh3hbYEwwSBOt4MKlqPTaZ12fz7dJMetW9ptai9bhAZgzGHXGj5ko2OLzk16fQEvrGejr6sVOb+01QrjLq1SfHg0CI28/W5Xj7EICeg0dPus/i9b2C+wHi49IvUgU/VYgqc6NUSKR8RqPAvECTPNnnlI9Uv+B9A6OTe61cGKq6/OwqBZVw6O2GsaQr7XDUy6octQ1BCSJzBIClXyXGvCQPWwfzyCgCc/BHVfcDgrW0QYRymkwBgw/qkcleb0l/nQ+kjc8Wd2Aa4RufpG6gO/EBxLqWdgppsRPtrQdiAbZhsqYi23X/zirRIRV8amXrxLA94txzvHJSRHbojTu3/roImEB0VNCSxV5pxe6vIBaNuRKeeMfQ355isPEDGfzdGlaA+fI3AdKfYsG0Un/GHLXlPJc6Mtg/Ujo0eZXISXfrds09FUnekoPmtu6gMYAjvaMvekSlyktlYtV0VBWHYNwudl+C11YLSvvQiURsSUISMWLHVCC6ABJ0AkkJs8yKeSb5TuJc4wXHze6u05AW5vxQYme9wt8CZrMxncXSbyiOdhMJxqyw3yvA0Z4QiRWW3OP/U5EZ2q5voWpjbFCPBbaa0eMJnfrBfVmGGQ5dEuvzwpvnlSJwn+5rNgAj6GiemRYX9xihupwwkQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB4107.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(186003)(7696005)(66446008)(26005)(66946007)(64756008)(38070700005)(76116006)(8936002)(8676002)(71200400001)(508600001)(316002)(53546011)(4326008)(5660300002)(4744005)(86362001)(66476007)(66556008)(6916009)(2906002)(6506007)(55016002)(91956017)(52536014)(122000001)(9686003)(38100700002)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?P9QsfgLpAqvW4QT9+HUu90DUObZ+D5T73FAhBloseaXhQEOL6zaWzqWa?= =?Windows-1252?Q?QRE0jzeFMWMSHuOb0zkgWzebIq+GiPLXTlKO9PwkIieS/7nls0aTT6ta?= =?Windows-1252?Q?Z0mO2YhxDtqA9iqcxX2XIZtC+aJaJqMAKcI5k/8l2oKvEF1gFdazwbf+?= =?Windows-1252?Q?zrA/OyiCUPF/udkCOtZpDYfeICdhoTGx5098E5pK5p/vup8N/JpSzUQI?= =?Windows-1252?Q?GZQsEYHgo530WFM72eXEpJXWJNhJTSXCgW2mZFG9ww0Gb0OhnbpcnARN?= =?Windows-1252?Q?5ZOKj83uKDHVnu8GDFHik+7tjKuhXFoaww87/JzTcM7NNd7YxF4h3etG?= =?Windows-1252?Q?XJeWHl4hra3ygW709GD644gdERlldqMKMgIhDsE2NG3qBCoVl/kmRHmv?= =?Windows-1252?Q?WvLODWzP8brcNShBzgwV8OP2pZpPMdWCWEJ2GKFm7ACIqMBk6EkIpXEC?= =?Windows-1252?Q?aOPbAoiikyrWSHCMzJBcmDEf4lwxP1Lj4Ez+mpdDi1DiV9PGXQ9sMb1c?= =?Windows-1252?Q?CUIdCP9ZTrZp6B3Zfzv4esEb1G1EOahmnPNMVT4G1zb1tjuDcmgmcbQ2?= =?Windows-1252?Q?GriYSF8RfembgZtqdkPAJFhGrSAIh6wMCAkRLiegqorfKpuvRkP3nnuA?= =?Windows-1252?Q?0YDFjGhnOcUFHZJ2nmiHHHHghYJSwpGhoL2ecXyQU5Nd68BvsuZ3vKLZ?= =?Windows-1252?Q?QHHQevY7PAVaf9qN7jV2hhaxrV2Xu/YEe2KGDP5F2ibxMoOTq5TLt4ei?= =?Windows-1252?Q?5tmWiJ8Gepy6jInenDR+7nHaYKXLWHowK4tiNsvioEp5GPgpZ8M07ics?= =?Windows-1252?Q?LeQC4CMo5qwDZVImKAMMzEziNSYkAWDDy+pMJFr5/0TgI4WbgNkOXh/Z?= =?Windows-1252?Q?g+A18ql6Sko/QsTeZWwuDnQomaYCSYSu04LD0bG7IpLztXivmbD4Ldfy?= =?Windows-1252?Q?6fEegS5do7Lq72RvD5mxquJFB5+nrU5Xo64AVO2MIF0CZAurgIOUPgV3?= =?Windows-1252?Q?fd7XWTIBDLnTOinh4FcE+qONfFJ0SZV0DWNn0mmKLq8pd6zuVbqeYsyL?= =?Windows-1252?Q?kmCHQlVjhEb0AuYYRTVqfO5gK+l1/YuJanXQRLYjZxk7hDf0jlcDvrED?= =?Windows-1252?Q?XInoG80CEY+UzP/B/7IlHHtp5LXRabQ30JMK4PgDMV+TMpNayH8jszQV?= =?Windows-1252?Q?kk/OU0GlluRq5VbfiudBe6KH0DVB1+bXR0FuMg3dDOolYJ9c4A+I617i?= =?Windows-1252?Q?YhCJAhlX2r/rfljuy/XbmiYxjtHqwPtfuUyXvsXeUdz1VWuw91Go8MoJ?= =?Windows-1252?Q?qzPwtC+Uulbxy3kP+vNr6R3nKu/Lt9FMv1/b0BbC63P1B+YDXZczh/Tv?= =?Windows-1252?Q?8qM1FvNHzmG+u//Hy+y84Ty4S5sDr/GvEtcdOYbev7Y2/MC2MKHhDgsJ?= =?Windows-1252?Q?Pe7L1tAw/DkfXPqS7t73tOQqz7bH4rTQX0WixlyPzZmkDWcoWriMI5fJ?= =?Windows-1252?Q?G6UEGZ/fE6pmjq+TR5OxJuEOndYzDTTTeV1mlCbV1IAei6Hxs1CTFvLn?= =?Windows-1252?Q?lEb2zxBthSFTwmu53gzJ0EUek0noeBNLCg65HsNBpoM1ABbMkywEB8E9?= =?Windows-1252?Q?RaVWsDPBgGJJnPkBWnEDxfOPtDeKvFm5TDIqHUblbVd1t5fy9MYDle0W?= =?Windows-1252?Q?n7kanHKQFLCxtqrWsPg/0UmqHRoDMt26cwC8rleaLGSnNNVHUPZuf+TI?= =?Windows-1252?Q?m8RUYFX7BJV9d7YSDggHbNAhfZ/li5GEIU9pj9A/?= MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4107.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0caccc22-9783-48c3-c948-08d9a2e71d44 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2021 18:39:36.1171 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vAbJkzWfKKx6QoK1ToC+8WVmIDFEsEH4hgjDG4G0e5iWCZacmlP0L4o1FAlMktk0Kbjrf4q4NIsOgE57wtzzJg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4548 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] [PATCH v2 1/1] gpu/cuda: introduce CUDA driver 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" > From: Stephen Hemminger > Date: Monday, 8 November 2021 at 19:35 > To: Elena Agostini > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 1/1] gpu/cuda: introduce CUDA driver > External email: Use caution opening links or attachments> > > On Thu, 4 Nov 2021 02:01:28 +0000 > wrote:> > > +/* Single entry of the memory list */ > > +struct mem_entry { > > + CUdeviceptr ptr_d; > > + void *ptr_h; > > + size_t size; > > + struct rte_gpu *dev; > > + CUcontext ctx;> > Not sure where these types CUdeviceptr and CUcontext are coming > from, but the code looks like Windows style not DPDK or Linux.> > Please don't introduce CamelCase typedef's and never typedefs > for pointers. These are CUDA Driver API specific types, I can=92t change them.