Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1016541pxb; Fri, 15 Apr 2022 18:27:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYlDTCE6pzF2kmYnc1+mblL5ccx/oc1Se46P7+Im4o2Zt8gAr3sk8d6aB40kDXDgWDpsZk X-Received: by 2002:a17:903:240f:b0:156:8e81:a0a3 with SMTP id e15-20020a170903240f00b001568e81a0a3mr1618882plo.13.1650072466279; Fri, 15 Apr 2022 18:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650072466; cv=none; d=google.com; s=arc-20160816; b=eL9kELyc1iM5C/9Vh8y8HpTKf1rReTnnO5jnKT5fwv4jiiH6tO7f/wvkPjY3R+ih1t GdP78gzUyLfC1182bIcyAqkEgwa68NIP/hivwlTK4XIl5Jzr693bt8CNMxMzmeVWWOVU ndlJtqz2l3zfMoJ9KiL9gAiWEg3N0KIPPKyFd4MHKOwLp6utsc74NAMxr4CzliHys/wt Gn6A0E+PYkMpI/CnxaegBNoxE83rTG76GJHGkHoqqlGeKn9ddViPlPK/4/c+KscEUl6z nrs31gYMadoxmIpfCrfpFmMasWhtCxra70UY4YJLPgyEUL9oNi2pEKtO5chG9z/hFfx9 ZsfA== 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=kj79e2RofkdZtpcV4cuOdSuq76rCoCCYoAotU+R/caE=; b=PiFDFqunCmb98+vJ/HcqpnNnGdhcfbDJYaTgjYJNhlORMAXP+8tnSjwN46Z73I8StJ qs1T2+s7ij5QJCP3m8kml1C5vLkcg175hS8gbXn62Uy/2MC1Ns+rIrSVjo1SMJ2OngRY p/QBLjS16YlnADYwqT3s4BF8zfJ3lt7XJUqxSkqrQuQ91jCSlFeRGiKX14rjREgiuUVS VbCSIcoG1cXjFc62s6veR/MyAbq0e9Ui8ZNHXgoxGOqJRbiy0mS2hCQwzXLZTeNrCmJW lSQb3iIfX6xqNfQ2tjuxpPOO/Vn0pIFec2NzcY2L8o3C8/qn4qAwu8CG6+gMSpPgudlZ J29A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=Mub7+Xk9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id o10-20020a056a0015ca00b004fdd5c07d29si3052613pfu.77.2022.04.15.18.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 18:27:46 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=Mub7+Xk9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 C07E7E09BE; Fri, 15 Apr 2022 17:58:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238101AbiDNWHr (ORCPT + 99 others); Thu, 14 Apr 2022 18:07:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235054AbiDNWHl (ORCPT ); Thu, 14 Apr 2022 18:07:41 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C21B8AD135 for ; Thu, 14 Apr 2022 15:05:14 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id t4so5952845pgc.1 for ; Thu, 14 Apr 2022 15:05:14 -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=kj79e2RofkdZtpcV4cuOdSuq76rCoCCYoAotU+R/caE=; b=Mub7+Xk9wwSBUzXegquRSmLHR9ZMLVl+1ewzq5ugAx4HR1GhjoZLMMFmESOz5cYpd4 IUiDTMhYid2V2PzT+m554J80jj/yd0Smc/vEc8jxPkbRHFPCLa6XsvbMaUwGDVx5GqRk Sd5V0dPiRN96hXapmj2tjFQuC0Qh4YXAbNDqG/xgOYl1dzeFH2v0VX3nBxxyFb+9Nern 2NFcsL/GBKleI6+/AFI5moGEf64wKIr1pufuCE/CAFm5t1MNIgwqoSnpO8NCH6LeTttu n9q0DFM8C/BW8GyewTYnqBCX5uc2Bm0yPLTCVweVHMFgSjYiAOq98kz9s95A+ZT8PL5J SbzA== 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=kj79e2RofkdZtpcV4cuOdSuq76rCoCCYoAotU+R/caE=; b=QTqLLqCuxSwRhazPxP/hYdxQ5HeZijZbdOcXlCkbmewFjLLD/EVByEUh6qk8wJi7VV kMu0S2keOq2Yc/kOVbLu5UkkVs0kwSX8uD6bVCaBFyVHYxN8WYaUdxt1PNZz7471DEcV XNUu9wDeZ+VCe3mc1S+6fuOW5KguDNMwxaDWguNCPzOVKNv5NzokNtH4tu86ZRYnsmaS iY+ZolSbYNFeGo1mAvMO2y6YzTDLcvg9oioRN/2VpNAn7xDlPeQ+oUk4H05xG2NLJmSZ klT494bNt82cV19wWYxCY1wBETclxYdKTlxv/+yKpVjVVKcDQxypubftOZ47Xd9wgpbN ZsKg== X-Gm-Message-State: AOAM531mrQmrnGAOQRpIe2HvMu8PCnqFfX2JViGo6dOfTMnPZjHPTtwF 42WoEGWb9o+QIFwl/H4ab2lB4A== X-Received: by 2002:a63:780f:0:b0:386:5d6f:2153 with SMTP id t15-20020a63780f000000b003865d6f2153mr3792784pgc.555.1649973914297; Thu, 14 Apr 2022 15:05:14 -0700 (PDT) Received: from localhost ([12.3.194.138]) by smtp.gmail.com with ESMTPSA id g12-20020a056a001a0c00b004e1307b249csm836244pfv.69.2022.04.14.15.05.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Apr 2022 15:05:13 -0700 (PDT) Subject: [PATCH v3 0/7] Generic Ticket Spinlocks Date: Thu, 14 Apr 2022 15:02:07 -0700 Message-Id: <20220414220214.24556-1-palmer@rivosinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: peterz@infradead.org, mingo@redhat.com, Will Deacon , longman@redhat.com, boqun.feng@gmail.com, jonas@southpole.se, stefan.kristiansson@saunalahti.fi, Paul Walmsley , Palmer Dabbelt , aou@eecs.berkeley.edu, Arnd Bergmann , macro@orcam.me.uk, Greg KH , sudipm.mukherjee@gmail.com, wangkefeng.wang@huawei.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 From: Palmer Dabbelt To: Arnd Bergmann , heiko@sntech.de, guoren@kernel.org, shorne@gmail.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 Looks like feedback has been largely positive on this one. I think I got everything from the v1 and v2, but it was a bit mixed up so sorry if I missed something. I'm generally being conservative on the tags here, as things have drifted around a bit. Specifically I dropped the Tested-bys, as this is all based on 5.18-rc1 now and there's been a touch of diff. I've put this at palmer/tspinlock-v3, in case that helps anyone. This generally looks good to me, but I'll wait for feedback before putting it anywhere else. I'd default to doing a shared tag for the asm-generic stuff and then let other arch folks pull in that (with their arch support), but if you want me to take it via my tree then feel free to just say so explicitly. What's on that branch right now definately shouldn't be treated as stable, though, as I'll wait for at least an official Ack/Review from the asm-generic folks (and of course there may be more feedback). This passes my standard tests, both as the whole thing and as just the RISC-V spinlock change. That's just QEMU, though, so it's not all that exciting. 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.