Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1272110pxp; Thu, 17 Mar 2022 06:27:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNDjOV4+AxaKiRQjbbrr8+/h9isb7H0VLfm2DGtJbWfPoG4vrb26XwQhsUnUoFVIvpClke X-Received: by 2002:a17:906:30d1:b0:6cf:c116:c9d3 with SMTP id b17-20020a17090630d100b006cfc116c9d3mr4185578ejb.245.1647523630420; Thu, 17 Mar 2022 06:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647523630; cv=none; d=google.com; s=arc-20160816; b=BRPS+Wy6o0qfh/GAz0Kks+Y/bALcxS61aU06ed2aw3IRSKbQgaww3Ns/FWFuUUuBqO 4CMK870u+ewNn9xjFMi2gJsPpdTglw+BKez+SKNiLFHqsvCz0klDsH4RhxqoS7ozTXoe HUbSnRIxhfIq4srNAryUOrlzDYNx/vVn/zXfq4oqg2U+Iy39plshGzC1U4BkoSyh/uwW JHCXWm5FPKwgpQ3Syf7z4Z0CrQScDxctHez7I8wDFzRY3I+e5Hyxj3p8TjLrxBD6UFDD hfl5zcBuf364gmKft9/H9bIwqAAkv6OGu8ggwwXZSldkJIqlWYsP3H208ldIrXNLi/UC dGQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=C7ItnRLqsyXMDlRi/r3r07gUX7Qc3oIdvPDPcNRdwTE=; b=wYbCRyewF7HWZACuV2d6lK8NoDgzvBMykcQcx9qbgOjWSwj6S5rWivjo2AzcX1vrDT E1OXLR62TzPf0xo1g5pO6EKfYdp9r+2pVQ5jz2p6eUUH8FQkFvcte2tF6H8Z1VLUJ6SH kxvn5QGNSt0Ps2O2vZVIPcucAWFHplDUH8XBlsYrt5Eq7UZDd/DM7OVKCt1KW1zN5u2H OfLYAwmqpoiUBpNHTZCRwoqqROxQwwUwItFHmd/9DN8iY6MoV4Wct4/S//K6KSfK3QXx NfckSCiqPYQaWwFoKeAqF5CT3DSpFQqr+uc2CDbagF/sxQne2UDIVRFwjpxT2fUdW5Ct eZIg== ARC-Authentication-Results: i=1; mx.google.com; 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 i18-20020a1709064fd200b006db2ba2a9a3si3253521ejw.196.2022.03.17.06.26.43; Thu, 17 Mar 2022 06:27:10 -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; 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 S232858AbiCQLLe convert rfc822-to-8bit (ORCPT + 99 others); Thu, 17 Mar 2022 07:11:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbiCQLLe (ORCPT ); Thu, 17 Mar 2022 07:11:34 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF3C41CABFE; Thu, 17 Mar 2022 04:10:14 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUo0i-0007fY-TN; Thu, 17 Mar 2022 12:09:40 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: linux-riscv@lists.infradead.org, peterz@infradead.org Cc: 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-riscv@lists.infradead.org, linux-arch@vger.kernel.org, Palmer Dabbelt Subject: Re: [PATCH 0/5] Generic Ticket Spinlocks Date: Thu, 17 Mar 2022 12:09:39 +0100 Message-ID: <11364105.8ZH9dyz9j6@diego> In-Reply-To: <20220316232600.20419-1-palmer@rivosinc.com> References: <20220316232600.20419-1-palmer@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_NONE, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR 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, Am Donnerstag, 17. M?rz 2022, 00:25:55 CET schrieb Palmer Dabbelt: > 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. I've tested this on both the Qemu-Virt machine as well as the Allwinner Nezha board (with a D1 SoC). Both of those are of course not necessarily the best platforms for benchmarks I guess, as from what I gathered before I'd need need multiple cores to actually get interesting measurements when comparing different implementations. But at least everything that worked before still works with this series ;-) So, Series Tested-by: Heiko Stuebner Heiko