From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67F73C433EF for ; Tue, 10 May 2022 16:55:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347727AbiEJQ7X (ORCPT ); Tue, 10 May 2022 12:59:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237624AbiEJQ7V (ORCPT ); Tue, 10 May 2022 12:59:21 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CABE27E3E6; Tue, 10 May 2022 09:55:24 -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=qChzNactocCEZRqMf2gnDNoVYP3f9TniXLt5wRF3A5Q=; b=JpKf5kA1OrSjASCjykVhJhnoup z6QHOCgOPKn+Lk/lN0dJXLk0sGxFb9ItCORf0OnLglLfM9RNFrQqBSW+FQfgvC1p43UXmJsrQBmjD ejXsiV47eCVyVERVxDgjni0lLqNZInRD+G9QYVsDq9KjTpU2Uq2/Wi3IkjHVMQykmevYzML6Ty3Ij Enrsv1XwKy+tXEK8KkJ46v8vsOeeUNWPuIxbMP6uAb1ISV9pqCQnpK5amiDJJClzPG2pikHVzfEim exb9hkcc5KOqT1M8koF9e4Fn7ZUWkMSaD4MKQt2k4XbYfEathUSewU3ZaKvkBeRQzz9DI/RaYqfPd Gj72tyQw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1noT8e-004dtT-Bl; Tue, 10 May 2022 16:55:08 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 46A7598100A; Tue, 10 May 2022 18:55:06 +0200 (CEST) Date: Tue, 10 May 2022 18:55:06 +0200 From: Peter Zijlstra To: Uros Bizjak Cc: x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Will Deacon , Boqun Feng , Mark Rutland , "Paul E. McKenney" , Marco Elver Subject: Re: [PATCH] locking/atomic/x86: Introduce try_cmpxchg64 Message-ID: <20220510165506.GP76023@worktop.programming.kicks-ass.net> References: <20220510154217.5216-1-ubizjak@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220510154217.5216-1-ubizjak@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 10, 2022 at 05:42:17PM +0200, Uros Bizjak wrote: > This patch adds try_cmpxchg64 to improve code around cmpxchg8b. While > the resulting code improvements on x86_64 are minor (a compare and a move saved), > the improvements on x86_32 are quite noticeable. The code improves from: What user of cmpxchg64 is this?