Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5429851iob; Mon, 9 May 2022 16:34:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBv09hx1r9nyzR80iD1hd+KDcITTFm/GzmjOifng4ANhaXcd9Hkh88pVMNb2EeOsH5f0P7 X-Received: by 2002:ac8:5915:0:b0:2f3:db7f:7ad8 with SMTP id 21-20020ac85915000000b002f3db7f7ad8mr6527870qty.77.1652139257021; Mon, 09 May 2022 16:34:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652139257; cv=none; d=google.com; s=arc-20160816; b=DP/UfhYt7RuCIVDcIWr5oVKmg7Ov3JPY+N1e0UHoY42+QUlEZ8CdLAWgOnC06m1kRQ wHKVzzfsQsA8U8HZMJU6UaKBWVW6Cy9gjVr7kUtnyvA0zcbkvSMqpxRlo5zKVD/1Qv+H xG3F1a5neDcOgrbtwPg6JcGNrsHfI1BqDLf0RZhPepF5cvyy1TUqCmU4tkE1KnJV3UJX +v/spWYkK7pwtOyY2wh84rAoDudL6pQYjjOb0jIFo8YQzEgprGMvbJ0vHUIitjPcUyzv s9JXGRzuIBIzrvLqB7/e+fS6VvDQginYFJu9P/dQgm8D96g3+TXRqyeH9lf2kD5SuOKI 8Y6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:cc:content-transfer-encoding :mime-version:message-id:date:subject:dkim-signature; bh=wogL5SNF6fBWUFbVfNImZXe0oagV0GR5P/uvXUVTGHw=; b=JmgRE23Ivun8rxmR8yeTXMEiyYMLciDgVGWFg+a8BWDYYJy4PUGiHtqYJrThrI5osK BzvV07D7QHXIxYAedDHVoDlOw5VU/RBtEs1+WmIfJYepC5SeQG/OFdzq9gBEX24cO9d0 9VPUdgVkGidl4hZpTjtGPuB/sE2xCMGDrcNOh7KJ3AmVC1SLXYxLLg/oFxcwdTONBqz1 MWcTYbOVkj4iB3/dBrS4KcocV+S/c4y4BGFe3wS72fJ7jnWWkdPTxm65fc3A55hB7gIE WrEOWCCSXb61Rsb/CpDwV47OCb73qW72AY2+hl49lO26pw2mvM2nVFYYAn97pmfM4YRN tc8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b="IJlSe/QY"; 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 l18-20020a05620a28d200b006a00924a0e0si10114388qkp.610.2022.05.09.16.34.02; Mon, 09 May 2022 16:34:17 -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=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b="IJlSe/QY"; 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 S231773AbiEIWgY (ORCPT + 99 others); Mon, 9 May 2022 18:36:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231657AbiEIWgT (ORCPT ); Mon, 9 May 2022 18:36:19 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 352752B9C8B for ; Mon, 9 May 2022 15:32:24 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id e5so13182136pgc.5 for ; Mon, 09 May 2022 15:32:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=subject:date:message-id:mime-version:content-transfer-encoding:cc :from:to; bh=wogL5SNF6fBWUFbVfNImZXe0oagV0GR5P/uvXUVTGHw=; b=IJlSe/QYx+QBVtXsevt86SPgzwgnfYUoN/+MtyvqGNjARDi5TpCiQz6TJD5R7+mW5m x1JKsPS1APmscP3dprFiIQRfFzjXXfYVyAdBp2oqTtlD1pomh7P+T8/J1bw9I193p9rb iVTOupRBY/ZlX0QdHDGqSv2jYXcpZIJ3YFVWw8NHqfqSpy1JsSbHDLG1NlA8aj1y3A0B deI6rVkM4HytF4YzYO3kSyKYzQRH/4jZ9v0kI2MOFYw1Tqmz4RjwXhlBTcoq+tlKfZ7W HZ2zuhLgAk5S9uqogxOl7tNwVp13lu6ZXSnuV0Irnw4mmHrGSywUR+iz7poAhIuNIWUQ /hHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:date:message-id:mime-version :content-transfer-encoding:cc:from:to; bh=wogL5SNF6fBWUFbVfNImZXe0oagV0GR5P/uvXUVTGHw=; b=sxtqWk/hQ/SIlyPrRXTv39Oflfb3Zs8hwkxL1YjrtqK2u8zepRDASmszn66oEEzC0n aJoZ1F0qRU2GU+uq0Bk1kjEIbhOZSP3mD54Ypy8J5+JpoZgW99T734ISlxthAnrM8uLl ySyNOwKJnGoHdhsZDLLpG12deWOi2W/fE44yds+wjRcgSmcFV5N1H5f3uH3cle40BfDB DBzid72OZAhN6Gpu79pLDZ+KMDL1lS8YSNCh6GVoDvi5AhPmlCRyGnWklwtBS0P7ND0p fbA2hVACVYAE02ASg1fCpk+WPFDRUUf3c3gIn0gLfba92pSCOtytnVgr9oixgvCQHk99 B+Lg== X-Gm-Message-State: AOAM531Ty/Oym2vZTFHODQFja1ZiXebjHBB/SVhXIWELMXBPfm8l1tYV Y+uMV6iXILoHO22j5l1d6eQTqw== X-Received: by 2002:a63:f710:0:b0:3c6:3561:42a5 with SMTP id x16-20020a63f710000000b003c6356142a5mr14416105pgh.295.1652135543686; Mon, 09 May 2022 15:32:23 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id q10-20020a170902daca00b0015e8d4eb1besm423397plx.8.2022.05.09.15.32.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 15:32:23 -0700 (PDT) Subject: [PATCH v5 0/7] Generic Ticket Spinlocks Date: Mon, 9 May 2022 15:29:49 -0700 Message-Id: <20220509222956.2886-1-palmer@rivosinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: guoren@kernel.org, peterz@infradead.org, mingo@redhat.com, Will Deacon , longman@redhat.com, boqun.feng@gmail.com, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, Paul Walmsley , Palmer Dabbelt , aou@eecs.berkeley.edu, Arnd Bergmann , macro@orcam.me.uk, Greg KH , sudipm.mukherjee@gmail.com, jszhang@kernel.org, linux-csky@vger.kernel.org, linux-kernel@vger.kernel.org, openrisc@lists.librecores.org, linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: Arnd Bergmann X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 The changes since v5 have been very minor, just some tags and a few wording changes to the qspinlock comment. There's also a PR for Arnd's tree, assuming that lands I'll take the RISC-V bits into my tree and assuming the csky and openrisc folks don't say anything I'll take those too (though now that we're got a multi-tree merge going that doesn't matter so much, but I said I'd take them so I'm going to default to that as everyone else may have tuned out). Changes since v4 <20220430153626.30660-1-palmer@rivosinc.com>: * Some wording cleanups for the qspinlock comment. * Collected reviewed/tested tags. Changes since v3 <20220414220214.24556-1-palmer@rivosinc.com>: * Added a smp_mb() in the lock slow-path, to make sure that is RCsc. * Fixed the header guards. Changes since v2 <20220319035457.2214979-1-guoren@kernel.org>: * Picked up Peter's SOBs, which were posted on the v1. * Re-ordered the first two patches, as they * Re-worded the RISC-V qrwlock patch, as it was a bit mushy. I also added a blurb in the qrwlock's top comment about this dependency. * Picked up Stafford's fix for big-endian systems, which I have not tested as I don't have one (at least easily availiable, I think the BE MIPS systems are still in that pile in my garage). * Call the generic version , as there's really no utility to the version that only errors out. Changes since v1 <20220316232600.20419-1-palmer@rivosinc.com>: * Follow Arnd suggestion to make the patch series more generic. * Add csky in the series. * Combine RISC-V's two patches into one. * Modify openrisc's patch to suit the new generic version.