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 BDAC3A0543; Thu, 7 Jul 2022 14:39:20 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF227410D1; Thu, 7 Jul 2022 14:39:20 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id C00BD4069D for ; Thu, 7 Jul 2022 14:39:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657197559; x=1688733559; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=YBsPCLB+1iAp4yLWkw4R5/bR2CGf8hj1j4RwQPnflf0=; b=Q4B/86WQNoBLnN+M1zaPzpluoNwaEUeoFOqSF5ME+9dZtXOLMQzYWa4/ p3i9zIepstiz9CzDbrBxgLqH1waDgm/xEJeFaIv5YH9kojHUDHXE2u7jN VKXB4JT9VeX8yrwdEgCgb0wltkrpmHtABgNTVmrvvUuTdFQvck1ddMbEe fu7VkWKThprsLsnKKjN/MwTrj/ezmEWsJstqw/9wD6cC4/SOSEj/ZWEdG iu5YQYMjxgqRfji2PI2VqIvyrf4IR5Sd3dUo/5/cE3Q385QZg/w6Ryz/5 ea9r3C51RFeNCgS95fZYv3IjRh05Ay12d2ukkHtWBpsyFn3j536NkA3ac A==; X-IronPort-AV: E=McAfee;i="6400,9594,10400"; a="284754874" X-IronPort-AV: E=Sophos;i="5.92,252,1650956400"; d="scan'208";a="284754874" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2022 05:39:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,252,1650956400"; d="scan'208";a="661371718" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga004.fm.intel.com with ESMTP; 07 Jul 2022 05:39:17 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 7 Jul 2022 05:39:17 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Thu, 7 Jul 2022 05:39:16 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Thu, 7 Jul 2022 05:39:16 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.102) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Thu, 7 Jul 2022 05:39:16 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jfYtf/apnWPnon3Evg60Ak+7v8Of2s5yyUsjgFsjX/RQGVfp8l6xn835bA9KwQ0pG+Qkb35bzPX5ny1lQ49J0bRBwvlPt2apRb/ne/eG2Qfs15mJfNfK+dPspQLt6/gNBaYQUszvTVGnbZKO19bW+MtbsOUZqmIyXtHVcMsX+kNvsgwFpynoX4LfFby2KG+W+hVmbLeXiuPM7gj5qnnRRuMvujmJBU5S9BWqLOQSFwyvPnhSONcplfij6gi23nU+W78z9gK3fJSktYVjX+fjAFaJrAk2WfH19fl641J2LhZ5VSTpaLKFABv+WS5JAVA9dArHpf48SXk+23NrNv0xmw== 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=573Urn6P48orW5MP4UEzElBk2cueuz5yqWj1N/hdhZ8=; b=hKpaWUTxw8bsBbIe3skUfF7qKbSKYnF9ioONZ/mZG2bbolfWywI8U0na9+pzrKFPIFpIEkWbUg3F5+kWeTTU72bIWoCNiiD6OGOfXuwUwRIi1a2QDwBZw94TYx62jFQpddl6UdiP2ZwfL1pTy5pTsnPg3MG6+ezoPAHTJjvTuXu+Mu1cFFkBLNoCRvQ/fUdLaKohHRDPJhL1l83t3LFb4uoFIgRmgAhfn5GKYp59bvvVTPvRM3qAzb8EkOVBaSTxGFcBCRtkhCgQKkPeiAZECNGz6GV/C+wfhlZ5o2dcqefXJupGxZL1gNENf7v/34FGxORHrD2q/7Qp112Mgq2bzg== 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 Received: from SN6PR11MB3504.namprd11.prod.outlook.com (2603:10b6:805:d0::17) by MWHPR1101MB2175.namprd11.prod.outlook.com (2603:10b6:301:5b::22) 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 12:39:15 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::54a0:2dbc:18b7:2aa9]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::54a0:2dbc:18b7:2aa9%7]) with mapi id 15.20.5417.016; Thu, 7 Jul 2022 12:39:15 +0000 From: "Xia, Chenbo" To: "skori@marvell.com" , 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: AQHYivbVUnO/SoGyzUmQFt8nfsio5q1y5hQQ Date: Thu, 7 Jul 2022 12:39:14 +0000 Message-ID: References: <20220628135339.2882914-1-skori@marvell.com> In-Reply-To: <20220628135339.2882914-1-skori@marvell.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: cbb7efae-379c-41b9-7639-08da6015b392 x-ms-traffictypediagnostic: MWHPR1101MB2175:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: EQY+gCqw+3e4OAB1PzeNfV9/4uKe6DPSJa33UFgoQInbMqrbLLUjsn9HOCRUOf45DUA7OG9stMKEoe776uhMGKXiqc/hgcTHfzzVG0GeDzyQOxoifUYI9sPV4gKW2pJTcRUuCm5WUIME8wkDNVxV3XNosvbRXTPzom2JtPDkVGndY3wsxKzp8cV8mrQagqPLWCdSBDvNdgUt4do+vjidufhcotf+tpv0eiTo+fgVtXIuWOewBLqPnDRGObHp74TrYHrgOYWiGW6JZ+ERmoyK5HUdACEqT3IY7VTYkFy2Q2fAraT9BIQeWzA2ydD0vk9cfGg0AqPidZ0pDHxQA/O4mF4rVSomMH4LidwTRt/xM9A3NDywAUBNyQBYwyIezppKCVww5zhbwd8twj7ZEVw5rpdaJ0JyQK4W6WDU1B/uEdON+pUrzqTtus0GuAP2VpBeA+tyudqYzGCane66YvxP6xtlEBvBPVtyafvhhnyb8SvZwErvosjIBW9PnKedeN1dBWEslImi0wiIwQ9o09SAliixggj7bM9Cg6WbeC4/kF28gWQTXlZzTemFcaimPAF/vLsFHOB08Z8R3VYBz/sYDy3IlLn+MRniYa5K+XEzgOZUbXWXI0R7QauWUI8RJuD9IBOVyORxx/dfFYUf0vVY0rz8xPykka1BA7JhHlYGJl2Wg/pHrT3AyQ3XBR8XmrwAJlxIE2QSH0RFecDs7ltvc2xZ0/JzBm0RQkFuyyRPJkhs37wsrSYzrWYaHetGlpCJ4sriYiupZeqFE6a/M+vh7IM7PRr06XDBju9Ib0C3Fo48oxOJi1M33WAfHXDYU4IB x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3504.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(136003)(346002)(376002)(366004)(39860400002)(396003)(9686003)(26005)(8676002)(122000001)(8936002)(52536014)(110136005)(186003)(86362001)(82960400001)(55016003)(38070700005)(83380400001)(53546011)(64756008)(76116006)(66446008)(66556008)(66476007)(2906002)(66946007)(478600001)(41300700001)(71200400001)(33656002)(38100700002)(7696005)(6506007)(4326008)(5660300002)(316002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FRNBzQHYhb3aGg+eBGOElHRJSAiINMX9S4NOpJJofWtd2fqviIs79oXMioJH?= =?us-ascii?Q?1jb6g9GIfEDMoXPEWduA5IgM0/mN+sxnNOVtp0lJWYIovWjng5a5s0JI7GVp?= =?us-ascii?Q?eEneyDjjoX4Dg2EUeLXUqZf7qxpo7P63/aaz2N02TpNTQrqTpKRlxONIvnHK?= =?us-ascii?Q?505eZnIW6sMdPdf0eo6BdNjMA5ZhAWEydY+ERgnpwXXBcduNeWR/XhyraGfE?= =?us-ascii?Q?nfJnC8x0C/PEGBREADGfp9C4iSil/nqmLs/OsqQ269vFoIEZ0zoIX3bPr7ov?= =?us-ascii?Q?lob+raIs+zy/B5d4NByS8L9252IGtk04arftfuiqzMI/LFdH1j/v3xnUSTqw?= =?us-ascii?Q?gPoG6OUVPrCItAOHYwxfp93jXpvMI86tV+rjhBH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us-ascii?Q?Ogd0GPLSCADZ5MV/6d4IKVsMCvDtmk/Rvq7OJgt9JJyEkdOWnfmxplz6ElOQ?= =?us-ascii?Q?vf9AYGfSTdy21lZ65LnYNHFeb+33fBfNPT3yMq64/1e+o9kXmYhebt9QhSt+?= =?us-ascii?Q?sHT4mViq8LafYeVRZxEz/qNJYvgYHhVOqSFFCdnjktpvM4Ed6VKRv/uWueKC?= =?us-ascii?Q?t4ZoqcEmt06WFBHQxT7Xc85Sb4TojB/YQd5BPbmu/e0+HCCOLBIHXksUi/J2?= =?us-ascii?Q?mOzGl3+fTwqmSUFm5tWztKwoOQUG9XE9WbP1urMVGCJiE7PnMzXU902qQMEx?= =?us-ascii?Q?S9FHPLCIjMUnBiosfZ2e8sf6A5dcsXy5wDhhSepE?= 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: SN6PR11MB3504.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cbb7efae-379c-41b9-7639-08da6015b392 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jul 2022 12:39:14.9490 (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: r3e7kh5FJGPI1Rp1qGHdFoStSFuy6l+F13JSNDkBV+DLzbPDPGDufQthSMdst9sDlnCczdoW2oUuYycmCEvYYg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1101MB2175 X-OriginatorOrg: intel.com 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 Sunil, > -----Original Message----- > From: skori@marvell.com > Sent: Tuesday, June 28, 2022 9:54 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. Why there will be such requirement to mmap only part of BAR when the BAR can be fully mmapped. I thought you want to enable something like sparse mmap feature in VFIO, but seems it's a feature that let driver ask for specific mmap option. Could you explain the use case here? Thanks, Chenbo >=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 fiel= d > 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