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 16C73A0540; Thu, 7 Jul 2022 12:10:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AE5BE40A7B; Thu, 7 Jul 2022 12:10:07 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id D8880406B4 for ; Thu, 7 Jul 2022 12:10:05 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 266NFiik009486; Thu, 7 Jul 2022 03:07:56 -0700 Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2106.outbound.protection.outlook.com [104.47.55.106]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3h5kwj21km-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Jul 2022 03:07:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gPuAvbKEQ4MG/yqi5I1Re/pG7wKTdfSCkkOM5EiufmIVVydJnonwmobGigXde63xiQLqqX0KKLg3EB8Kx+uLYD5LBu9l1LEen5qEWYbC/0TBKi4UFKaAHpa2xDDeELy44NBIvdurYEjWyD7O25qEHkemIfbgzOuZQIjWGi1QPkTyBzAyvCPeJztyPtsGrwH/GTF1+Vx3M3giDJoIFjeOglZKxewQ50RrcaDpXDPLGXlsQ0Dn5/yheIIbqbAcDZvTA/lvfZQuNW2Dd/jdcODc4oivRzp7MlFJ7sWWXyFNJnMyerX5YEppuZsqejUZDorkjJclGBrA/N29ZdXVo9qLkA== 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=dp5gdd79fZHnGQS8aZhfVICZpkFQStxlGU5uHZupZ1A=; b=Rp+IWrTpcvLW1oyHPJYJ8b8JRhSWMtOi+e/Ir0J9jHnSlKcWlNeuBDKHYD3LI/ApUBmr9ZlQLhrNC2aHTbsLKWun1H53fiOH9+PKY+rk5NpADxO5gZwzaTqc7g6+HqhrEo3TKXbMplAQ0m7zH405CwR7deGA6pT2aon4JGsTIZOY/abINyv+EisZHxnvsFmPgBovDhT5UwpmJAZmt5HAFdeDUnTMHiDQiHHbom28McExpDGa1JyNWjbcOAGgkBiyi/mmOnAEap3YmVyFKfkamx01YAdS3RdKu1U06z4s3v1Tf5fAtmqlcva31nyvXmYmkGK8vTVl0dp0iczoYPCfjQ== 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=dp5gdd79fZHnGQS8aZhfVICZpkFQStxlGU5uHZupZ1A=; b=VZxrPJWYU8FFVd5ECTo/KnWxBSjijH9dHplkrEDmB1lLvDopZ6fgxknjnrVvbXS394iXASrP/fERI+LI+Zb2yqC6xK3aMD76+HkvhQzBhqbVIa77LaR5u2RJMlwaqYZ5cnvMKwQwCNtDqyi+BBNhyHBECneg3mb7HlKXGSIWL3w= Received: from CO6PR18MB3860.namprd18.prod.outlook.com (2603:10b6:5:34d::12) by CY4PR18MB1670.namprd18.prod.outlook.com (2603:10b6:903:14e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.16; Thu, 7 Jul 2022 10:07:52 +0000 Received: from CO6PR18MB3860.namprd18.prod.outlook.com ([fe80::20fa:2630:113c:4ee]) by CO6PR18MB3860.namprd18.prod.outlook.com ([fe80::20fa:2630:113c:4ee%7]) with mapi id 15.20.5417.016; Thu, 7 Jul 2022 10:07:52 +0000 From: Sunil Kumar Kori To: Sunil Kumar Kori , Ray Kinsella CC: "dev@dpdk.org" Subject: RE: [PATCH 1/2] doc: announce region based device mapping support Thread-Topic: [PATCH 1/2] doc: announce region based device mapping support Thread-Index: AQHYivaAFwpfwrLHMUaraBHXTFPEG61yvJ6Q Date: Thu, 7 Jul 2022 10:07:52 +0000 Message-ID: References: <20220628135339.2882914-1-skori@marvell.com> In-Reply-To: <20220628135339.2882914-1-skori@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a12108bb-cc14-475f-8913-08da60008e12 x-ms-traffictypediagnostic: CY4PR18MB1670:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: eDAgdlTB42b/JMPfedrVo21BtOHVDlk5zb3B4FMU2Vso3dYa8uVEbjtYzZShExLN77KA3AaeD0nE0bjV2fblpShxEdQuMfKzIeJ98gfx55GWjL90EiyUAUE2jyrBI7+O+Q0axyq81DP8WY1MjxtRO0kXLod4GIDvMY0iOV2t8MtfuvjexA3dHTnDo8Q1mLFF9Fcs3gjTeQ8g3tz+55v4zszf0ePnZAWwJRnrL7ecJUDFqs8lzpiIGZ4640fhp0D1nRWQdPCmWYde8Od0Kl+56gxRtXvC3N6UUBS/6JzShmXWw1VVhaU4rtEFN97Omu9j+kDnEmKXkUKyxf9zvCeXd9yrlW4+ncelGKrFwv4uX21w50Yu6X9HZt6Q3uGsPJz4p8/v8ViOMIG13WEvJNBLJt8svy7JsAoudJpbS0nkuguO9L60ElPctOJMcEQf7d4R3cStSHMB7x65Nr43qjn1hU07W2+Pn2HlZXA3kcofFq0qp5KA29hSySum+eMkIPLfEH831c8ESx0JRL5uM2iirMcE4hRUL4JgMj5L3ptCJehc1EPPibA4WZ+ddZxt+QlOGbWpLWiUXa37uQNcZOkLOkio16TaokPV93/vGV3AzNU66oocmnM26Ptr+tzw8FpBG6LWjN3siqZ3nY6haXgHtsWJv8xM7uEXJPdNF48piX9KcaJNm3YxGijFGmnZzesZ0oFO6x7/AzEXx5+E9lEdMr99J3GK3lGsCnCu7emLOPkmB3LXjzZPnEgEZnmvN5lOySGnHE8VnFCaOIw+6jFJXbsRU8ghOwccd8ebX2L7IlmnLaALtMC7JPP/MkiAkcQM x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB3860.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(136003)(376002)(366004)(396003)(346002)(76116006)(66476007)(8676002)(186003)(66556008)(64756008)(66946007)(66446008)(6506007)(53546011)(55016003)(110136005)(9686003)(33656002)(83380400001)(26005)(4326008)(38070700005)(122000001)(71200400001)(478600001)(52536014)(7696005)(41300700001)(38100700002)(86362001)(316002)(2906002)(5660300002)(8936002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?lWShb2RdXFLmpcucQwmp/Z9j+skJpC/J2qpa+XaHtKfy/kH+2nhsNOAOEs1F?= =?us-ascii?Q?qdNbtIcIZ1iAiJO0nqKR8135htIOYE1BIatkN4GGPNKX//RXxoP1ZQ66omu7?= =?us-ascii?Q?vvGmaIxZv+W2cKRz9OsELozs67rWfP93d1haf7g614TbsLxSbWZ6UQHviZtR?= =?us-ascii?Q?wG8aTDuCd/bQwXM89SG4WfHr+34WNlZEmRQI3/n5wcIU/7UC9SCVyv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sSFLerZSeal9ZiKcLisbbily0C/lzMu?= =?us-ascii?Q?55n7hoCzzIohdq74kCeqpLwrhjwEBjuENqd19KrkSO7n1+TcLG/mbOw11XMP?= =?us-ascii?Q?o5CjpORlsPEJUuHfbUm5AVIh0w+Ovmf2xW8MB9+ZNpqxfFAjM8zuTWlKOW1y?= =?us-ascii?Q?wTnULcgVpVHfF9JE8IpqfJ+/xkaUBBaQoJOP8ZEucdgcGOlWJrW2tdf0IXK5?= =?us-ascii?Q?8dm869iWCHIU62sWuN6AE4r5RJ6PM6/VOuORc6wUElsEG0ACePe9gL/z0Ok9?= =?us-ascii?Q?+Sos//unHBGIBD54AO4SHNkMJmDIjQn+zJ9p20aLzgqAE3K2V4+ksnuCr9YE?= =?us-ascii?Q?tj7S2gYcVOdKuG4jg/IRxE9NJbzaBvCeL0xDLSqGOpyUbMDBO0wPXUG+2Bkw?= =?us-ascii?Q?KvKVd0y2KNUl2JH0vBd6OCIel5GCQZh9D7W3D7FabgNjB9MSvuzqoT7U6TZ4?= =?us-ascii?Q?Yaw19YA2CKmmezd9mto=3D?= 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: CO6PR18MB3860.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a12108bb-cc14-475f-8913-08da60008e12 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jul 2022 10:07:52.5567 (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: yTHvXieW5Vun9mZNK3SWiV4sVJUI/XYl0k7dVsyMiW8mNZ0CdVS4aIoqIBeWxO1rIl6ipT1pHLHe7QgOB+LkfA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR18MB1670 X-Proofpoint-ORIG-GUID: Q38zV3GsPARuY8mQdAqLX9UUDjczTQx6 X-Proofpoint-GUID: Q38zV3GsPARuY8mQdAqLX9UUDjczTQx6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-07_08,2022-06-28_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 Please look into following deprecation notice and ack if looks okay. > -----Original Message----- > From: skori@marvell.com > Sent: Tuesday, June 28, 2022 7:24 PM > To: Ray Kinsella > Cc: dev@dpdk.org; Sunil Kumar Kori > Subject: [PATCH 1/2] doc: announce region based device mapping support >=20 > From: Sunil Kumar Kori >=20 > Adding region based device mapping support, which enables pci device to > map only required memory region instead of mapping full BAR. >=20 > Signed-off-by: Sunil Kumar Kori > --- > doc/guides/rel_notes/deprecation.rst | 13 +++++++++++++ > 1 file changed, 13 insertions(+) >=20 > diff --git a/doc/guides/rel_notes/deprecation.rst > b/doc/guides/rel_notes/deprecation.rst > index 4e5b23c53d..8800a3eb41 100644 > --- a/doc/guides/rel_notes/deprecation.rst > +++ b/doc/guides/rel_notes/deprecation.rst > @@ -125,3 +125,16 @@ Deprecation Notices > applications should be updated to use the ``dmadev`` library instead, > with the underlying HW-functionality being provided by the ``ioat`` or > ``idxd`` dma drivers > + > +* pci: Update ``rte_pci_device`` and ``rte_pci_driver`` to add region > +based > + memory mapping support. There could be a requirement to mmap specific > +memory > + region only. Using this mechanism, pci device can be mapped for > + a given BAR at a given offset of given size. > + > + ``rte_pci_device`` will be added with following field > + ``regions[PCI_MAX_RESOURCE][PCI_MAX_REGION_PER_RESOURCE];``. This > + field will specify the regions which are mapped for a given BAR. > + > + ``rte_pci_driver`` will be added with ``rte_pci_region_map *regions`` > + and ``valid_bars[PCI_MAX_RESOURCE]``. Using these fields, driver can > + propagate its region information which are required to be mmap. > -- > 2.25.1