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 D13A7A0510; Wed, 18 Dec 2019 18:42:18 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4C210F90; Wed, 18 Dec 2019 18:42:18 +0100 (CET) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150055.outbound.protection.outlook.com [40.107.15.55]) by dpdk.org (Postfix) with ESMTP id A2E54235 for ; Wed, 18 Dec 2019 18:42:16 +0100 (CET) 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=5iLK+8Z3u2aWkKjSKsD1Azqm6X4PwbV97xvit7APCd0=; b=lBa4YlpRGPvj3Mqj/WuiU/sO+Y+hduyNDG/EVqoGjB+UjTTj5pawNqd07xdM1jtM1Y3yiFz2OVZD62Tkg5xeoTPdo0W4HHO5O1ArPHdyCdH2Tdlk9FCfItWe/MeI88eTVBkQDDpzP+K7j9lcpo7zSrYZPAJa6roCd/q1arr0LdM= Received: from VE1PR08CA0023.eurprd08.prod.outlook.com (2603:10a6:803:104::36) by DB6PR0802MB2341.eurprd08.prod.outlook.com (2603:10a6:4:89::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.18; Wed, 18 Dec 2019 17:42:15 +0000 Received: from DB5EUR03FT026.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e0a::204) by VE1PR08CA0023.outlook.office365.com (2603:10a6:803:104::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.14 via Frontend Transport; Wed, 18 Dec 2019 17:42:15 +0000 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=bestguesspass 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 DB5EUR03FT026.mail.protection.outlook.com (10.152.20.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.14 via Frontend Transport; Wed, 18 Dec 2019 17:42:14 +0000 Received: ("Tessian outbound ca1df68f3668:v40"); Wed, 18 Dec 2019 17:42:14 +0000 X-CR-MTA-TID: 64aa7808 Received: from e12ba05a0344.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id EB1FEB0E-364C-4791-A38A-89A97EAB7100.1; Wed, 18 Dec 2019 17:42:09 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e12ba05a0344.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 18 Dec 2019 17:42:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eu5AvLlwbDO41MaFxRVKbtT2fEUoWrU8W1Bullqu2XmX0PdTKGSFTgnRt73KOtaDf1C8TtjxuNVNMZzASwT8cEqfHD2HS8cd6hUYxd7ZWvhXDeFkAHUtG/VOBIOmID1T4B3b6aGxHuRkqbKPRE4fpmjikoksPOpP/+9jO7isNjJUvjpYzv56dXKcEHJ+WAxqf1s2gozDV6LiWlczJtEzxy9DfWJjcTxrYy7SNR/aiUkG5VZmD0EWheL6ihTpq0IbJ5X4zHorbhdKXG4ITgSGzeHQf8GuwIKdJInanClCG9AFJT+HpZhq6ximgZn8CNqHP7k0R0v9A/rxjykpAX9muQ== 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=5iLK+8Z3u2aWkKjSKsD1Azqm6X4PwbV97xvit7APCd0=; b=L9qd8RRipUoSaW7JTeM+l1P7/Gzej3RW+UA7u7umUFaoERAUOebe8HXJaZvF8KONnqqFW2sg9J1EO3gmqAmqeYO5M/b5MZJZ2MPaLd/5IrbP5GQ+cm0tKejodNROf/tDH4RxD8cg6K85mFmuhfnPtsbrSiO5n00Q/X3vqhd6m8XQGCMFp5nF8+PxQqv/uzzerehUwvfl95HUGRhfTNdK9uRKtIYuTzAitNOdZ3zasRN0jZOwA3x6+n/JoM3KZVvuYsCXrSSEiPEUriZFwC7EbjEdxvduonQNSkTOoo9gbAlbUDFlPI7aHUVWzOsbrsyq+OFAq7hbDU5DKV6cw68eEg== 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=5iLK+8Z3u2aWkKjSKsD1Azqm6X4PwbV97xvit7APCd0=; b=lBa4YlpRGPvj3Mqj/WuiU/sO+Y+hduyNDG/EVqoGjB+UjTTj5pawNqd07xdM1jtM1Y3yiFz2OVZD62Tkg5xeoTPdo0W4HHO5O1ArPHdyCdH2Tdlk9FCfItWe/MeI88eTVBkQDDpzP+K7j9lcpo7zSrYZPAJa6roCd/q1arr0LdM= Received: from VE1PR08MB5149.eurprd08.prod.outlook.com (20.179.30.27) by VE1PR08MB5167.eurprd08.prod.outlook.com (20.179.31.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.18; Wed, 18 Dec 2019 17:42:07 +0000 Received: from VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::9df4:7af6:b62d:f94e]) by VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::9df4:7af6:b62d:f94e%7]) with mapi id 15.20.2538.019; Wed, 18 Dec 2019 17:42:07 +0000 From: Honnappa Nagarahalli To: Pavan Nikhilesh Bhagavatula , Gavin Hu , "jerinj@marvell.com" , Honnappa Nagarahalli CC: "dev@dpdk.org" , nd , nd Thread-Topic: [dpdk-dev] [PATCH] event/octeontx2: use wfe while waiting for head Thread-Index: AQHViby3nCGCIyXIT0CWL1WmagbrBqdp8tiAgADRIiCAAMyxgIAABXrQgFTqAEA= Date: Wed, 18 Dec 2019 17:42:07 +0000 Message-ID: References: <20191023161244.3284-1-pbhagavatula@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 0ba54417-deda-4159-8a34-2afe3697067c.0 x-checkrecipientchecked: true Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 11b7b66c-fb2c-4a57-6f72-08d783e19eae X-MS-TrafficTypeDiagnostic: VE1PR08MB5167:|VE1PR08MB5167:|DB6PR0802MB2341: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:350;OLM:350; x-forefront-prvs: 0255DF69B9 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(366004)(136003)(39860400002)(376002)(396003)(346002)(199004)(189003)(55016002)(52536014)(33656002)(66946007)(2906002)(6506007)(4326008)(186003)(8676002)(9686003)(71200400001)(8936002)(478600001)(5660300002)(81166006)(81156014)(7696005)(110136005)(316002)(54906003)(86362001)(66446008)(66556008)(64756008)(26005)(76116006)(66476007); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB5167; H:VE1PR08MB5149.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: LWrJ2FB+J2waDJvFZMoDFCGmlQsYhXiYJwSAaco4MBj0YsDtE2KkTpWXcjeNhg8l9y7HOsvdbF+6BiOFavLYSRVi+e5kpDn8H6N8IfXWryIP3xWPomlLDZ7p7HAwFJxFGNpUd/XOTX8p1l9l6HJh0KfO5ZYQAvW5BYSk3RBGGak+VG65x1cJB2FLFbw4PSwaafgobbdwfJmjMATOZ4QflCSsgKjboNyYTVaycfMPqvdn2Ton6WOA/odIIs2ezHT9k3Y89m10FAz9yaWV3ssNhHcUHDrBi/LINjMYmrdvD63NS1YoiSywjZOSU6F+i6pDl4xUVcQef2tAGH6eUtnNMPnf64ZcoPgoxo1Z0WSAKvAbckQlSXJALOmRVFRgVOdHGM/haxxYMBr8D8RBLHZqDPQj9NxL3Am6KWxqaie4uvlgxRN0Tpa5mDN4c2mS1wsG Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5167 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT026.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; IPV:CAL; SCL:-1; CTRY:IE; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(396003)(39860400002)(346002)(376002)(136003)(189003)(199004)(2906002)(55016002)(70586007)(76130400001)(8676002)(81166006)(81156014)(4326008)(8936002)(52536014)(9686003)(5660300002)(54906003)(186003)(26826003)(110136005)(70206006)(26005)(6506007)(316002)(478600001)(86362001)(33656002)(7696005)(356004)(336012); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0802MB2341; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:Pass; LANG:en; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; MX:1; A:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 2faec7b2-eff7-4ac4-b982-08d783e19a68 NoDisclaimer: True X-Forefront-PRVS: 0255DF69B9 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: w1y8Ebt6yucPDTDZBqBjF+WSI1rnfqphjnL+2S2XXZwqu6x8BL8pbH8aIqrxWvJ0/PSVc7r/VeO3y4SKjuRMBvUeHbhp25lBeYdNUp3wGqXM6qTBu98M7dkyyFdfoes81zmN2+kEUsKp9j0qTs4iiTEgaXuVMDFHxyIFmCt5HPqXoyexVvKAvcUFjhhn5+FoSxRcJRU0wHV2gfFElv8Kvfb7a4NmF/nTmjxh/7xb8xSLFVOJzQI2xyouuOAHHf+SZ97lk/HnhRo6d8tcFsVn7CmlmjDkH22XuEhcThswlka7p0ln6Q6ZE62XPUt7wrh4hs87cfdGWMjjgpdKB2nE6mD2VS88QTN5h3wM4MFpMBVHr27WW7XrefeTSh0rwv9kymeRw10xJrPSb2cNLpAAx0Ps2zipFzC8OBNh3a/5uIvIkaa4hrh+cLGhnnJRGn5B X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2019 17:42:14.8796 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 11b7b66c-fb2c-4a57-6f72-08d783e19eae 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-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0802MB2341 Subject: Re: [dpdk-dev] [PATCH] event/octeontx2: use wfe while waiting for head 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" > >> >> > >> >> static __rte_always_inline void > >> >> -otx2_ssogws_head_wait(struct otx2_ssogws *ws, const uint8_t > >> >wait_flag) > >> >> +otx2_ssogws_head_wait(struct otx2_ssogws *ws) > >> >> { > >> >> - while (wait_flag && !(otx2_read64(ws->tag_op) & > >> >BIT_ULL(35))) > >> >> +#ifdef RTE_ARCH_ARM64 > >> >> + uint64_t tag; > >> >> + > >> >> + asm volatile ( > >> >> + " ldr %[tag], [%[tag_op]] \n" > >> >"ldxr" should be used, exclusive-load is required to "monitor" the > >> >location, then a write to the location will cause clear of the > >> >exclusive monitor, thus a wake up event is generated implicitly. > >> > >> As I have mentioned in the commit log: > >> "SSO signals EVENTI to allow cores to exit from wfe when they are > >> waiting for specific operations in which one of them is setting HEAD > >> bit in GWS_TAG." > >If you have other expected wake up sources, that is ok. Just curious is > >this signal explicitly sent to quit WFE? >=20 > AFAIK yes, explicitly sent to quit WFE. Pavan, is the wake up event sent to the particular core that is waiting on = this head or is it sent to all the cores?