Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6457216rwl; Mon, 9 Jan 2023 08:33:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXvKqGrZjm0bW3qVfc9hSw29EFBSphs2cs46T0ZGM3w32M8cY+WkUiLDMOY5xKXLVUpsWj6k X-Received: by 2002:a17:90a:d808:b0:226:ccc7:2e29 with SMTP id a8-20020a17090ad80800b00226ccc72e29mr15593223pjv.15.1673282029405; Mon, 09 Jan 2023 08:33:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673282029; cv=none; d=google.com; s=arc-20160816; b=qV6Ljt61JL4XtmlmNJTJYK58yNARaOoO+UcIse81XYu0haooNcaw9YKxtV+KXwe+nU qLORBPnZvJISJEEEbGSu6JFQiCCl0IhAzCtQvaWDYCPSAhDy15tmW6Q1Yp4q+PohQi+c grEH9WNOJcPyDXvYIg4qE58ruBM8dxyuVPVKoQdvi5Pla0LazeJF1Fix1SjaCZzetGmF UpVc3vNXtmm4iwKN/eRIGPF52jOhfII/WPhVjhBo3O1qh77RWobBUeAUaDQIl3Ch8DBU ZZ7UlBXraB4RgiI5cWnyKwZllxXJ0jkAdLe5agBT7xBTA7Sr1kDRbniLSBlADvnsax37 ZUxA== 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=o2/WdWh0APeupuPh7RKLqwpzddI4XMgnRH0Srb3bBA8=; b=LfhtgtfY0GE6Q2EzFwC54pmq5BruHQMTmmUw3EKyf6S6/b0yKEWdXkc2nHUv1URmBi 9VFxdm8coVqfAaaOMZ3Z3Eede4LcepZUobMojNTGaEHXRaKE2eyQwqlDqWmAgJ2SCZF3 4W+m5BfIn/RaDARHDAwIeHrmC+ADHuRJKUbRo1OkiOGnokx52PN0DP9RPjZbHUZLQJ2+ xdBx0RfDULdUM/mDa+Ky9N/g+YPfuTv8kRl0ZEPDnub6X45ccw7BPLEced4Iu8cCLCNe 1INuIBc3hmixQuru/FLvcBTLvNc4EvWlyOGR6Gxa7EK/crXTYtO4fWvSJi/Xlovwhbxq w0zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=JVVg5ZiQ; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 n1-20020a63b441000000b0043a93738a14si9408477pgu.167.2023.01.09.08.33.36; Mon, 09 Jan 2023 08:33:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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=JVVg5ZiQ; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234944AbjAIQbQ (ORCPT + 99 others); Mon, 9 Jan 2023 11:31:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235117AbjAIQbF (ORCPT ); Mon, 9 Jan 2023 11:31:05 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4172537503; Mon, 9 Jan 2023 08:30:43 -0800 (PST) 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=o2/WdWh0APeupuPh7RKLqwpzddI4XMgnRH0Srb3bBA8=; b=JVVg5ZiQ5EwX/bJmzcBrm5hQRZ /FzNMH+VKS9Uj+oKG55AthoXByc4rsJne2KzG8AGcjMmoP5h0WqErzYgDSN+WUQKzncqgpwuFs1+7 1M6D1dFOaXVUOKeggVpP3UtCWrl5p5Ztj2Lj80rGwv2HxiXqq7hDuP/8BUHSrJZWBfuL6Q1X4nx1p RS1CDqZNoCvrBjNAChCc1uvqKPHUBlUFMKbqG3LtFI8xHtSyffujWEPx/nzLx/hEe5qaX301iKJnv lPtarK9OheMMBqEx+eJIz+xyn512CYwoPVvUtrlL1KlwNB/M9NxcRuX/KVZUMniyhSoP3acYxTdvd rpTqYc0Q==; 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 1pEv2H-002QqF-Eb; Mon, 09 Jan 2023 16:30:09 +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 13FAA3001E5; Mon, 9 Jan 2023 17:29:56 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 02FBF20086EAB; Mon, 9 Jan 2023 17:29:56 +0100 (CET) Date: Mon, 9 Jan 2023 17:29:55 +0100 From: Peter Zijlstra To: Heiko Carstens Cc: torvalds@linux-foundation.org, corbet@lwn.net, will@kernel.org, boqun.feng@gmail.com, mark.rutland@arm.com, catalin.marinas@arm.com, dennis@kernel.org, tj@kernel.org, cl@linux.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, Herbert Xu , davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, joro@8bytes.org, suravee.suthikulpanit@amd.com, robin.murphy@arm.com, dwmw2@infradead.org, baolu.lu@linux.intel.com, Arnd Bergmann , penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, Andrew Morton , vbabka@suse.cz, roman.gushchin@linux.dev, 42.hyeyoo@gmail.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-s390@vger.kernel.org, linux-crypto@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org Subject: Re: [RFC][PATCH 07/12] percpu: Wire up cmpxchg128 Message-ID: References: <20221219153525.632521981@infradead.org> <20221219154119.286760562@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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-crypto@vger.kernel.org On Wed, Jan 04, 2023 at 01:09:16PM +0100, Heiko Carstens wrote: > On Mon, Dec 19, 2022 at 04:35:32PM +0100, Peter Zijlstra wrote: > > In order to replace cmpxchg_double() with the newly minted > > cmpxchg128() family of functions, wire it up in this_cpu_cmpxchg(). > > > > Signed-off-by: Peter Zijlstra (Intel) > ... > > --- a/arch/s390/include/asm/percpu.h > > +++ b/arch/s390/include/asm/percpu.h > > +#define this_cpu_cmpxchg_16(pcp, oval, nval) \ > > +({ \ > > + u128 old__ = __pcpu_cast_128((nval), (nval)); \ > > + u128 new__ = __pcpu_cast_128((oval), (oval)); \ > > spot the bug... please merge the below into this patch. D'oh, luckily I got a fresh pile of brown paper bags for xmas.