Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp903431pxf; Wed, 7 Apr 2021 14:38:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7bmA/OrDcXXMObn5TY199CsjtbHkbu06DLiWE4B2ZAfXccfcWPef911h+wjyuUhqFpYwv X-Received: by 2002:a17:906:d8a4:: with SMTP id qc4mr6224506ejb.529.1617831494782; Wed, 07 Apr 2021 14:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617831494; cv=none; d=google.com; s=arc-20160816; b=tgNtGecjp+xVbsIYeyl8YvIIipRG+84OgeskUUhz9xOX0af/+JKsdjUL9ewi9vVYiT 7fzCZA0OdGXBGcVNeNbycAOq89em5J+hfBskg3V63wlqdXC1yVo/c8lU6SOcDmPhbkpe vGIgYpsGo+54ntoWrmW5BjfbXw+QVERvOBabIAlQ+dhd5fInj1YLRRKyGiBcLHi1vOmv RMHxC4eaCDdeQsrQxrIk1yVsuFSG5asJ/bKj9MmiexiS1i25Dz543Mb68QDd/VsU5MTq wHadEVje0QqqShLeJ+LAWKiQG5awcRVGgRGmwB5pUiSrzLNXupgAXiZpqSbAPaEg26HI rcAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PJEGDTfx4FpHUfzm/IRlkyDCU12YvWeK1NxNzYl/AlY=; b=TuXBvyCm4GGA1g1jGPtlJWcGRZXoIzyicHqHwcjHp5mz1D/UxQv1jPkM7+0UCrxwAe jTPem+QeG1yT6vFzTuFTqd5m8/EAkNPBzDZYtU61mbR1gV1OdtZhYeEkGfKXeKJIHuwq Fjea4CGe1phaVFfS3uTLUcDmoZ4EhKGI1wBi7f3hDIvecjvt6s9ZnOkQpOrsmV3zmHap isWwVKc1ndusy8jSXYNZV8/KU+DX/D5IbSfEEl1h8K89kfbUnsiKH2kVVJXhQBV8YZq4 PLyyBwQfnbtWl5lyIXa41XjU11EPq0yabjnRFioiZB5EABqoX3IGU1vMmWan8ddWYkcV TiPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=IuK+PUXs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si20879402edd.315.2021.04.07.14.37.51; Wed, 07 Apr 2021 14:38:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=IuK+PUXs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354372AbhDGQzN (ORCPT + 99 others); Wed, 7 Apr 2021 12:55:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354367AbhDGQzN (ORCPT ); Wed, 7 Apr 2021 12:55:13 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53D76C061756; Wed, 7 Apr 2021 09:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=PJEGDTfx4FpHUfzm/IRlkyDCU12YvWeK1NxNzYl/AlY=; b=IuK+PUXsE0Q27Z+WJZY5fVgKZd jBBDFbH+TO4Kuw/DGmuRbqBZAkScBp4b4IEEuaduuYruDLfTOg4xSHn+nPCdPXTiKWBfVw8GtMbpu eibVSjdAooE/oCCFJ9i7VNHhqde2OWycjWHa1A/Ek6dBGd4E22/GbH6z0XDVTCvebNvzLmqbsb04z oh/m3/o6ffBGwiYBbqDMXv7mJScMbc3t839fHnb1DCwFu8u7UiJ7DGG497/+izZDMNIQgUQF/SC9c ayx70l8lQidfnNLmdGyJZVkt9ZzXsum0ZBoqo1EChaX7MgWdaOhI5KBct919YT6+iCK/vgUwUnErn pwDsDA1g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lUBS5-005W26-Ah; Wed, 07 Apr 2021 16:54:49 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id A8A5C3001FB; Wed, 7 Apr 2021 18:54:46 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 867582BC07BA6; Wed, 7 Apr 2021 18:54:46 +0200 (CEST) Date: Wed, 7 Apr 2021 18:54:46 +0200 From: Peter Zijlstra To: Christoph =?iso-8859-1?Q?M=FCllner?= Cc: Christoph Hellwig , Guo Ren , linux-riscv , Linux Kernel Mailing List , linux-csky@vger.kernel.org, linux-arch , Guo Ren , Will Deacon , Ingo Molnar , Waiman Long , Arnd Bergmann , Anup Patel Subject: Re: [PATCH v4 3/4] locking/qspinlock: Add ARCH_USE_QUEUED_SPINLOCKS_XCHG32 Message-ID: References: <20210407094224.GA3393992@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 05:52:36PM +0200, Peter Zijlstra wrote: > On Wed, Apr 07, 2021 at 04:29:12PM +0200, Christoph M?llner wrote: > > The comparison with sparc64 is not applicable, as sparc64 does not > > have LL/SC instructions. > > Sparc64 has CAS, without hardware fwd progress. It has to do software > backoff for failed CAS in order to do software fwd progress. Again, the longer answer is that this applies identically to LL/SC and I'm sure we actually have (or had) an architecture in tree that did just that. I just cannot remember which architecture that was.