Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2707769rwj; Mon, 19 Dec 2022 07:57:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf4J91F2N2CR1zmYL5nvgJoiRg37a9dNod3954BePONbHe/xH5bqCf+pyu7O7cjk6paMvCEh X-Received: by 2002:a17:90b:3687:b0:21a:1793:5c99 with SMTP id mj7-20020a17090b368700b0021a17935c99mr44039487pjb.42.1671465442634; Mon, 19 Dec 2022 07:57:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671465442; cv=none; d=google.com; s=arc-20160816; b=gsnqIAj6B2I8D+dvw2nlVTVmyizZTGg0xsr1T06qDGNrXJ3dzVboUZp4RmzaSSkV5g gFp+LatgukiCCTKASkWuGg4DhOr4GXnU1ppsO6IEEkPhllc+g+LpBEraYoTs+uQ80VjD A6NXOLdDCUqGRzmWT5RRzovt1kQk/Mc54Dh4/XYAJMC9zvT0mw+8Ae+w3MgSx+d6irPQ FKgRoGjKbIFOab5msFluAYR4Ki3TiXlmozzJncrsc2ldjGzEnAj4n3U6mnfXwImsySDL PlgyBgr1W8cRJNvsPailxPAX8ADp9j/ytoGGJ94mATHH9+D6Et/Xdj1euUSCrmXgor5i B9ew== 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=kI4Lo2eTc7TViP7CmNTlVP4L2d4aRAIDxWiWnUYFIrU=; b=HplKlwQmefQkLuKJ5oQqt8MSWPl5jqz/AtPk8/lqbMxWpJA3oDQJyEAHzfIxV82IUH i2ExdsZSZdnGKBpnVBv2NBii4DxaTj7v2j7Nl0KDFBoAv+lVHugmcVpclWF/NmfVLxB6 A4JWTqfoPVgst98fOQfpk/SFnBz5jj3w72KRp78bvpbY2URCo1Q0Y4jyrdNLFqg3XYCp oIwANgyHVPLtFSvRQqwkBz1CH/eTp8zr6dSWsrBeCxN6tDCjTY6/kXOfQ/vhB5dsPJU7 x+06pfXzmZ46XUiwI8s7X87/FeXB++61XktpND3OulNK5wgqxM9kL2zFDdkcZWZ4pacP 6FSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=TG+tRuZc; 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 oc3-20020a17090b1c0300b002192a6c09d5si11861979pjb.10.2022.12.19.07.57.13; Mon, 19 Dec 2022 07:57:22 -0800 (PST) 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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=TG+tRuZc; 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 S232791AbiLSPqz (ORCPT + 71 others); Mon, 19 Dec 2022 10:46:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232631AbiLSPpy (ORCPT ); Mon, 19 Dec 2022 10:45:54 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F42512625 for ; Mon, 19 Dec 2022 07:44:43 -0800 (PST) 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=kI4Lo2eTc7TViP7CmNTlVP4L2d4aRAIDxWiWnUYFIrU=; b=TG+tRuZcAz321fdSqW97adMUwL HIY5nwQZlLSyPYxBtLON/dOfKneHU1UU/qafcRRw+ZTy8prlDqBqUmiRfgx6AY2FB/tnAcXgvRwZB yHgk8bbwb5M48UBYbfjELFnhqWC4ZzOS7xcUXm0fKg5WCvr4HsUdp1xoz4AJWAPQHlH2u6dffpnia 6zb+XnRuQds3i/kR3xpQYuFb3UXMB4hqcCDo4XufEikWVD+UmcNozhGCQKGXp33kdtLW9eApWCqxU w1kn2UylJJioSvJavNfPUrpC3hxkYuPII/RnGF8UdlfNxe0EHv+EkXggNHc1SjakcNi9w+7cns9h8 OTVQ9iFg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1p7IJo-000r9D-BN; Mon, 19 Dec 2022 15:44:44 +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 (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id D8385300193; Mon, 19 Dec 2022 16:44:33 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C82F7201A8ADD; Mon, 19 Dec 2022 16:44:33 +0100 (CET) Date: Mon, 19 Dec 2022 16:44:33 +0100 From: Peter Zijlstra To: Linus Torvalds Cc: Nathan Chancellor , Uros Bizjak , x86@kernel.org, willy@infradead.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, aarcange@redhat.com, kirill.shutemov@linux.intel.com, jroedel@suse.de Subject: Re: [PATCH 11/13] x86_64: Remove pointless set_64bit() usage Message-ID: References: <20221022111403.531902164@infradead.org> <20221022114425.168036718@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 On Fri, Nov 04, 2022 at 10:15:08AM -0700, Linus Torvalds wrote: > On Fri, Nov 4, 2022 at 9:01 AM Peter Zijlstra wrote: > > > > So cmpxchg_double() does a cmpxchg on a double long value and is > > currently supported by: i386, x86_64, arm64 and s390. > > > > On all those, except i386, two longs are u128. > > > > So how about we introduce u128 and cmpxchg128 -- then it directly > > mirrors the u64 and cmpxchg64 usage we already have. It then also > > naturally imposses the alignment thing. > > Ack Out now: https://lkml.kernel.org/r/20221219153525.632521981@infradead.org