Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2075723pxp; Fri, 18 Mar 2022 02:38:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUfXFDdb2wOa455mt5viM/Ft9y+cvI2r8WTZF1Kz+lekw+ZM0726cKhpkl2XfJRBCAc1q0 X-Received: by 2002:a63:d945:0:b0:381:facb:a059 with SMTP id e5-20020a63d945000000b00381facba059mr7115304pgj.364.1647596283514; Fri, 18 Mar 2022 02:38:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647596283; cv=none; d=google.com; s=arc-20160816; b=KRrKehwCErXF9LCO/GYpqZGYah/2S8gc4T+Tiqi1jLHy0ufT9OyHh477kz9eFQXREc ixFWema9iJ8/jFn4hJRQ0BY6HbzhNmMgKQ27oA7bvei+QqMRpx17/L4KwiqU5xN4Y6a3 mkCzFisPoWTKDZvrtxLddcucgItsHipCsBxlChT65PX+sh4bt/PbTDjK02O1aglYywqF KryOoOGZQ0fi9jcDbe104R/VT4sJQOiia+15PNL1BrNCuZrDdeE8uv4VkF0DolrntU3M 1dun/din7c+FisqgJFauww4iuYgYKF6qtETm4Efg1aX50DstuQnNgEhLxcOiSAV74bBh Fa4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kQE1q/xxPrann28gSqVKf2uexS+g3D3p7PuwAkKoNVk=; b=AKBenCIc2klqjsDWXcwgUiYagV6wGLNNn7HudXyPDYJbS+J6+oUDSSuLEntU8/oAU4 h6UEGM2QbYtCI74bWjLP1AyNL5JnXKXxer9Knm4ofOwjLalw9CEnUlYo4O5U/f4WPa2z 0k/oF2WJhvzGWL4TUoknQWAeXu6Ki67ypq3b5a2C+ncmgeqdlxUmaH2GT5PUF31NCyTt tYhJrQ/oPfYrjRvDBrreeTOBChdyhmHkYMIYP/tt4GapnzrRUrfTRXaWEfbG/RPMAOhL XHlUfL+0j20ce/pjOmCasvOvU9h5F38HAzNBHHBC2RDhpOV22wHUBA6LDhKOLPBTJeYP XRDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NKX3SMHt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020a170902ecce00b00153b2d16644si2213626plh.588.2022.03.18.02.37.51; Fri, 18 Mar 2022 02:38:03 -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=@kernel.org header.s=k20201202 header.b=NKX3SMHt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233867AbiCRIlw (ORCPT + 99 others); Fri, 18 Mar 2022 04:41:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233366AbiCRIlv (ORCPT ); Fri, 18 Mar 2022 04:41:51 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37796143C64; Fri, 18 Mar 2022 01:40:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DFAD0B82198; Fri, 18 Mar 2022 08:40:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EC77C340F9; Fri, 18 Mar 2022 08:40:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647592830; bh=iUr5tRvZTo9rXrhUfHmBDsVjXAUzfQvdrJ4GOirMD1k=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NKX3SMHtB+o8znU/U2KTE369qFnc8hXvVsOukLKqhwmETmkyjpUMSdrLeFv1xNn5T MJyJTjAckKX4mKT6/mtDwr9pYbdnc45y8ZNx3Dj3mleoMjB1yGVBx0EYNhpPnsUf2v 3zXX1EklCxZTKWVyMKQh+verzBUIX40X5errq26vokUMTonsuiXmsRMIovokF6ph9U iR+iVF6nab3JbFln6eZYgbeZVdLXTWM1VRCBH5Ek+cz3ZmE34EcjEwOcsYeAp524cO QFOPXbBldio8bBwJyc+oP0i0sCY8H7FE2TmOSfw1OXmyjL/Qwg51p6EjEh1RW5O3i5 FvzQRJ1LQv1Uw== Received: by mail-vs1-f47.google.com with SMTP id k184so3345069vsc.2; Fri, 18 Mar 2022 01:40:30 -0700 (PDT) X-Gm-Message-State: AOAM532kWteunkyYkQwcgg+5okmarNl8zJIkuLVUmwsMJQNwZCmWeBZh xIgbL+Lvn0ZWMwsMymG1dmABhTLZBO5Or2Uw5HA= X-Received: by 2002:a05:6102:311b:b0:324:e48a:75bc with SMTP id e27-20020a056102311b00b00324e48a75bcmr265902vsh.2.1647592829461; Fri, 18 Mar 2022 01:40:29 -0700 (PDT) MIME-Version: 1.0 References: <20220316232600.20419-1-palmer@rivosinc.com> In-Reply-To: <20220316232600.20419-1-palmer@rivosinc.com> From: Guo Ren Date: Fri, 18 Mar 2022 16:40:18 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/5] Generic Ticket Spinlocks To: Palmer Dabbelt Cc: linux-riscv , Peter Zijlstra , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Paul Walmsley , Palmer Dabbelt , Albert Ou , Arnd Bergmann , jszhang@kernel.org, Kefeng Wang , openrisc@lists.librecores.org, Linux Kernel Mailing List , linux-arch Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Palmer, Tested-by: Guo Ren Could help involve the below patch in your series? https://lore.kernel.org/linux-arch/20220318083421.2062259-1-guoren@kernel.org/T/#u On Thu, Mar 17, 2022 at 1:14 PM Palmer Dabbelt wrote: > > Peter sent an RFC out about a year ago > , > but after a spirited discussion it looks like we lost track of things. > IIRC there was broad consensus on this being the way to go, but there > was a lot of discussion so I wasn't sure. Given that it's been a year, > I figured it'd be best to just send this out again formatted a bit more > explicitly as a patch. > > This has had almost no testing (just a build test on RISC-V defconfig), > but I wanted to send it out largely as-is because I didn't have a SOB > from Peter on the code. I had sent around something sort of similar in > spirit, but this looks completely re-written. Just to play it safe I > wanted to send out almost exactly as it was posted. I'd probably rename > this tspinlock and tspinlock_types, as the mis-match kind of makes my > eyes go funny, but I don't really care that much. I'll also go through > the other ports and see if there's any more candidates, I seem to > remember there having been more than just OpenRISC but it's been a > while. > > I'm in no big rush for this and given the complex HW dependencies I > think it's best to target it for 5.19, that'd give us a full merge > window for folks to test/benchmark it on their systems to make sure it's > OK. RISC-V has a forward progress guarantee so we should be safe, but > these can always trip things up. -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/