Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp939371pxf; Wed, 7 Apr 2021 15:35:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSKy2CJUAC2hlOwc/SFLGDdKnUzuIVKcjmuqS14rMqAFiSdahpzIuauw9FIZIw/2lwPJho X-Received: by 2002:a17:906:5902:: with SMTP id h2mr6386229ejq.416.1617834951833; Wed, 07 Apr 2021 15:35:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617834951; cv=none; d=google.com; s=arc-20160816; b=SQmXBe8FPQTkwf/m2DZirME1lPC3dxwlbd8Or+RxflXeSevh4VlkRt9OrJODYnbYKJ 16tXgSbDNpksY+WNeLECxIpMuGB35cmqI5XkqXQFkT4+tXGo2E8/L4bdVQByU6npBlnX I/3K2fDWRdLbiIGZLYATAgba9DSPoHHbk+vT/X9ZNXSjOULhJqCc+ThyLkXbNb+JB0Cn Jx/ygiYrv2sJL5291+17b5SPMMEv2YVgdNLMg+/1zXS5Pk7J7Z3bnfn2wF86dZ415lxr 5mrjA3Wr8HCgFSwDvI7fhzL3Ox6VC0WGdQuyrSCfQLjBggKGtOrn6MPphco23ccNKqAQ kcaA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uHRRfQiUBlAZ+WTehIjctPz3UPqgqzr8MZeVhYIZJnY=; b=vgSPfiBhBhxAO39FuIDz73X6wvJwgAq6P3fPv06ck7t0FIjtyE2yt6djOLNutwc+Un 34X3uYPhTH4eybuo4V2t2/XdHDRKvvG5mHDTqdgjwIvTqc4HsfUDp+dLaYH+CPBoP7md CgVL/FY+SNHG+uvY/SjJoRofVmpq1sTM9wCU3JQg76ZwxLP97c10fIS9bdQuzC/TEoR6 clf8fmsMgV7G2EQdtaV9ryGUBvrkX11h5zqhphZKYAq66BwXsuRcPy+WCmD817DhdRWD oB3YJJ0tMdnYbVIhwxPg/FaocQucuUI4ANF1ewBo4ARkcTbiS4YVS8dT7bPsaXaSs/+5 clOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=TiUqf7vI; 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 m26si21509250edv.514.2021.04.07.15.35.29; Wed, 07 Apr 2021 15:35:51 -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=casper.20170209 header.b=TiUqf7vI; 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 S1350210AbhDGJnf (ORCPT + 99 others); Wed, 7 Apr 2021 05:43:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231805AbhDGJnc (ORCPT ); Wed, 7 Apr 2021 05:43:32 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B782C061756; Wed, 7 Apr 2021 02:43:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=uHRRfQiUBlAZ+WTehIjctPz3UPqgqzr8MZeVhYIZJnY=; b=TiUqf7vIpHbIUyAQ2LLRGADfFO sXUzLx7KL6B+iS3V+LlPGebBQ+n2zSzcmzF4HoVj6LSDpw7kj7CZRMClGNuMmNk8EKkoJ5/Whf5Yg mpdjOxQxHEaKKIfcVprBXVDi1sxySzND4ACUgaRggQQJ1sBmr5MWj0lUTICjF5eoVV6lGhMEMuR6X YzQKXCvyVBM+LiR7KwHDVGI6jrRelZ6TEDdI857fL140/jbgSJ0NoHMjMriLTs8TUbhu7v5zi6ah/ KswtpdjjZMAwKlCMh55ch/rjKrXTOEb7dO3jl4tjEYq/+X5TGvWzI9a7UDmXTxGlx4lFejMoysRfx BGoFPCig==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lU4hc-00EFuS-3a; Wed, 07 Apr 2021 09:42:42 +0000 Date: Wed, 7 Apr 2021 10:42:24 +0100 From: Christoph Hellwig To: Peter Zijlstra Cc: 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: <20210407094224.GA3393992@infradead.org> References: <1616868399-82848-1-git-send-email-guoren@kernel.org> <1616868399-82848-4-git-send-email-guoren@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 06, 2021 at 09:15:50AM +0200, Peter Zijlstra wrote: > Anyway, given you have such a crap architecture (and here I thought > RISC-V was supposed to be a modern design *sigh*), you had better go > look at the sparc64 atomic implementation which has a software backoff > for failed CAS in order to make fwd progress. It wasn't supposed to be modern. It was supposed to use boring old ideas. Where it actually did that it is a great ISA, in parts where academics actually tried to come up with cool or state of the art ideas (interrupt handling, tlb shootdowns, the totally fucked up memory model) it turned into a trainwreck.