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 AE801A0C45; Wed, 4 Aug 2021 11:52:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 666A94014F; Wed, 4 Aug 2021 11:52:50 +0200 (CEST) Received: from mail-108-mta177.mxroute.com (mail-108-mta177.mxroute.com [136.175.108.177]) by mails.dpdk.org (Postfix) with ESMTP id 81D514003E for ; Wed, 4 Aug 2021 11:52:48 +0200 (CEST) Received: from filter004.mxroute.com ([149.28.56.236] filter004.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta177.mxroute.com (ZoneMTA) with ESMTPSA id 17b109464d100074ba.002 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Wed, 04 Aug 2021 09:52:45 +0000 X-Zone-Loop: 4a101fe3636fb8b30cd0f4da3c44869aec7d2595a4b0 X-Originating-IP: [149.28.56.236] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ashroe.eu; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=oQQ1vDjmHq+8zuX7r4ynhAr/LbB7DfWd69YdAcOuUd8=; b=oqo3oVbgtt1zEc5E8Oyge391mO rIjMRDVQRKAkmjGLNsnoxE0lVnNiRm1BU+iIayjKB5rw2ZQ1dkD5MEkbgZs2tjsqsRK6qt1SGGRtA uaZVfxLFHyUOt1UGHhuIhLmUdAqLtLlA4z2e+XKwuojEV1obgkiHAdCfEJmYqX13UW9oUDjCmI0rT nUJlK+rsIEpCuHwES5OPuDDuWyTSrz2I3KggsTjExCDdzcGSOmSuMXDDMx+HALVzQZgfWWIl7+lKR CY3wtZi1waEJqyD851ZbNurU/1UBLX1tS3OC08ZzhoE3Zn9AvpktwtNpD6vw8cjPs8fme3MHJipL3 7LwhjQ2g==; To: Anatoly Burakov , dev@dpdk.org, Jerin Jacob , Ruifeng Wang , Jan Viktorin , David Christensen , Neil Horman , Bruce Richardson , Konstantin Ananyev Cc: david.hunt@intel.com, ciara.loftus@intel.com References: From: "Kinsella, Ray" Message-ID: <1b3c0253-4819-d526-2fa4-679866e29a2d@ashroe.eu> Date: Wed, 4 Aug 2021 10:52:42 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AuthUser: mdr@ashroe.eu X-Zone-Spam-Resolution: no action X-Zone-Spam-Status: No, score=-0.1, required=15, tests=[ARC_NA=0, RCPT_COUNT_SEVEN=0, FROM_HAS_DN=0, TO_DN_SOME=0, MIME_GOOD=-0.1, FROM_EQ_ENVFROM=0, MIME_TRACE=0, RCVD_COUNT_ZERO=0, NEURAL_SPAM=0, MID_RHS_MATCH_FROM=0] Subject: Re: [dpdk-dev] [PATCH v6 3/7] eal: add power monitor for multiple events 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" On 05/07/2021 16:21, Anatoly Burakov wrote: > Use RTM and WAITPKG instructions to perform a wait-for-writes similar to > what UMWAIT does, but without the limitation of having to listen for > just one event. This works because the optimized power state used by the > TPAUSE instruction will cause a wake up on RTM transaction abort, so if > we add the addresses we're interested in to the read-set, any write to > those addresses will wake us up. > > Signed-off-by: Konstantin Ananyev > Signed-off-by: Anatoly Burakov > --- > > Notes: > v4: > - Fixed bugs in accessing the monitor condition > - Abort on any monitor condition not having a defined callback > > v2: > - Adapt to callback mechanism > > doc/guides/rel_notes/release_21_08.rst | 2 + > lib/eal/arm/rte_power_intrinsics.c | 11 +++ > lib/eal/include/generic/rte_cpuflags.h | 2 + > .../include/generic/rte_power_intrinsics.h | 35 +++++++++ > lib/eal/ppc/rte_power_intrinsics.c | 11 +++ > lib/eal/version.map | 3 + > lib/eal/x86/rte_cpuflags.c | 2 + > lib/eal/x86/rte_power_intrinsics.c | 73 +++++++++++++++++++ > 8 files changed, 139 insertions(+) > Acked-by: Ray Kinsella