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 B740942483; Wed, 25 Jan 2023 11:41:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D09B42D3E; Wed, 25 Jan 2023 11:41:42 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 023DB42D31 for ; Wed, 25 Jan 2023 11:41:39 +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 30P9EfIn027530; Wed, 25 Jan 2023 02:41:39 -0800 Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2169.outbound.protection.outlook.com [104.47.55.169]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3nb0hp8e7k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 25 Jan 2023 02:41:39 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lDOrqN4fLgj8dAj01vj5KqRKhA+LHd9rHe3GXlUrqKWX4gKEVd7StKcTU9+yrsiQ8wen2AHQ/r3546ZAemoMScR7tFoeUiVZUc6iS4tSheWlR33Kvky/vycn39F2GstlRIytWDU+XsnY1Z6x4h7v140RKGzJGXtxQg6jO4QJrDwAZBpceHLnNxSE5ivpdclsoOoK5NiDRIqkYYb5ROQhSKp7pOklvWUSWt9XG8ALmUHZRhlsvbzT82rCTwVZZ2UfViMTXm+oXEMSPNAcCiA4AVlTInlUFm+p/Zbt5iUSv4eEIsTRC8c2ICnYA4zs6pwpJ2XI8IkD4Z2iXEZVA5QUVg== 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=Mf8OCrzg5jdVrm8KllWftJ/lUFBE1dkJl4yUb3PgAmE=; b=GNlnjTxH5YIa224tKDAw5faXsFQqNTkPdu4KaHggVnFLSjsxhcFr5eIxZsQRfe/A96we4Dxux+pPljjlrbtNOVF2QDK5gPTaDvP9S5lQQeeIHUz3zKBVaJIM4Szm5Ls7TkRKe7j2XmfC+dOxd6siIn3tuLyO2eIRTgcZIlnp7oEnSYDplZAcmmNNXcFxitKVi6/bIsRxObUjBrp2l4zePDJKXCOFzEbuule+NkXe71GSur2jH5hZXibUx8Sg7n0y7V2WmeEQT4EEjg5HkJdUUvXZbwQQj/s3WoDex0vZULxcVxeid0RCJb65C4vDS/LybdVrZ076+QzR+dx72khjYQ== 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=Mf8OCrzg5jdVrm8KllWftJ/lUFBE1dkJl4yUb3PgAmE=; b=DEo9ju7qOetCm8HSuxvfgQii3EQcp1gBGjAIVByLPFb1uxtkOelDepMa8wXt48Wj7iXdcYZW/VpHBOGlVxVzUykUoSBbbfFFpOEPs51y0diynM2iGwUi8sUHrEPWxnjx1KVlumaWgdktG9i8FKSq3t+DRgUadRLU1zCU2+RAiO8= Received: from DM4PR18MB4368.namprd18.prod.outlook.com (2603:10b6:5:39d::6) by SA1PR18MB4551.namprd18.prod.outlook.com (2603:10b6:806:1e2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.33; Wed, 25 Jan 2023 10:41:35 +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.6043.021; Wed, 25 Jan 2023 10:41:34 +0000 From: Tomasz Duszynski To: Tomasz Duszynski , "dev@dpdk.org" CC: "thomas@monjalon.net" , Jerin Jacob Kollanukkaran , "stephen@networkplumber.org" , "chenbo.xia@intel.com" Subject: RE: [PATCH 0/2] add platform bus Thread-Topic: [PATCH 0/2] add platform bus Thread-Index: AQHZMKhxHUOb/vm92UyAvalumZxpka6u8QSQ Date: Wed, 25 Jan 2023 10:41:34 +0000 Message-ID: References: <20230110234642.1188550-1-tduszynski@marvell.com> <20230125103311.1249988-1-tduszynski@marvell.com> In-Reply-To: <20230125103311.1249988-1-tduszynski@marvell.com> 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_|SA1PR18MB4551:EE_ x-ms-office365-filtering-correlation-id: 53aa6a9d-216d-4a2c-1038-08dafec0bacc x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3PmSVe972Y6PdJDB0+OjtN70+sKoNzEqAcW9NMzAXh1rtjj/psGMcaLqui0IJYfZdlUJZB44cxhJ7I05xw7OflkCo1SOqjnhK/JJ5ufPw1tAFRSullq3ZbHOQmoJDIuyUJhwDotpnZswE98vmYTrpOxfQdrsMpmiYClSWNpZMaXH5vrHaD/0GHUjtmj5tup/4Lgske2K/A857kRnXQqDdhFcoC0YwXiHvriAl1mVnQcK+M3kLkYhjBG18LZy3c6gFty4H+PGQeI3Oqs6i9spI3F7htL5IZjYChrH2nx5m6NsU/IEa+Vrj6fjnTKnavak795eFHOGH9jbpCry9qHWjFgbxtZdiwPG8zFihBh0Gxe4w6HqyrmzBzjwmUGo2SyyF9i13ImguUpNFcB+eFgIPh7u7qp5EP6uxaUsPGhe25/vUKKizLZxtEWmvxEsN32QF0x/XPNyENuwT37tbPfzr7Fy649ojMxbTHEdxf+SMqc16j/2/eiYr4osk8MKt3DerIZdzbp1uaZsU2mZxLrQdVhON7Pmz1leFT3aqcOivKJjBO8RYC8+511odyPNo3b55QW5DrFDUIDrNVRhuE5DEETl9xmYJ8FZ4lKD0jNCFEyoTeaW68URkwGMxqNguutgAv97wcux1tp6JN/TWRDDY0e9tt2WpeyR+Lphf3Ii73NZG4wLBvnurE8sFbmn6KZETrKOsWR4HZ4/8mLIhQeZ1A== 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:(13230025)(4636009)(136003)(39860400002)(376002)(396003)(366004)(346002)(451199018)(38100700002)(4326008)(38070700005)(86362001)(2906002)(55016003)(6506007)(76116006)(8676002)(186003)(9686003)(110136005)(26005)(66556008)(66446008)(66946007)(54906003)(64756008)(41300700001)(66476007)(5660300002)(52536014)(33656002)(8936002)(83380400001)(122000001)(478600001)(71200400001)(7696005)(316002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?zeC2bbi38HceFGt4DNwB4xlUa5j5SBVX3jqvocNRsuMXaJNIQsaKSVezAjEb?= =?us-ascii?Q?eXzASEbiivObbEr0Ny7d2j1888I+ILiF2w4vjp19TDspVp6g7l/xQtg1WFlF?= =?us-ascii?Q?EX6khpTdAzpTebCJlrU2RbUZYZp675H+A51izEH1wSoMz0G7RakxEZrKQSvd?= =?us-ascii?Q?LjFFhIc5iUpq1+xyvLwXQKDZlu8CNptZujg9EqL902JcHyfHGuDvm3IT4ldr?= =?us-asc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WMeBOqY6ZwCl?= =?us-ascii?Q?otJxnCWngE7HPsfeXE7grt5v6ZVdXuB53vnpNMWKSPIsTIkUJjqI6U/zzS1h?= =?us-ascii?Q?lozUR/4aU85yt3dlndpS8t8eF5E8QQKWmhIGGfAFDNTMB+4lx/FaDNJU9eGz?= =?us-ascii?Q?toiAU/RdH5gCSsGFponoMncqGWzM91kzEP2yZ5OAP6it6zZuv6Lk8ZU6GfSm?= =?us-ascii?Q?2m9DUFO6m89e04ZczfYsZfFNitwcZjEu8d7bXK+W/KTy2xPzWynjXlWm1cCd?= =?us-ascii?Q?t+rzM6U9jDc6XciaNTHmmMJq7kUiEd2AbARgjmxpXUwyBnGWw3ucuRWUGMJz?= =?us-ascii?Q?rSpn1ilAyqphd74qvhpqmf9i8FdZt/8YVUUlTUTUHctI8UO+vSECfYoE9Zgg?= =?us-ascii?Q?tiPWNMzLGGT7iq3aBSOmLAKKD//mKwkmlv4Rfmr8KJGMjpjhebItsA/vbWtc?= =?us-ascii?Q?mAlRO95GCkJ+t7fcdzFHoohrFWxpyFbHGK8/9Cfh?= 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: 53aa6a9d-216d-4a2c-1038-08dafec0bacc X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jan 2023 10:41:34.6983 (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: P0vDytzIy3Y9sCDa7johSE1FqybpeuwwbDFhAcw0+vE5T9MsUZ7FRAODXyEn+rvBs4YIK30q1YqglhK+JM6WPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR18MB4551 X-Proofpoint-ORIG-GUID: hwKYiEWldCPOogDOkG4WzfVHHmKQ1sBj X-Proofpoint-GUID: hwKYiEWldCPOogDOkG4WzfVHHmKQ1sBj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-25_06,2023-01-25_01,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 This was mistakenly appended to this thread - ignore it. I've just sent the= series again.=20 >-----Original Message----- >From: Tomasz Duszynski >Sent: Wednesday, January 25, 2023 11:33 AM >To: dev@dpdk.org >Cc: thomas@monjalon.net; Jerin Jacob Kollanukkaran ; >stephen@networkplumber.org; chenbo.xia@intel.com; Tomasz Duszynski >Subject: [PATCH 0/2] add platform bus > >Platform bus is a bus under Linux which manages devices that do not have a= ny discovery-mechanism >built in. Linux learns about platform devices directly from device-tree du= ring boot-up phase. > >Afterwards if userspace wants to use some particular device driver being u= sually a mixture of >vdev/rawdev gets developed. > >In order to simplify that introduce a DPDK platform bus which provides aut= o-probe experience and >separates a bus logic from the driver itself. > >Now only devices which are backed-by vfio-platform kernel driver are suppo= rted, though other >options may be added if necessary. > >Tomasz Duszynski (2): > lib: add helper to read strings from sysfs files > bus: add platform bus > > MAINTAINERS | 4 + > app/test/test_eal_fs.c | 108 +++- > doc/guides/rel_notes/release_23_03.rst | 5 + > drivers/bus/meson.build | 1 + > drivers/bus/platform/bus_platform_driver.h | 174 ++++++ > drivers/bus/platform/meson.build | 16 + > drivers/bus/platform/platform.c | 604 +++++++++++++++++++++ > drivers/bus/platform/platform_params.c | 70 +++ > drivers/bus/platform/private.h | 48 ++ > drivers/bus/platform/version.map | 10 + > lib/eal/common/eal_filesystem.h | 6 + > lib/eal/unix/eal_filesystem.c | 24 +- > lib/eal/version.map | 1 + > 13 files changed, 1053 insertions(+), 18 deletions(-) create mode 100644 >drivers/bus/platform/bus_platform_driver.h > create mode 100644 drivers/bus/platform/meson.build create mode 100644 >drivers/bus/platform/platform.c create mode 100644 drivers/bus/platform/p= latform_params.c > create mode 100644 drivers/bus/platform/private.h create mode 100644 >drivers/bus/platform/version.map > >-- >2.34.1