From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <dev-bounces@dpdk.org> Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BB6AA43185; Tue, 17 Oct 2023 05:03:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5ECDB402B3; Tue, 17 Oct 2023 05:03:23 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2074.outbound.protection.outlook.com [40.107.244.74]) by mails.dpdk.org (Postfix) with ESMTP id CB08E4021D for <dev@dpdk.org>; Tue, 17 Oct 2023 05:03:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QxEF1XDirq8AsJ86J3bdkHEfYnlw5fB/MpYvsPp1yFrC1kgLEvpha1tFZubcOl3/8CjCEX8eCBAfB/DwsOhmnWFJqdw+2doJODfoOxk7iwqUBNUVT/pOGc7HKGA1MHCYKBWeWhg3xs28LW9sVrXEBwo6qFpkgAm1wJGkG7zhYREYPCF0Si/nH7SbQ61P1U9IJCgIW661o/GplcVlRGsaSecwDbg4PWd8Wf0+kUx7Xi0IA5GgxQ0/+wFlVL4fqDEP3+ilmRXJxUkDzeKgt94Di5ofDuKbqu3bGQQ8AaEMluW7eNu3PYf+rAncMZLqeCNIfH7Xu0L/0XGp0WU0OMfWXg== 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=kVmTQDcY2ZdDGFnEeQm0Onlei1Eqq57M3pQxexgVvCE=; b=mPsWmAnOqDK83cipJ/LkJ8ypjsIlBpxzZbxCS+yvsP9RSd/1OfPozbBQwTpbA2vig30sl+n6LHsMA8jwmndgeF+xCLPuf6ibiI61L04FsfaQZaBzSfInL5If5AKm6sVL++M4YgLbaWvHdFSFFcXxpF+BNPlzf+lRx3fEzwQasNQsJnfjtFWUoopkU3u/wL9n6xbVVupkYDVTjEaw8Lnc/AErbFok70A3KvnCm/Djy0BZDwWBGv8JJV1DgzzDHayFiDd0WJTmeLo5nrK1FhFRz0rpSkf9dnTOrv9d8pMPVC8g20Ex4QPr15KKACfuGu9KgTEgIL58LE2IXgm7sxdNvw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kVmTQDcY2ZdDGFnEeQm0Onlei1Eqq57M3pQxexgVvCE=; b=aW1d/RLKqQmy6mdoCXm4aIkAZ4VtrELcU35SeI0V2MLmWrSAPgC71yqjUdOBtG+Hg9VZiLhxbHk54NqUsT1zJQ42W+0xHSDbI7F2zAD250cDh5D8/wIDpdekFigvO1CpVoeoBNdNyIkmxfTzzlOtHdX3el8LuswS0aE7yEJHIzw= Received: from DM3PR12MB9286.namprd12.prod.outlook.com (2603:10b6:8:1ae::6) by SA1PR12MB6750.namprd12.prod.outlook.com (2603:10b6:806:257::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.35; Tue, 17 Oct 2023 03:03:19 +0000 Received: from DM3PR12MB9286.namprd12.prod.outlook.com ([fe80::16d0:9604:8fa:97a7]) by DM3PR12MB9286.namprd12.prod.outlook.com ([fe80::16d0:9604:8fa:97a7%4]) with mapi id 15.20.6886.034; Tue, 17 Oct 2023 03:03:19 +0000 From: "Tummala, Sivaprasad" <Sivaprasad.Tummala@amd.com> To: Tyler Retzlaff <roretzla@linux.microsoft.com> CC: "jerinjacobk@gmail.com" <jerinjacobk@gmail.com>, "harry.van.haaren@intel.com" <harry.van.haaren@intel.com>, "anatoly.burakov@intel.com" <anatoly.burakov@intel.com>, "dev@dpdk.org" <dev@dpdk.org>, "Yigit, Ferruh" <Ferruh.Yigit@amd.com>, "david.hunt@intel.com" <david.hunt@intel.com> Subject: RE: [PATCH v1 5/6] power: add eventdev support for power management Thread-Topic: [PATCH v1 5/6] power: add eventdev support for power management Thread-Index: AQHaAHN8FBAu7hojp0W2UR1rOW/yhbBNFlSAgAA1RWA= Date: Tue, 17 Oct 2023 03:03:18 +0000 Message-ID: <DM3PR12MB9286FA3C296273DC05CAC99D86D6A@DM3PR12MB9286.namprd12.prod.outlook.com> References: <20230419095427.563185-1-sivaprasad.tummala@amd.com> <20231016205715.970999-1-sivaprasad.tummala@amd.com> <20231016205715.970999-5-sivaprasad.tummala@amd.com> <20231016235101.GC13553@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> In-Reply-To: <20231016235101.GC13553@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=615e6741-5a32-4eba-86a4-c575af3f231b; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=0; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2023-10-17T03:01:40Z; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM3PR12MB9286:EE_|SA1PR12MB6750:EE_ x-ms-office365-filtering-correlation-id: 38691acb-fb8b-459e-bda0-08dbcebd9d84 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3XJJ2HDx1JKRP1lztoDLxXynrrpqoiN1MZHBF5VYBvUzE1+RxhM7IPcD0gkEmnHTys1+fZNA0wHGyQaSiyS6ZRxZwOmeHvJgMhMPD1OoYNNYUoXzxSaN6cyx7iELllsqpFXBnu/y64C5syUMyF0vLkmmwXb8UIS8xWNsZwIT0nqS9S9X8Hpia51qEqOipe5e7W7RoOIEFnFQk0Jf9n7f7fRql5MLy2lRVanzKCyfNJtTeYOjga72SrKmqCi0LqYNMs3bmyVTnYXqBOCDL6ckr4olJieO8CTAxMjsD+6J24qR4WXIdCPsM6xqRDbhaJ/aM1vZVXi1wObEw5dcDxRpZG7AQN5k0m39a/tQvPkV0azSdSu3s/mnSqFik7q1o9CtEWjj9cqcnLAiNskjJW4kwfzRDYf9R1dLgL4AuPtbApPMWf+1V0dXlLE1HWvqoScXqPCkPUFKqM9UAfVwkhPfTx82iFMCdwXnhEwB5UJMb3fYVcJRyazBApaoWcyISF8LZdaiGkpQBnGO4n1+a0cCpGC3hk3b01G6FXSwcblYmYfpOPTJUF27BdzpvowsiyduiyfyfBTw/rz3ueVnFrpMtvviiiUuAANTyrrus8I+0WrTLf5K8TmU39PbKVjY7j9M x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM3PR12MB9286.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(346002)(39860400002)(136003)(396003)(376002)(230922051799003)(1800799009)(64100799003)(186009)(451199024)(122000001)(55016003)(38070700005)(33656002)(38100700002)(478600001)(2906002)(9686003)(7696005)(6506007)(54906003)(316002)(66946007)(64756008)(76116006)(66446008)(66476007)(66556008)(6916009)(8936002)(5660300002)(41300700001)(4326008)(52536014)(8676002)(83380400001)(53546011)(26005)(71200400001)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?PvWrJK85zynfPNJZLbe63WOeeEYGbucggpynLeTJNHtX4Rs9wGePBNEiebko?= =?us-ascii?Q?p2ZkyOsi5TSCwRdeDaMPjC2IsH1uGDzsUdxC4IB317CI9jgTaiajPLdD2c40?= =?us-ascii?Q?tpr9W427SCHZbB+cYhuGAHGAeqqadXHeOl/a/VykBUMQlKmFsd3gMUxVXFYn?= =?us-ascii?Q?5cuq78lcAPNzhK8ERKfgQT2uF0bArBqcVab0xs09Ft6q7TlStE1ht2i3BqNo?= =?us-ascii?Q?cChsZljaoITvG/vjRJQGTpuJ2nu063Z5zTVX7ZS4xeC+07y2XMrdmuLfPXv0?= =?us-ascii?Q?mkoDqjs19sZFfJJNXqmjPn3oInE8UBxwB5P90qRkxnCYzx24RV+JChNII0Lm?= =?us-ascii?Q?AoZOmrKlp+ellcxyuwfKKtjeHMrV0HNQ2Q0DvppwZsHuZza+ZWkT7xtgfB3P?= =?us-ascii?Q?ByOEpmX9C4g9hF/YnxlzO5ulnvpzlQRgPpCuZ+NepTMdG+pwx8Y0Hbs+Lkk1?= =?us-ascii?Q?IKc5LLc8h+fpwE9SnJ2KFYaSzVDGk3Nv9kVAuIUu5eyVO9IyJ/mka4ZLqU2K?= =?us-ascii?Q?mkiSlOB97ms/c5Wx97E2hX714imMPh9gADBLrwmc2QHHsLJS0t2TMJmSphr8?= =?us-ascii?Q?jzJQWB1ljGCnvBcCiTbftMeuxpmGXSi1iYfjdLFCNU3aTVc/BJHjFEYDKlZp?= =?us-ascii?Q?J25dCfztz5XnTqUi2wlXjQ9hdU1NSHKcEWlePA62/fsqZmIVYG4NsYPYmHAp?= =?us-ascii?Q?+nTHMbIUvqPGnWxStNeEjIY/9poQHhCprSquEnvZJwZDjBFnrTP8FAoUEUTw?= =?us-ascii?Q?Ng1iBrWDL6aTRY8Ww/QDjvMNzG6n+/9CrDoXz0OuVd/utByuRo6VYcjCjyLr?= =?us-ascii?Q?ODEUus5E3B37IDpBDXPoKTOah+h1wtqsMi8CHpqu4Ly7L2EfL3R6qAHqCQ1h?= =?us-ascii?Q?/ABAdo0rLKH1kUdB0XgSlNCgKmjHeviW/Er3OcY2hfCH4uy1Or7RWcUkeu3O?= =?us-ascii?Q?Df45nencTSd1dmEIVY5yLKbt3j7+8TY5Mk7RjZG0cEkHUVmQLn/GK/G7eY2n?= =?us-ascii?Q?FVgqijw8LHxRd/xMPWB9MyIUvIHBNzxiP1v7uORHCSGMQOioE3M5TKA5TvV6?= =?us-ascii?Q?TsLxqZbTATAkghhFDC+w64kYbQ0f9elsRg4sXG2KS6Q/FFx9y1uzED5qVfEH?= =?us-ascii?Q?nA6UO/gJtGxS/izrXXCNdIh5t42Jd6K20vribZmuIQRaCUWCoFL/Vb0oXjY8?= =?us-ascii?Q?pEKTVBs6m2EPFWKfDbQu6YtWXLV2Q6dzP1S8SS2pLEM2ENe/kulPk1pAeQTn?= =?us-ascii?Q?tFBSGdlF37YVeG7e26Zu4ptnU/9vDvcYwQaPHgpDWkXr3SpuzHvxQU1xCDQs?= =?us-ascii?Q?kc6Fux3CAWxGGi056t1t4L88PkWy6pZeWP2Uw7fuZBlhMfbHkIlG8KHPyv+R?= =?us-ascii?Q?MSXUNB6T+cbGks9CRhnu3BQhLFPU3Nd1TgwuDVMJHNLqZuVjK84ssfNPuGll?= =?us-ascii?Q?Xv35OdveJjyi8rJlQlfcaxtMxDfDuCPxo4ijJ0yMZSN3t5TdBuUj6WLIU8R2?= =?us-ascii?Q?JiSuNWQiKaFz15rdES/L5VUl8b505qaDeCcmK1SnBM2c9fSVgdGYtSHnuw9U?= =?us-ascii?Q?Q5nSziRgI1EuEENckGI=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM3PR12MB9286.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 38691acb-fb8b-459e-bda0-08dbcebd9d84 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Oct 2023 03:03:18.9591 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: VTYpr1XIfFaZG5RmypSvpO/aBEWjPvElC+u7W4p/dghMVwH8TgkbJ4R36pUOcmTrn7E/2syg+WD77RZTu5YL9w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6750 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org [AMD Official Use Only - General] > -----Original Message----- > From: Tyler Retzlaff <roretzla@linux.microsoft.com> > Sent: Tuesday, October 17, 2023 5:21 AM > To: Tummala, Sivaprasad <Sivaprasad.Tummala@amd.com> > Cc: jerinjacobk@gmail.com; harry.van.haaren@intel.com; > anatoly.burakov@intel.com; dev@dpdk.org; Yigit, Ferruh <Ferruh.Yigit@amd.= com>; > david.hunt@intel.com > Subject: Re: [PATCH v1 5/6] power: add eventdev support for power managem= ent > > Caution: This message originated from an External Source. Use proper caut= ion > when opening attachments, clicking links, or responding. > > > On Mon, Oct 16, 2023 at 01:57:14PM -0700, Sivaprasad Tummala wrote: > > Add eventdev support to enable power saving when no events are > > arriving. It is based on counting the number of empty polls and, when > > the number reaches a certain threshold, entering an > > architecture-defined optimized power state that will either wait until > > a TSC timestamp expires, or when events arrive. > > > > This API mandates a core-to-single-port mapping (i.e. one core polling > > multiple ports of event device is not supported). This should be ok as > > the general use case will have one CPU core using one port to > > enqueue/dequeue events from an eventdev. > > > > This design is using Eventdev PMD Dequeue callbacks. > > > > 1. MWAITX/MONITORX: > > > > When a certain threshold of empty polls is reached, the core will go > > into a power optimized sleep while waiting on an address of next RX > > descriptor to be written to. > > > > 2. Pause instruction > > > > This method uses the pause instruction to avoid busy polling. > > > > Signed-off-by: Sivaprasad Tummala <sivaprasad.tummala@amd.com> > > --- > > lib/power/meson.build | 2 +- > > lib/power/rte_power_pmd_mgmt.c | 226 > > +++++++++++++++++++++++++++++++++ > lib/power/rte_power_pmd_mgmt.h | 55 ++++++++ > > lib/power/version.map | 4 + > > 4 files changed, 286 insertions(+), 1 deletion(-) > > > > ... > > + > > + # added in 23.07 > > + rte_power_eventdev_pmgmt_port_enable; > > + rte_power_eventdev_pmgmt_port_disable; > > 23.07 is released, 23.11? Hi Tyler, Thanks for spotting this. Will fix the typo in v2. > > > }; > > -- > > 2.34.1