Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3515057pxf; Mon, 29 Mar 2021 04:33:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXlQybY8Yvb8Vzm4VnEiapzVO//CcwUn4JVpu5ZMQeneggR0WJsTuFHQkTjngvi9qgQ/Mm X-Received: by 2002:a17:906:a155:: with SMTP id bu21mr27909057ejb.400.1617017591458; Mon, 29 Mar 2021 04:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617017591; cv=none; d=google.com; s=arc-20160816; b=Pyxmw0zkKDgFlUQ4Qx5a4hFcTCjgr5oavzSEFIWjOXgphThsMFt9Dpf0laqN0mfpyA otZ6xS9PoXRcPrDk4I9FjxgRUC5cqpS5rqRHNI1qYhdz+HIPZB2zi/ajLHBKwIGlMrsi xvLuAfkDk9GcrUWm4WieNQWP6ezYh5n4mCqu2B8y4aaD0vMHIamKg9nzFmVZ8AYxFYoE 5td27mqq7RhifeaNE2MiYNi7ysqD3ibUi3Ve3K5uYRQdBvFQlav7S9KL4umaDarQ+Svr BtaE8eUSRzjXJrz4z3mppuYniXoPOYYjPYjyQs6OeerHgG9zuipFmCYZ+8XAfslf8AJM Kqcw== 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=xAASgCT1znE4iZyX4yKtFW+FR4NtFv4F0rZP0TttRpc=; b=ccl2vR3RHrhGGjqr7uATwcm0eeKm+CI8VDOSuPHHBftQOrd64SNTyjl9yOIE49OrcE rNCNh3XGgjuPHdXzJ5Q66LAtsPWQ9DIoVX2mRFWywJ33RnYzOWGffBTFI2kUZgwgUiSP Ic269rCvTp2JTE0dF52XBiNsSug6rhhsx8TbFhXJErAplvyyrhtuLIIVfWaNh28bfl65 +dwTUXer1wxQC5z4Jj+H4q1v2mbRzm7IF9lU6mJxbqqeorMYkIefUGtegkpMDB8RMyns oHUh7F4oS5pi/IrvY9DBMw8hFCJztAWREENdhzxCXdh4bYcAaQOFIQ0dTfC3i9ej4pOw Yoaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=IUiKLtt3; 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 lt10si12179224ejb.16.2021.03.29.04.32.49; Mon, 29 Mar 2021 04:33:11 -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=IUiKLtt3; 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 S231222AbhC2Lb5 (ORCPT + 99 others); Mon, 29 Mar 2021 07:31:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231154AbhC2Lba (ORCPT ); Mon, 29 Mar 2021 07:31:30 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE170C061574; Mon, 29 Mar 2021 04:31:29 -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=xAASgCT1znE4iZyX4yKtFW+FR4NtFv4F0rZP0TttRpc=; b=IUiKLtt370+VXpr4Dpb9tIRnmD lUlt8V0bVGbfLA+R8YSPIs2KN/WpHeEsLTx1xJLbLiXLynAZmIxYNh4kuFIPd1cjaXGTgOSWQoOIV QETpqcvhbwpVKGfbKrnWvzkGFspWw6FRMud3euBEeDrqOAmp45mWd2u7Kvf3O9M4aI5VFhAcu8//F AOGsqL6Ut9BtLNCe6g8wHoyGxVKxBkiRTrveBGZbdnHRjwFwVYBvF/DfhKrlZ9HZXRFFvwsnKDWWN e5CnjI2RJ1h+QIvFIOvGX8kRLrM3d7ZO9E4RhkJ9yNOU24aaT28io+SH1vNMaNB0s+x2RrCPd/ZBl 5izOhRpA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lQq5j-001TUs-4F; Mon, 29 Mar 2021 11:30:08 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 982223069B1; Mon, 29 Mar 2021 13:29:54 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 85F90207539C8; Mon, 29 Mar 2021 13:29:54 +0200 (CEST) Date: Mon, 29 Mar 2021 13:29:54 +0200 From: Peter Zijlstra To: Arnd Bergmann Cc: Guo Ren , linux-riscv , Linux Kernel Mailing List , linux-csky@vger.kernel.org, linux-arch , Guo Ren , Will Deacon , Ingo Molnar , Waiman Long , Anup Patel , Sebastian Andrzej Siewior Subject: Re: [PATCH v4 3/4] locking/qspinlock: Add ARCH_USE_QUEUED_SPINLOCKS_XCHG32 Message-ID: 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 29, 2021 at 01:16:53PM +0200, Peter Zijlstra wrote: > Anyway, an additional 'funny' is that I suspect you cannot prove fwd > progress of the entire primitive with any of this on. But who cares > about details anyway.. :/ What's the architectural guarantee on LL/SC progress for RISC-V ? And what if you double loop it like cmpxchg() ?