Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3011048iob; Fri, 6 May 2022 15:54:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0GrCG1l1j8fR1CASZVR5HnpT9lrns/SftTkhkt4Es5mxHvZNrp/PYn1VW4ZcSAfmglVBr X-Received: by 2002:a05:6402:2949:b0:425:a52a:28c5 with SMTP id ed9-20020a056402294900b00425a52a28c5mr5904002edb.389.1651877688679; Fri, 06 May 2022 15:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651877688; cv=none; d=google.com; s=arc-20160816; b=YSCUHNeHJywzWetLGYEXqZCDEQ7NNyJyC6BV0qrG6thbamEeQI+mORfgdwX+aCpP5t g3B8yAR08RQ0+fyusyNimMJDATWS5/PD9WG3+cj/mgBCP+wkmCvAIgHuP7wzRO19ng4V AsYbBCSldp4MBJadteP97KHm+OIqTrF6/AQGf2Qd4p8snGaHGwhNS9Lfr18MhtjUOAEO GNXpVD9zoegewUtSz7H5jogn0G+iwuvA/wS3vS/SjgHl4JGpn9JNZYhRa6qDq8g1Xj65 kbHu7RKStKTkG1r7OxadQZkUSCvvfPS9bG2Sd7fO1TdkJszL5f+877M3bHyUJYgzs9J7 4kvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=AT/u6pX9Y8eEm0/TGkT8y0hpcplIopcN5iO5GgH9+tY=; b=OH6nSLjbXXDHYEOHlydJFFLktigMxfe5cSIAsrxPDqCp8CKdke5U5+O9LXwAdUHhG7 qWvukKFMDKun/8SQdb5mm95p6cioR4dLeVzCS3rIpn/h/836L7U3ttXP32n+Nan9CF85 DGZZlWP3I1MJdmbS9LbSxhXqK1ZUY8eEHMwQlkTBaAtB2+hRA1wX45diCv72BCcu3OTo ls8Rm4jIyckd5Cnsjvwl4/Jwfa7O+b4acKiGPWw8DTxpzrussUA4pdKNWWxfSc6AHAzB /nfpYg+6THNbrTwf6+DTbgGhlNxxmbOU4lG0GC9GyN3Go8UCh4fSB6FbBIHNZ5GXN8Sy Jasg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g+9CtdtO; 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 b23-20020a170906709700b006e81dd29c00si5748077ejk.569.2022.05.06.15.54.22; Fri, 06 May 2022 15:54:48 -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=g+9CtdtO; 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 S241354AbiEEDeH (ORCPT + 99 others); Wed, 4 May 2022 23:34:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241594AbiEEDeD (ORCPT ); Wed, 4 May 2022 23:34:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D68012634; Wed, 4 May 2022 20:30:24 -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 dfw.source.kernel.org (Postfix) with ESMTPS id A5F4B61949; Thu, 5 May 2022 03:30:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E1BAC385B5; Thu, 5 May 2022 03:30:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651721423; bh=vOH0kAdmR1eNZn7dq7qeSAVj/s+a8/0GdFuCXLUW/CU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=g+9CtdtO3/zzV1+bZ2QmOejc7pc6dzZz5V0iTRIcx1bdlYXlMHrs9nQqg10r/BeYs +PmvWnmGptI78zUdjkwjx425vxkvJixLXLplrhuBg86OnLbNCrvh/M64SOvKglEE7s 0EjNWcc7pr28auxz3kD64IaTwkSpy2qGJiCIvsSSsgdLp6NiCzjf1gNecbuBIFY5tR OM5TFGUGGcWe4m9ktlTyOKeRL1GmMjEVGuX31mfWrJbyYnZVyp1slkTqDDEDsRonTS p54NUkVH61i1VhOaYPi3pWgpqZoPBA/yCGJdCl1YnaYAHSCWgzgfOKzyePzU9CTlQA ur4WWGWOtmk9w== Received: by mail-ua1-f44.google.com with SMTP id x5so1217211uap.8; Wed, 04 May 2022 20:30:22 -0700 (PDT) X-Gm-Message-State: AOAM531D15dGflb6pDmuh3LQhtWqTwXqWARYZmuBL1Y9A+T2oxA+8HSh mfvze6cQ0IPGBiVnmruIYh0yjMmKm7F441DD7zs= X-Received: by 2002:ab0:2a87:0:b0:362:9cdb:8b64 with SMTP id h7-20020ab02a87000000b003629cdb8b64mr7496584uar.83.1651721421926; Wed, 04 May 2022 20:30:21 -0700 (PDT) MIME-Version: 1.0 References: <20220430153626.30660-1-palmer@rivosinc.com> <20220430153626.30660-2-palmer@rivosinc.com> <2180881.iZASKD2KPV@diego> In-Reply-To: <2180881.iZASKD2KPV@diego> From: Guo Ren Date: Thu, 5 May 2022 11:30:09 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 1/7] asm-generic: ticket-lock: New generic ticket-based spinlock To: =?UTF-8?Q?Heiko_St=C3=BCbner?= Cc: Arnd Bergmann , linux-riscv , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Jonas Bonn , Stefan Kristiansson , Stafford Horne , Paul Walmsley , Palmer Dabbelt , Albert Ou , Greg KH , sudipm.mukherjee@gmail.com, macro@orcam.me.uk, jszhang@kernel.org, linux-csky@vger.kernel.org, Linux Kernel Mailing List , Openrisc , linux-arch , Palmer Dabbelt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.7 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 Reviewed-by: Guo Ren On Wed, May 4, 2022 at 7:57 PM Heiko St=C3=BCbner wrote: > > Am Samstag, 30. April 2022, 17:36:20 CEST schrieb Palmer Dabbelt: > > 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 mor= e > > suitable for simple systems as it is more likely to be correct. It is > > implemented entirely in terms of standard atomics and thus works fine > > without any arch-specific code. > > > > This replaces the existing asm-generic/spinlock.h, which just errored > > out on SMP systems. > > > > Signed-off-by: Peter Zijlstra (Intel) > > Signed-off-by: Palmer Dabbelt > > on riscv64+riscv32 qemu, beaglev and d1-nezha > > Tested-by: Heiko Stuebner > > --=20 Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/