Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1682368iob; Thu, 5 May 2022 06:25:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWnwfgBpk+S5KsVUtcNwe/uIzs2IcGQV+xOCTjrS6UWIl56gueMO0j3DGBvE34/t/rqjaC X-Received: by 2002:a17:90a:1602:b0:1d9:9ddd:1f8b with SMTP id n2-20020a17090a160200b001d99ddd1f8bmr6251236pja.130.1651757120046; Thu, 05 May 2022 06:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651757120; cv=none; d=google.com; s=arc-20160816; b=y+VsebBwA0sfns0ZUl0HmvZ4BiDhJIFHSMLfLfqkk91dcqSjStMBj3AL4wezufua/J 8nY+hOD/ouJJWXVtXoi/LsQyP+X8KXwSEUOknPiZc/QSidlFGMTQ4N2TIcAUuKVKtCHH vxmxOqc3PcAUm1N5r70CkQmCtWbJAm1jIYoRt8DPPI59tcY388U0LYXMQtBXhOt7+1Bz /v51WFFJsRaz/SonaMhK1YlUBrHut22wSsaQTDHHX0KtDQDY+9sxKPKDd74bZEsFcBfo bB48Vj3vhIBk543p7F85HFXeum3ROM4HsIPakasuk70LfUmKjQP4p4RpgIfvUK/HLc6A KlSQ== 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=gs/q3PLHLt1t03qEik9VaujRGHPIpARv0Cbgs4KeFjM=; b=CebRU373eLAqLwkWxuJi17iHWog1UMAIfj5TX26Rms2nTuub17J0C8qlHUlPWOdAhe bI2xlWmK4RfMm0yaluQj4y/93YL9T7Eif9/a/pjRHzdmwj/SJ/RwJxouHWMoDbVQkPTM DFlgCnx6z2vgoZWfdJk/xnt7GgRHHT523yZkLRkYZ0RRnuzw5A0OiaMiXWc2PpUOaPqc 49ToD6EKd7tpYzXpEoEinO/loR1zw/qen9ybM7UoO+GbWtYTetsoICMoSwEAWYg9NXvI 1E5pGYGZ4ojGRT1gNnmG0pjZrXqosFv3FaAcYE2+CVfSSvm1zTHYMor4Q9l4BRu6fU3p NcPA== 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 s11-20020a170902c64b00b0015eb6d4967asi1654722pls.340.2022.05.05.06.25.03; Thu, 05 May 2022 06:25:20 -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 S1348957AbiEDMBd (ORCPT + 99 others); Wed, 4 May 2022 08:01:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231410AbiEDMBb (ORCPT ); Wed, 4 May 2022 08:01:31 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FD46183AF; Wed, 4 May 2022 04:57:54 -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 1nmDdM-0001N1-BL; Wed, 04 May 2022 13:57:32 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Arnd Bergmann , linux-riscv@lists.infradead.org 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 , Greg KH , sudipm.mukherjee@gmail.com, macro@orcam.me.uk, 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, Palmer Dabbelt , Palmer Dabbelt Subject: Re: [PATCH v4 1/7] asm-generic: ticket-lock: New generic ticket-based spinlock Date: Wed, 04 May 2022 13:57:31 +0200 Message-ID: <2180881.iZASKD2KPV@diego> In-Reply-To: <20220430153626.30660-2-palmer@rivosinc.com> References: <20220430153626.30660-1-palmer@rivosinc.com> <20220430153626.30660-2-palmer@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 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 more > 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