From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id DF6C6A04DC; Tue, 20 Oct 2020 04:50:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0F74FBC10; Tue, 20 Oct 2020 04:50:07 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2043.outbound.protection.outlook.com [40.107.22.43]) by dpdk.org (Postfix) with ESMTP id 93ED7BC0E for ; Tue, 20 Oct 2020 04:50:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x4YbNYHBkSW47dCeBliacm7SpsLnwz68ep+TUgWv9KI=; b=8Op2rG6XATZewkei7NrGKzT8VoTVVKk6MubSruEomcWLASlY/gF0zThOb+XvLk2+hAo87wr0lCequJchh1GiKn9HvVueKc0lQexXk3VlCOO75YyaOcVToQspjrD7jtWD6m6JBraHVMp7ObLi10nuMmawpnjNi1iGN6lUHaFak00= Received: from DB6PR0301CA0060.eurprd03.prod.outlook.com (2603:10a6:4:54::28) by AM0PR08MB4929.eurprd08.prod.outlook.com (2603:10a6:208:158::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21; Tue, 20 Oct 2020 02:50:01 +0000 Received: from DB5EUR03FT003.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:54:cafe::11) by DB6PR0301CA0060.outlook.office365.com (2603:10a6:4:54::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.20 via Frontend Transport; Tue, 20 Oct 2020 02:50:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT003.mail.protection.outlook.com (10.152.20.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21 via Frontend Transport; Tue, 20 Oct 2020 02:50:01 +0000 Received: ("Tessian outbound ba2270a55485:v64"); Tue, 20 Oct 2020 02:50:01 +0000 X-CR-MTA-TID: 64aa7808 Received: from f81342f0863f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B10F2BB9-1635-43E2-A49E-509B0C76C93E.1; Tue, 20 Oct 2020 02:49:56 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id f81342f0863f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 20 Oct 2020 02:49:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IsYgzx7EFKZ8D4t5ozlrS3UFOuRcCZxFlyh9zu972ED6QOCBjHytu7tKTEGN9715YL+RFQsrK56cqow5Bo3PbjlEazed8x/g3Gs713PACN4DNkJGkdZOuoLXWwRT6V63Jzma3LgGFZt9FXihHrDq17AwFzhW5ZafLLmka8BEKFC/ehDC/gzn4rbQYez3sJ74hr36kCDiAJ/ZcOX3/K2deaEra/t5wC2eYOaiKsmn1zVoJTKCJ/M8xd4bAKOgohFXsC3EOVDb28oOsHSm+9N65HIIL4rItRYHA0k3LU4nEUGR/0bqq+veknhXPO2YnfcWjKn86W92DnRbET+MEaC18g== 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=x4YbNYHBkSW47dCeBliacm7SpsLnwz68ep+TUgWv9KI=; b=WpjhkFvb5GOqq7NDiw5eqnAlji0ox6uio/je4t939HvBN09idaxQJM0Ht1XvusG4tPhF/IY0Ko4eSff0x9M3MrK9EdaZAazGftYrU5O5wfeeK2a6FqzxOPuCSfcO7O5Z/dWXqJwPS1rCLSnByLcwv/ftqbAiM2lPzDP4Wtap4gLbixAKIgMhR5p9L8Pour0Nf6SVwnkh9KhEP7wHxsHQdMGHGavvpjCXOkXtqW+JfmLq86nPBIFjiUp+lx/9h0cA0JmIv/Piy5HiLfvzjo1U/CQdBi/BvjugvnKr6tWM9amRo4PqeLBL0YWSzir24rD9CBi5GIWHiQFNj8ayPcF0bg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x4YbNYHBkSW47dCeBliacm7SpsLnwz68ep+TUgWv9KI=; b=8Op2rG6XATZewkei7NrGKzT8VoTVVKk6MubSruEomcWLASlY/gF0zThOb+XvLk2+hAo87wr0lCequJchh1GiKn9HvVueKc0lQexXk3VlCOO75YyaOcVToQspjrD7jtWD6m6JBraHVMp7ObLi10nuMmawpnjNi1iGN6lUHaFak00= Received: from VI1PR0802MB2351.eurprd08.prod.outlook.com (2603:10a6:800:a0::10) by VI1PR08MB5454.eurprd08.prod.outlook.com (2603:10a6:803:13d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.28; Tue, 20 Oct 2020 02:49:53 +0000 Received: from VI1PR0802MB2351.eurprd08.prod.outlook.com ([fe80::14d4:6ade:368a:204b]) by VI1PR0802MB2351.eurprd08.prod.outlook.com ([fe80::14d4:6ade:368a:204b%3]) with mapi id 15.20.3477.028; Tue, 20 Oct 2020 02:49:53 +0000 From: Ruifeng Wang To: "thomas@monjalon.net" , Honnappa Nagarahalli CC: "dev@dpdk.org" , Liang Ma , Jan Viktorin , David Christensen , Bruce Richardson , Konstantin Ananyev , "david.hunt@intel.com" , "jerinjacobk@gmail.com" , "timothy.mcdaniel@intel.com" , "gage.eads@intel.com" , "chris.macnamara@intel.com" , Anatoly Burakov , "david.marchand@redhat.com" , nd Thread-Topic: [dpdk-dev] [PATCH v7 02/10] eal: add power management intrinsics Thread-Index: AQHWouta3nu6L1PJY0C+rl0kRsuZVamfc1GAgABaf+A= Date: Tue, 20 Oct 2020 02:49:53 +0000 Message-ID: References: <7d5724730715ccfbf55baceae42b91a2351020f8.1602763439.git.anatoly.burakov@intel.com> <2164670.uy6Bi0JdNo@thomas> In-Reply-To: <2164670.uy6Bi0JdNo@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 5D5DA440E71B7C48AA107F7177860826.0 x-checkrecipientchecked: true Authentication-Results-Original: monjalon.net; dkim=none (message not signed) header.d=none; monjalon.net; dmarc=none action=none header.from=arm.com; x-originating-ip: [203.126.0.112] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: af2d91b7-bd3f-4b33-0506-08d874a2d721 x-ms-traffictypediagnostic: VI1PR08MB5454:|AM0PR08MB4929: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:1201;OLM:1201; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: JDfzYubaOZ/ndqnu3IIKDLT9hSBv5hk6GlEwS1YuMyS2yuhH05Ti9STCTnF3xNadz8rqKYIJX/whzzlGkKxCw0LWs9WaQjV+jSeroE3OD2rlvvHyLJd+98v7VbH1hJ4YwQgazKlh+SESlAzdA0GVjFwdokrBmHnhw/NRpgObCf/S94MFEWXd3Syeuolw5IUaFfDR53La3SbrC9H43s9SK+BLaPhpPTfV+NGfXwKhr0E/0XBrSVLuRQ41kgK5iOvZMQDDQ9pqTv9SRCQ7mA858WuZQppi0MUw7N0AJCrSQ4FmkUzlWlObgIq+RurhRamY X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0802MB2351.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(376002)(136003)(39860400002)(366004)(54906003)(110136005)(33656002)(186003)(6636002)(26005)(6506007)(55016002)(53546011)(83380400001)(478600001)(5660300002)(7696005)(316002)(71200400001)(4326008)(9686003)(76116006)(66446008)(2906002)(86362001)(66946007)(66556008)(64756008)(66476007)(8676002)(8936002)(52536014)(7416002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: w+meyZAnuZogYnOyZKGZwZIDf7CV3bYYtASsCuZDSqLJeEFaOGBuvueSoFBSGRz0jDP5Ozz179PE8I6k9nFIp3bXwiGaPEoqlUhN6KfCW3kvgDzNLs6XST9Gcm97clKCkKNjSucQM5zHxgG0PuDyFVvPAVJ9s91k0diXSs6NyghtzsWW+nQFRxKYE1MUkqHG4Qz+HVaZzUv4OJNWRhloZEjBkmIjM5iA8aNeK6bLR1UZaGIAhFUkt/vn9VSeCCaaW8ydqHTpl2a5Cr72To2/nshq4wayNLD9eWK3EDwxsUOmT+kHomVPfkSG7gYe+ke5zCDgLg7uBdoT30vwdXhLnMXs64SjdYKA+7i128Oq1yrokOsnR85CQAfmfqGFfh/KGVs2kZlUnM3P+GWOdArQRdxAY4v9ABRkqyXeB7QY8eL5mmv5+KWPKZSB507Cl9novb86ZQ7XRJ8cDJ1ME84+cTqxt+XuECqDShu2ppDl86MwPbtOk4QVkUHT4vWHeu9W0xj5GqXJNsGEgBk/ccklkyMuM58tdmkpyXRXhRj675mEwM+HNK8p8xSEE+M7OnAztL2ftbXwLcnxN0UecMwXe5EyEDJBenDA6N0galB8PYJD47gnNexR77b8aKeAQoq9I4davl4CHjydZf+hLrfySg== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB5454 Original-Authentication-Results: monjalon.net; dkim=none (message not signed) header.d=none; monjalon.net; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT003.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 111eddfa-3a36-4415-54d9-08d874a2d250 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GXDH3iqyg+IR8V3cRN8gAH7+yUiyAv3CfMukxBZp0ss3SBUh4IHff8dVqhs/2GDHaDp5C85+TjWcDju3igC71FwZa+EBR3WaE7OVAL7tuR6iwxacsNuRnJK+sOzq2Mf2xAqCSNr8HsdlGXRpOdvz0YJjuF+ofDSAaWtqZHUIrRIg4hZ5cA/TCJFY+acBOFw+mw5Tuu5W7OkYINPhg4QOJP6+XL9DnQ7vLW2BGT4zE70z71bWd7AfP/6ffYX0W4Z0E5ZhhyxFnskwYW9vgGGzSgXkhEL6Drs4YLNXkiTbOFlY2+4L0PgyYxoI970FOWX358MZUXLJb8O+KWb8jcKGj/otPHHKYEUQmh0OxdYfPOF3F/ntuGP0UFfjmek0UoqFxkL9zdQLBNIPVEirn+D7UQ== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(376002)(136003)(346002)(396003)(39860400002)(46966005)(8676002)(110136005)(81166007)(54906003)(478600001)(4326008)(356005)(336012)(83380400001)(7696005)(9686003)(2906002)(186003)(70586007)(6636002)(33656002)(8936002)(82310400003)(52536014)(86362001)(53546011)(316002)(82740400003)(47076004)(5660300002)(6506007)(70206006)(55016002)(26005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2020 02:50:01.5594 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: af2d91b7-bd3f-4b33-0506-08d874a2d721 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT003.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4929 Subject: Re: [dpdk-dev] [PATCH v7 02/10] eal: add power management intrinsics X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" > -----Original Message----- > From: Thomas Monjalon > Sent: Tuesday, October 20, 2020 5:13 AM > To: Ruifeng Wang ; Honnappa Nagarahalli > > Cc: dev@dpdk.org; Liang Ma ; Jan Viktorin > ; David Christensen ; > Bruce Richardson ; Konstantin Ananyev > ; david.hunt@intel.com; > jerinjacobk@gmail.com; timothy.mcdaniel@intel.com; gage.eads@intel.com; > chris.macnamara@intel.com; Anatoly Burakov ; > david.marchand@redhat.com > Subject: Re: [dpdk-dev] [PATCH v7 02/10] eal: add power management > intrinsics >=20 > 15/10/2020 14:04, Anatoly Burakov: > > +/** > > + * This function is not supported on ARM. > > + */ > > +static inline void > > +rte_power_monitor(const volatile void *p, const uint64_t > expected_value, > > + const uint64_t value_mask, const uint64_t tsc_timestamp= , > > + const uint8_t data_sz) { > > + RTE_SET_USED(p); > > + RTE_SET_USED(expected_value); > > + RTE_SET_USED(value_mask); > > + RTE_SET_USED(tsc_timestamp); > > + RTE_SET_USED(data_sz); > > +} >=20 > Are you sure it cannot be partially supported with WFE instruction? >=20 Armv8 WFE instruction can support monitoring of specific address for change= s,=20 but not monitoring of TSC timestamp.=20