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 5A1DE423B4; Thu, 12 Jan 2023 09:14:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 51CBD40156; Thu, 12 Jan 2023 09:14:25 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 6E661400EF for ; Thu, 12 Jan 2023 09:14:22 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30C5bee5024633; Thu, 12 Jan 2023 00:14:21 -0800 Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2169.outbound.protection.outlook.com [104.47.57.169]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3n23b2h9hu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Jan 2023 00:14:21 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UvS6aELmAoCi2Pd+J9I2CYT2wr4+30LjSmbKAJw6bgmqVfBafUWsA4acnTeWGce5HlvMAvpCbuSYKQGonl2se3NVDzDZXdBvHFLDR8lViksWQMgRqoXYzKiO8fwiPrb22lXh9Vpmkl/ipkVIf9tkLnK/xqCXxZhPCaOg4pK7VfThdOz1Hyhl1b+L1O5B3Wj7+2fAr+CDKRhXZfQpBlYDOmkQgCg87sliEY9GTMIqxmFdBjVC7XTyZCfHvgupZwtJKN6Y1XybUBRAiy8ognFytkuflLWDiLj2iK9+ff/ut/y1d3P4l3/lkj6C0FtMGs9Psq4XYz6dO8rNTt+FWTagPw== 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=Nz+CsJxPsv7lPaAlYRlMSPkOk/Cu3jlLnZmQXhihMtw=; b=AXqPumMdE1/bAttDxhKyZUrSEiC7kpnKYvfGXB976MHCoYOwyrKjaNUAQegCugaH1m9BJ/72DHwvx4kuVzE1wZWlxh/muNnspl0UITiArSTIixB/OlNTueaVj23w0EpCHZB4M5rfObdsnKsZp0UrCkAy2lOgF2qaIbA1Eh545E1OyEW83KCyyOTusikaaIOAcbBw0FbaNwPJWALx9JLKYqrLBsHhLlLmOTkuSCTAmXEHrJLOByPxzB1d1UTHksqGMTV01KcTVISIwPuUO1xgh5lDgaSNMIYJoRWGraq46PiQPaccBC9NwqcO1N5OcPNYI9xGjowjs3P5/NtcUyrN1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Nz+CsJxPsv7lPaAlYRlMSPkOk/Cu3jlLnZmQXhihMtw=; b=RROg6fsiL3nMoLUSwnbK0+uNZUFGi5uMChCc6Qrw6rL/jXvDJDwkH48dIHcfAV1OJSYpSB9kTuWTs99rjIeQoShLFQgwyMG4lUeMHL6qb5VL4rNbEB0/E1q0V6q3yDoNMscBLqvegEgPSRpwQ3f1ulUZAq8prAoXhEANBV6gA8k= Received: from DM4PR18MB4368.namprd18.prod.outlook.com (2603:10b6:5:39d::6) by SN7PR18MB3999.namprd18.prod.outlook.com (2603:10b6:806:107::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Thu, 12 Jan 2023 08:14:19 +0000 Received: from DM4PR18MB4368.namprd18.prod.outlook.com ([fe80::3117:f51c:37c2:fa05]) by DM4PR18MB4368.namprd18.prod.outlook.com ([fe80::3117:f51c:37c2:fa05%9]) with mapi id 15.20.6002.013; Thu, 12 Jan 2023 08:14:18 +0000 From: Tomasz Duszynski To: "Xia, Chenbo" , "dev@dpdk.org" CC: "thomas@monjalon.net" , Jerin Jacob Kollanukkaran Subject: RE: [RFC PATCH 0/7] support vfio platform PMD Thread-Topic: [RFC PATCH 0/7] support vfio platform PMD Thread-Index: AQHZFlyVjoNL3Fq47ECxJ4jCfYVgaK57DQwAgB6Z4mA= Date: Thu, 12 Jan 2023 08:14:18 +0000 Message-ID: References: <20221222232436.643514-1-tduszynski@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR18MB4368:EE_|SN7PR18MB3999:EE_ x-ms-office365-filtering-correlation-id: cee33204-aa69-4227-83ba-08daf47500d8 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kn4+NyVg+VSKYcQlJJB2CXQ/dnilSodqbNOWIwUCwnlHmuHl/SqxOXsr5gWALJ3tkpHo7HhjpIqhLXcpg873RJB51RFpzIGQpyeIi4GUAZ5YjvMGhMrS9gkyqYdmfpBNuKKeV+svkWvW4t9xCeovZkA4/dnuwCTIWFSYy9RgAM1uryzjKkJkbIInIQL2ACHTjX1Aci+dOHAPSjdPG+bw0YIzgjAAgLZsduQa6uF++NzJuVve1eS0idVnQ3Ftjk3XiCZcwuWghpCKH/9+Uz9G5jwnrQFtUisbRAa3ipU4WhDujJJ1yBz0zOLwfLsR+zOxVhF4ePPs+cCpf4zvxUQFULcn9AfQbAWlSxtwbESl2/haJK4dPLENc1/RHmQ+3jiHYgicynSyK8msqk7eelJAoafQ6DrORdJ//qrTIfnSKsl5b4N/4ZIIyCRcnUYp+Gxr6V1uYByk5mQF1/UTrvXlrIA+SE5iTXxXnGBltvRs7ioRA4Yw8X/PuZvweaJtURk37bzKuRjT1ks0TC7+7THRMeUAQ0qAefaI/ouyz3WoPt5luQWZ6N/YIgNinsHSAQTELUk2Sxf2T81xtx4SDoULl7xeNy2IgK3d5yxZ3KF7lrisYU042pT9TGmh5iTg8D8za+UTvanY114FAv2oYO96Cso9E82HVYinsYTDuiCF/U81iBdwlg75Au7aWZ6+z5wvl894QklFGRR3N+S7z9tvBDiImGupu4uZcTeqia8CoKk= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR18MB4368.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(346002)(376002)(366004)(396003)(39860400002)(136003)(451199015)(2906002)(66899015)(83380400001)(33656002)(478600001)(9686003)(66446008)(66476007)(64756008)(55016003)(66556008)(66946007)(5660300002)(52536014)(8936002)(107886003)(53546011)(122000001)(26005)(186003)(6506007)(7696005)(41300700001)(38100700002)(110136005)(8676002)(54906003)(76116006)(86362001)(966005)(38070700005)(19627235002)(316002)(4326008)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1Q7DOeKOZwwy/PPQ5vURFH2OKgbwvAIEmvYnuE99PaVJqpcK9GnWIh7yhldz?= =?us-ascii?Q?dCqueXgS2keuHVgI7Kt2M+rUCpmJy1tsgZ1aV9hXqMN7e9uCKB6XIu35pzhs?= =?us-ascii?Q?18ufQpBgEaV9OpCcdNBWPFzhhb9kFNNOtYK1EeXp4yWP+txtZjljE9Ehpm79?= =?us-ascii?Q?3QHMCKYJ8LCe1o6x2/+qwjjhO1hjmkDkeIfWU8tUrr9sOFiAzzIl2w3kUSm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Jk0GopCeUPEoWNxglVk/lHDuQisGLh4ABz?= =?us-ascii?Q?9QpdTh8lJrJePw1ycHj7QaKK4zE0ERfSeVsCpA8w0I3/TW9lecd31EkEAPre?= =?us-ascii?Q?VU8WUtwclSvAtRtfTqp1YPIb78XF2ZUlRzuRo3AbuKFsPh2XeDrJDdsBr4lV?= =?us-ascii?Q?ez77M/tIHk4hn00NegZGtFsQWzR4aj2K3vizZ0eruimyy6ij1tLW5FnBqzze?= =?us-ascii?Q?lLV49Da+M2IeGvO6Xyimg8G8IRQnSVnYsrNlpWEt8km6P7POVpVmPoFNRzWy?= =?us-ascii?Q?/nDemUFkMz2aeI0q/3KRGkKVGJ3vvDld6BYSbtBTUfaEqKmy7q5/tSHd7MWe?= =?us-ascii?Q?f3E8nhZVXGfFgt6O+ASA8OmxwsDHy4BiPLzd2lt5znJJf9kj994vPRaP9eTJ?= =?us-ascii?Q?qDF0qnh1nFRZqUz8BhWwM8WIzV0YeEem8famfmqk5ttNenk4gEkIbdhVUH6j?= =?us-ascii?Q?5++kbV94HgrvYc13kF7CeqXKl9O3ki/uc904oQ41?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR18MB4368.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cee33204-aa69-4227-83ba-08daf47500d8 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jan 2023 08:14:18.8418 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: kyy0YRyJGn78tjtNuiy5JK2XXM/mLDtccWKkWGiyuhyXDlMWDq22MGFcCB84GDGykpsXBjUSZjjFCOyIQ9T1Gg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR18MB3999 X-Proofpoint-GUID: AHmwODKoJQLfIRFDFjT6K_SbkYgj0BRs X-Proofpoint-ORIG-GUID: AHmwODKoJQLfIRFDFjT6K_SbkYgj0BRs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-12_04,2023-01-11_03,2022-06-22_01 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 Hi Chenbo,=20 >-----Original Message----- >From: Xia, Chenbo >Sent: Friday, December 23, 2022 8:05 AM >To: Tomasz Duszynski ; dev@dpdk.org >Cc: thomas@monjalon.net; Jerin Jacob Kollanukkaran >Subject: [EXT] RE: [RFC PATCH 0/7] support vfio platform PMD > >External Email > >---------------------------------------------------------------------- >> -----Original Message----- >> From: Tomasz Duszynski >> Sent: Friday, December 23, 2022 7:24 AM >> To: dev@dpdk.org >> Cc: thomas@monjalon.net; jerinj@marvell.com; Tomasz Duszynski >> >> Subject: [RFC PATCH 0/7] support vfio platform PMD >> >> This series aims to add support for managing vfio platform devices >> from userspace application conveniently i.e without going through the >> configuration required by vfio and opencoding everything. Instead >> convenience helpers are provided. >> >> vfio platform devices, from the kernel standpoint, are ones that do >> not have built-in discovery capabilities and are behind an IOMMU. >> >> This PMD is backed by both vfio-platform and vfio kernel drivers and >> ideally should give access to all vfio capabilities. As of now, access >> to memory maps and DMA are supported. >> >> PMD requires platform bus support [1]. >> >> [1] >> https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__lore.kernel.org_d >> pdk-2Ddev_20221222000106.270619-2D1-2D&d=3DDwIFAg&c=3DnKjWec2b6R0mOyPaz7= xt >> fQ&r=3DPZNXgrbjdlXxVEEGYkxIxRndyEUwWU_ad5ce22YI6Is&m=3DD9rwjUu4gMDK-DA_Y= vF >> eU6OBKRUXqZVQ7Nfg3O4xldhUMqQsXQx4AM9La3PpF1Bd&s=3DL93CKF1oLmgSm7z50nWbVf >> 4FFDww_noCSxOENlbfXGY&e=3D >> tduszynski@marvell.com/ > >I have not looked into all details. But just wondering: why not making thi= s part of the platform >bus. This seems generic and then vendors can have their own platform drive= rs. > Valid point. I'll rethink current approach. =20 >Thanks, >Chenbo