Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1635727pxp; Thu, 17 Mar 2022 13:14:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5kCPUp/No+Jroh6J75bY5tmrdgQkzrILdt3BK++JMeNkKCa6w2imzS+LjKsmaQfeM4D0J X-Received: by 2002:a17:90b:3b92:b0:1bf:a61b:742b with SMTP id pc18-20020a17090b3b9200b001bfa61b742bmr17760301pjb.157.1647548093508; Thu, 17 Mar 2022 13:14:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647548093; cv=none; d=google.com; s=arc-20160816; b=UWu+s2Wu76M6NB7zilmKHLphqIO+NlnAaz8SI8m4RVyjvWzInVa/6QY/j+YENrBM17 xEThfgzTpw14WxVXkxshQNyiuKCjUST2JsO6u7ScGHkhv4SOinUZcywgjuw8oaGzvad2 GQO6jp4g+Ap16UL7mZo9rnFpTRjRyHHKu7g7aaDTmlvmsoAmiMAYezHmRkaEAGnD4Nsi msdX0Q3yYfG0P2FM458bBaUMqueF0qzD+GoVyTJhWyLkPwCL/c1O89DcXN2HKoSB2U4x tfMvS5DJdXBRJM6tpm8JHqsi2xbgK5HG+UlJOE1JGzuZq8aVPeAm+u2VfG1ADOzli+QI 85eg== 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=gyGtFzNeoxStsezjUkQICZnTPdUarjxnpiDNsa6B0WE=; b=M93JsT4vQjAaaAjACijSMo9BwFBWO2Hs89Nq4qEFF+cd5z0Er+bT9DWILZeDs3bsAk PTSVPapVqETIWusZA+EZawILL2nn/4erBdYCzzTrITTWbZo+oAmAjer+5w/dhgPHTwfO x5UMssXW9xd7jMlj1U/fGHAKJAxOApsxwscUeLZR4hdlvzs42e5u2pVXSLU4k5BAFqTl NcAKDwQoyPGqEJm7v8wcSLdsEFUtaNdu/lAT02y4DupG6e0NhMB4f2ygpvE/Ho9MddHy k7oOi9u8SpvBR3gtvYYPWuG7R3MRVb8fxwj28FYEiBXXJVnjHe6SwuIDe799bWkH5rSG ZklQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WA4v03gl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m1-20020a17090a414100b001c64d70ecc5si7143215pjg.66.2022.03.17.13.14.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 13:14:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WA4v03gl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A40B1BA5; Thu, 17 Mar 2022 12:57:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232180AbiCQJrv (ORCPT + 99 others); Thu, 17 Mar 2022 05:47:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230232AbiCQJru (ORCPT ); Thu, 17 Mar 2022 05:47:50 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B5D61B3715; Thu, 17 Mar 2022 02:46:34 -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=gyGtFzNeoxStsezjUkQICZnTPdUarjxnpiDNsa6B0WE=; b=WA4v03glmgat2hllQ9wlSLQexd tnKPktAgWSrAZOTMlckmuAD/E3aa4B2WOa+YYl5fc+bHKwSd2e+Qfqb419maoCdNulfCQ0IXvtZE1 jiobU3dnwFBu6n1zW1VVjADF06+GPkeXMiBWNq2bMat8sXBY9lrHk/BHQCk7cRf+FOnfKo88hzQl0 j5TWYEK/f/kkRo95RFldthbnBVNxSBb36DaJeMcqrddCc8ixjU1fSF2myO3YIcJAQi0fEOuhas+cB /rtoztwPtRcPjGJrNs7eP7WW7B0beYa9foYEBf8NiW17OZ/JHQYT8LavxfMpYviCdlH8X86ZgTZrH LzCoQjYA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUmho-006qam-K5; Thu, 17 Mar 2022 09:46:04 +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) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 3B0813001EA; Thu, 17 Mar 2022 10:46:01 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1E1B8201CD1C3; Thu, 17 Mar 2022 10:46:01 +0100 (CET) Date: Thu, 17 Mar 2022 10:46:01 +0100 From: Peter Zijlstra To: Palmer Dabbelt Cc: linux-riscv@lists.infradead.org, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, mingo@redhat.com, Will Deacon , longman@redhat.com, boqun.feng@gmail.com, Paul Walmsley , Palmer Dabbelt , aou@eecs.berkeley.edu, Arnd Bergmann , jszhang@kernel.org, wangkefeng.wang@huawei.com, openrisc@lists.librecores.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH 2/5] asm-generic: ticket-lock: New generic ticket-based spinlock Message-ID: References: <20220316232600.20419-1-palmer@rivosinc.com> <20220316232600.20419-3-palmer@rivosinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220316232600.20419-3-palmer@rivosinc.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Mar 16, 2022 at 04:25:57PM -0700, Palmer Dabbelt wrote: > From: Peter Zijlstra > > This is a simple, fair spinlock. Specifically it doesn't have all the > subtle memory model dependencies that qspinlock has, which makes it more > suitable for simple systems as it is more likely to be correct. > > [Palmer: commit text] > Signed-off-by: Palmer Dabbelt Signed-off-by: Peter Zijlstra (Intel) > > -- > > I have specifically not included Peter's SOB on this, as he sent his > original patch > > without one. Fixed ;-)