Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp351092rwb; Fri, 4 Aug 2023 13:55:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzZNVzZnvNMptUMJ58WXHUIUNl5AXhSNi6FUSZ4sACI1QlZHVD7i19tRMmLYld/AE4dwjy X-Received: by 2002:a05:6a21:999f:b0:137:40ba:d91f with SMTP id ve31-20020a056a21999f00b0013740bad91fmr3933663pzb.10.1691182555934; Fri, 04 Aug 2023 13:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691182555; cv=none; d=google.com; s=arc-20160816; b=MoI+1qx7k3Z6unsLTIF6lfjayv2QtWSvOCBlcHIZj75IMaxEugkw/1vKSX9OZ0Fm+J ZibuS4GRAbcYljQLB3gDEGr0dboeZomhZcJFpsd3tVPxWR1xbVHtiZId3iEwHM+mNuEx DUkTqYYZCysPSGH9Lv5LSEcrt33Yp+yaLf4qcMihaD/jjj6xEUgWhVq+DLkjI62UNghl ZstDCYuNxYUhflRhqqerJFQXdp1qvPWAHSPNVoH8A9PIU2GDdk+zLBSFlETq8c1WbXCX 53AcsY7R2OnlTgZK3UeG/mckZ9orgwau70/+VKik2adMl79hmxSUahYg8TvHHcRnKumK EyQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0S9jBZoz5bVwPhGhUBlZgDmYofssuRkGRdTGWffFA4k=; fh=h0l4gfSBykqHr6xYzZC04AV1oMpywElI66wujMbsQ3w=; b=h9QeBlpTM6vm7GTd1i/sisQam1zv4Nk2rRdOGk1ajkLxNEVYNqBt/BBg9eVvA+s3Ss /Td3RDyKL+uMrku1d2ULylg8tMRG1CWaoh8/ACL1cnyzBV8mZB8sYQ6d5h68Bpi7pa+5 RwU74nH2XMCf8F3r5HJVFVE3s0vI66K0v6mO1181b3tyGRIi/OdQieA/wz9llFZPJblO lKyX3YOzeLAskJdHx2ZsIAOjNlezPOeb2o0zK7FLwH2jd+7QFxV286q0SgDIC9yNpwMl gUCSR41JB/FQkouGywCINvR300DjJaQDsPC8kB13nU/YsI1dp8hzQyZvplo8TSk659Yt Ai5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=DVWPLaFo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g16-20020a056a000b9000b006738dfbaf42si2230657pfj.374.2023.08.04.13.55.17; Fri, 04 Aug 2023 13:55:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=DVWPLaFo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbjHDSYY (ORCPT + 99 others); Fri, 4 Aug 2023 14:24:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230452AbjHDSYS (ORCPT ); Fri, 4 Aug 2023 14:24:18 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01D044C01; Fri, 4 Aug 2023 11:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=0S9jBZoz5bVwPhGhUBlZgDmYofssuRkGRdTGWffFA4k=; b=DVWPLaFocHBV5YdbyIOimrmowF MqVimBeKhGRdAHpQGr3/dLOQeBvqub4KHNCFY4yXVywZzWyJ0yt8+IEhDsHnsSU3YuwEpt5Du8J/A g2GkkllBEBpJRWbnRwmg8RNa4AOGnFOSYkkDsTkte3XMeo/TXANopLvnpPu0Ks/PF3W5A1zJMlvog oahqJAzmJIXc9lXRVJDngbidVjZV412I8FzqP1yulLdcUSzCRvMnlDgJqw1R7m561SVm9cuuutGvy HkQS0bBdRhhj7PCQq8UVH1f5WXahPN+nPbpbM4i6MIxROtLGPienYbmWak8dY43B1SSHB8nNujUoL 8rQhHX0Q==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qRzSD-00BMx5-JC; Fri, 04 Aug 2023 18:23:13 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id AB097300235; Fri, 4 Aug 2023 20:23:12 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7F7EC21FA7B4A; Fri, 4 Aug 2023 20:23:12 +0200 (CEST) Date: Fri, 4 Aug 2023 20:23:12 +0200 From: Peter Zijlstra To: Guo Ren Cc: Alex Kogan , linux@armlinux.org.uk, mingo@redhat.com, will.deacon@arm.com, arnd@arndb.de, longman@redhat.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, bp@alien8.de, hpa@zytor.com, x86@kernel.org, guohanjun@huawei.com, jglauber@marvell.com, steven.sistare@oracle.com, daniel.m.jordan@oracle.com, dave.dice@oracle.com Subject: Re: [PATCH v15 3/6] locking/qspinlock: Introduce CNA into the slow path of qspinlock Message-ID: <20230804182312.GO212435@hirez.programming.kicks-ass.net> References: <20210514200743.3026725-1-alex.kogan@oracle.com> <20210514200743.3026725-4-alex.kogan@oracle.com> <20230803085004.GF212435@hirez.programming.kicks-ass.net> <20230803115610.GC214207@hirez.programming.kicks-ass.net> <20230804082531.GL212435@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 04, 2023 at 10:17:35AM -0400, Guo Ren wrote: > > See, this is where the ARM64 WFE would come in handy; I don't suppose > > RISC-V has anything like that? > Em... arm64 smp_cond_load only could save power consumption or release > the pipeline resources of an SMT processor. When (Node1 cpu64) is in > the WFE state, it still needs (Node0 cpu1) to write the value to give > a cross-NUMA signal. So I didn't see what WFE related to reducing > cross-Numa transactions, or I missed something. Sorry The benefit is that WFE significantly reduces the memory traffic. Since it 'suspends' the core and waits for a write-notification instead of busy polling the memory location you get a ton less loads.