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 03BA5A04B5; Wed, 13 Jan 2021 13:46:10 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6AEAE140D1E; Wed, 13 Jan 2021 13:46:10 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 41707140D1B for ; Wed, 13 Jan 2021 13:46:07 +0100 (CET) IronPort-SDR: RbTVTAYaRp6sA+b4rB+v7yfLWyH+XdDC6Bk/KDgzG3xZoCqsRyq/G9O+xMOqkeFL+UGsUMUi6i 6W0ENZxcB3Aw== X-IronPort-AV: E=McAfee;i="6000,8403,9862"; a="262982720" X-IronPort-AV: E=Sophos;i="5.79,344,1602572400"; d="scan'208";a="262982720" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2021 04:46:05 -0800 IronPort-SDR: aMDJ2aLTqbMQnxo3KZBHFUsJrgn7E9IxRtCeuplWYEAfDkWurUwOA5X3ppMiHuiZDV1vRBoj/c tfnBSfwrxvGQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,344,1602572400"; d="scan'208";a="363873527" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga002.jf.intel.com with ESMTP; 13 Jan 2021 04:46:05 -0800 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 13 Jan 2021 04:46:04 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) 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.1713.5 via Frontend Transport; Wed, 13 Jan 2021 04:46:04 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.45) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Wed, 13 Jan 2021 04:46:04 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R9kVyZk5nFVQVIOAOxx9HvK1GQjuKq//rI+S1b0shkXELlGgC+HuqEZdcczSOnSNzH8RGMQdH5td1y3iUap31boXL2ynOAnp0T+0OHWsfH3G0XviQQhzyRacu+EmrEIiAAKygPQw58hI3p73rg7u6tDIqEJFjT5FDAGNclr0cQIiS/QNOnB6HcLaETICph/RdC5eL+QUHVMnyVMTZrydCsHjC8zU3ryDWn9uOoh5RV3Sry0FfZEO1ygH26OfwzKW2j4CEuLMqqNIVblQLPIrwpzmtGwp2LbPBoSW6ZMMGoLkWqQDxVtocLdLCzU87gzWhvxV7uG6ZEk3AyvREG83xg== 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-SenderADCheck; bh=II5l1M6q1jM0j3uwSlOeeS3LY8bfVY/vc/UdhI/1N0U=; b=QUrvuilyH5P6U6mGArDXU+8ea/qdiXrZuxvauWUTSOOodtC/WD1x5EfsJP7heTk8xXuDbQfOeol7POePkXAnuaKZxZ5TPNmw5ohCFDT2zKLRpaJqabrLidDVjjEI4cw6xWKk44NeNDkhA5gXWuXAcVZLuS9Oz/9JZNbFVVx1YfMPNmTvuv4vhpogW5+/+VjCfrN7vgoVkG8xzn2gQsQ2nKg5hcCw5qO+6Klrk5UTOyYwpd6dq2DTLaGpISl7Ii9nS2MRVqSEr0TvX07zMa4ZhwlF3ZPDWX9GlCrzZDCtSRZFNKbVkqx0Ab00opGq4ddP9GnEQpoPDD5WZqbruzeMsw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=II5l1M6q1jM0j3uwSlOeeS3LY8bfVY/vc/UdhI/1N0U=; b=xZB/Ok0wQpL5cfRQnzUKH2THMhVfBZxS7Z5W6Qu56HvBtaEm3nsy3ZAO65j4ezmTVwdmbn83Z8DI2OO/o+JX168o9bJlVSIGMp1/0vGYkYm5IQhjTkPZrc3xMEUdrJH9IYRNsBiFPbVueshi3KRHzH/Fir9t7oojDcvr/gaSs8M= Received: from BYAPR11MB3301.namprd11.prod.outlook.com (2603:10b6:a03:7f::26) by BYAPR11MB2806.namprd11.prod.outlook.com (2603:10b6:a02:c7::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.10; Wed, 13 Jan 2021 12:46:02 +0000 Received: from BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::1152:1426:8a4f:c755]) by BYAPR11MB3301.namprd11.prod.outlook.com ([fe80::1152:1426:8a4f:c755%4]) with mapi id 15.20.3742.012; Wed, 13 Jan 2021 12:46:02 +0000 From: "Ananyev, Konstantin" To: "Burakov, Anatoly" , "dev@dpdk.org" CC: Jerin Jacob , Ruifeng Wang , Jan Viktorin , David Christensen , Ray Kinsella , Neil Horman , "Richardson, Bruce" , "thomas@monjalon.net" , "McDaniel, Timothy" , "Hunt, David" , "Macnamara, Chris" Thread-Topic: [PATCH v16 05/11] eal: add monitor wakeup function Thread-Index: AQHW6Qm2YSJtB24Glk6jQAD8/6kBE6olgZDA Date: Wed, 13 Jan 2021 12:46:02 +0000 Message-ID: References: <9e48ffbd9baada13231f961ae46b75a5a664ea1b.1610473000.git.anatoly.burakov@intel.com> In-Reply-To: <9e48ffbd9baada13231f961ae46b75a5a664ea1b.1610473000.git.anatoly.burakov@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [46.7.39.127] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 62bbd2e3-d8d5-45d4-f49c-08d8b7c12f9c x-ms-traffictypediagnostic: BYAPR11MB2806: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Qa+WZTHpqMYQFiZ9eK7SjhcQT4owkZZtV0ulFSv3wHGzkOUYkc5gfzLY1WL57LyBX8wZIHycDKsvpKec1JZ7oCmS1uqejT2sQQNU4KA+EMecunmZsBTq0B2W5QHFXZuI6vOcdNZNTvr+TK71WnrsCdGN2unXSovqIOdV6lKgEjn3rgYgh3bHQYaj+KDe3sHJldezsI804qOTRrXU0nUx+eawjwtERIxys8VwaUIcZQ0NQnWWu36fnAFHMeRUCzEtNh+SxyjLZGbARJtlb3kbTlNo2QbzU0MI3qAFwaCiv6CLZrTMVP9jm7fQziUg5ayhTHAVeSml17eb1QXGTg6AjHToVAVU/SVhJmTSzeVVfhz723KYepjEZ3HPu99LcWEgwmy1br7hICzbz9DoE388eg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3301.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(376002)(396003)(136003)(366004)(346002)(52536014)(76116006)(66476007)(478600001)(66556008)(64756008)(5660300002)(66946007)(186003)(66446008)(7696005)(8936002)(26005)(110136005)(54906003)(6506007)(4744005)(316002)(86362001)(33656002)(83380400001)(2906002)(107886003)(8676002)(55016002)(9686003)(4326008)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?d2MtdijqJ5WeCsCr/NxEP4ihK0biJ8lQjMLeJEbKltoTNzLVMwB5lAZRitG0?= =?us-ascii?Q?p9lKrRVfVhRJ6H8xP3uGcRu9pG7SWTYYX6ObSrpvhWiWVAGJYNJk2mN1+bYy?= =?us-ascii?Q?tyBaDQXAJUwn6BQsjcNte2XybJD43SuHiSGwhgZlrtvo6yTAzr3wXusB4918?= =?us-ascii?Q?lbHQlwkRXiZ1xWyf/xonr+hG9T8m+EJa3pUXiN0Q29ZnGFNLSlmmTJ+aBBcu?= =?us-ascii?Q?5yGO86aMZzuHBN7rXtmyZjgkYin29DsyoDkDRsGkFfS5QHILTsv78eA9Xfo0?= =?us-ascii?Q?XLb4CvC9PDT9FkSNFqL+EUzW31rNAD/8R++s99FxRzzCcrH1zfMg9B1eMdmK?= =?us-ascii?Q?FykLni80IxEukCxLg605RO6DX55nDHQecuP5MxFRSCyn2jmo+Osi+YTqNtco?= =?us-ascii?Q?sfQF6/hvRp00UqWroeaL9dDfWoDJcSK7x1dzNJNi2/nX8S2ASJd7bx6QqOTm?= =?us-ascii?Q?hrBdw6SGdSWLMS1FWqX/AZAPzR/8JRIf+WdYMZ8+jFVDt9bFaeUCo0L7bKVc?= =?us-ascii?Q?DveEp5UShqfk7cdKCxx4zCM6RAQ5q0rlbITT8F6trznRSN+mPlZU8UZ49/UD?= =?us-ascii?Q?1Aza5kAonHdm4iVQa0Osh3PL2+nimRJdiwjCAJXHDtFu8QRi865qnn2FtXit?= =?us-ascii?Q?XBvkPMfcT5CVcDbDbdr0AujNiBeVvrNMelbwU1oS0XyF/IeO1sJ4hv7naNQA?= =?us-ascii?Q?6eX1UDoquK3UB91Sr+lO9ntbW4woWaAOAadspmgtwzFARYQ9LZkV4fVUho7E?= =?us-ascii?Q?grwScUrx+Fo0+F5sIetibHnxpMn2hn63FCe2XEarWHFnIisEzmFBrm8Q8610?= =?us-ascii?Q?LuuCl6ulwgfx09VBkeoIpz0+YSL533F/q4L7Wrc3oFoGJi93U0D68Yhdj4Ir?= =?us-ascii?Q?d1U25e3GiZKk7JAvg6I+7nIOsZHoH5CzarW4V/sZcTZi9TpPWXkpwGiHNZEH?= =?us-ascii?Q?3n9lSA4RDRqU7raLJg0tVqdADgDFrjGsM1IAMeZp5DY=3D?= 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: BYAPR11MB3301.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62bbd2e3-d8d5-45d4-f49c-08d8b7c12f9c X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jan 2021 12:46:02.6862 (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: 5oc4zx1plindbtzDllSyyMuV07yCF5/jQ6cdNy6FDBJT83r4hzMDgcR+XULDcM/571hRhJj09r1TLckvYI5exingqnyGphgPlkvhUcKDLWM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2806 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v16 05/11] eal: add monitor wakeup function 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 Sender: "dev" > Now that we have everything in a C file, we can store the information > about our sleep, and have a native mechanism to wake up the sleeping > core. This mechanism would however only wake up a core that's sleeping > while monitoring - waking up from `rte_power_pause` won't work. >=20 > Signed-off-by: Anatoly Burakov > --- >=20 > Notes: > v16: > - Improve error handling > - Take a lock before UMONITOR >=20 > v13: > - Add comments around wakeup code to explain what it does > - Add lcore_id parameter checking to prevent buffer overrun >=20 > lib/librte_eal/arm/rte_power_intrinsics.c | 9 ++ > .../include/generic/rte_power_intrinsics.h | 16 +++ > lib/librte_eal/ppc/rte_power_intrinsics.c | 9 ++ > lib/librte_eal/version.map | 1 + > lib/librte_eal/x86/rte_power_intrinsics.c | 98 ++++++++++++++++++- > 5 files changed, 132 insertions(+), 1 deletion(-) >=20 > -- Acked-by: Konstantin Ananyev > 2.25.1