From patchwork Mon Dec 19 15:35:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 13076736 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF7F5C4332F for ; Mon, 19 Dec 2022 15:43:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C45688E0006; Mon, 19 Dec 2022 10:43:45 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A0BC68E000D; Mon, 19 Dec 2022 10:43:45 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 55B8A8E000B; Mon, 19 Dec 2022 10:43:45 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 088A18E0008 for ; Mon, 19 Dec 2022 10:43:45 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id BFDA1AA063 for ; Mon, 19 Dec 2022 15:43:44 +0000 (UTC) X-FDA: 80259475968.05.7D02985 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf12.hostedemail.com (Postfix) with ESMTP id 643D140003 for ; Mon, 19 Dec 2022 15:43:43 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=hmTPYkhC; spf=none (imf12.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=peterz@infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1671464623; a=rsa-sha256; cv=none; b=KkP3TA/MQhkOho5HeuuJ0dl0m21dJUN9l6e2nLvqY/vN9JpI2lZnODDGXYkGI24FEqdFyM dUWM5f2UH4/qoAxWJlSIFT0O1aV4Gic9qb84qrE71xo9TzA447U+vJBC1G00Yv5j7aaGnO iHDKeI/oelRC3L0t3uBUau1JOjPSKyg= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=hmTPYkhC; spf=none (imf12.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=peterz@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1671464623; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references:dkim-signature; bh=fH7vUY5IU4m1cKDzFBDt+eq6lohLTkHTMZiIE4ke4VY=; b=1HQ+QDGAMIqMMFoQkhWMI3MqQ74s1+zSMS9Epf/GaExVedldQaywfa4NSL3HZf9dDKePHq Y80+S6bLkI5BJt0LyDZGKqRXVphtzipwp4Cn18O1jVE6/PKURtAbB6LyGi689MjQSII5kY q5gzMw8yYxlQqbWuHT1recLdk+jNMdc= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Subject:Cc:To:From:Date:Message-ID: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=fH7vUY5IU4m1cKDzFBDt+eq6lohLTkHTMZiIE4ke4VY=; b=hmTPYkhC/7+cqNJUN5N9enIC/k RI5NBONX3QLG7mKq+yLzWmmPG8HTz/NW05/q2t+NIC08Ns9r4JZ2UscvuMGis6p5aIV98rt+d5PYB nAJujak0DMGsy0jBuXm6mns7IRswwY028uKylH5d6HEyxKa0v7TWHR4V7NhweEQZexadjXP2cENfB PN0CBN/Z4zLKueR3qNhwICGa49xaayJGmuojh1b1Ti3KDYK/3ICqowGwv0pFcI9xUFdbcrZ+0iIxu Ge/5HFB3a3AtlZL/G1E9c/b18BhPteeNkIwbOO3E2lBnqhM7d/CMFvm6DhrYuPEd5j261z2I8GL8m +sBcpybw==; 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 1p7IIS-000qwa-OK; Mon, 19 Dec 2022 15:43:20 +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) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 9B358300193; Mon, 19 Dec 2022 16:43:06 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 6037520A1AB9F; Mon, 19 Dec 2022 16:43:06 +0100 (CET) Message-ID: <20221219153525.632521981@infradead.org> User-Agent: quilt/0.66 Date: Mon, 19 Dec 2022 16:35:25 +0100 From: Peter Zijlstra To: torvalds@linux-foundation.org Cc: corbet@lwn.net, will@kernel.org, peterz@infradead.org, boqun.feng@gmail.com, mark.rutland@arm.com, catalin.marinas@arm.com, dennis@kernel.org, tj@kernel.org, cl@linux.com, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, Herbert Xu , davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, joro@8bytes.org, suravee.suthikulpanit@amd.com, robin.murphy@arm.com, dwmw2@infradead.org, baolu.lu@linux.intel.com, Arnd Bergmann , penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, Andrew Morton , vbabka@suse.cz, roman.gushchin@linux.dev, 42.hyeyoo@gmail.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-s390@vger.kernel.org, linux-crypto@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org Subject: [RFC][PATCH 00/12] Introduce cmpxchg128() -- aka. the demise of cmpxchg_double() X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 643D140003 X-Stat-Signature: ps4gqj9x6hdw8f635osshdqwxyqon8kk X-HE-Tag: 1671464623-732723 X-HE-Meta: U2FsdGVkX1+hQv8VyFwfetS/GNKhM3FJhxQNNIaKiYb4csQ6NT/+JI6RSupyvdUX6ik++z20EABlkwPawhIjSeUJ3F3wwDtTn5Gechoz5xgu6JKvYuFEquBYXpKU4J3smhNMQY1K/9zBJ2d0CQl4uU0kvZNIAeAit/81+Zube4UAUnhHhl7bkZHD95P7D5/2USkvcYB9fgXyRfzMb0njJzTwrYbMGog53DbF94ebTBjlnIFZC2Q3c7FSM63rs+5tNpQrVy1tJQM5Afp9d30g25Zhgz1UM/tO93suA1ItCnjvNjRPHKtqEOGmS8XyNcgK/xIvRcM11GJHAua50ZByXo1BpRV/8e+U6FP8S9+8buAa1RyXldMoDbvbqmISzkMvsD5TUFB39/D8CuemJtpWzKWhbkX21xQPJXkA3uYXdCjkQo449GH0yvkcAk/A8QFM+8PGWS2elNCoMtxP1x0gBPTb6NxsibzJfyLEWaQeNnacflSrVyE0MK3kEV/3hZSQJNlo1x4sDru9L1dE4ELJfc6ohZFbwEoDPzZ2Jyu1AN8oHNYiUzv2dZrjj78vs1WA64ynn1xAmy+uiZ+9O2SN+rYujzX4Xpd1DNWs9yQ3B5pqzh9uIcSxeFdf7ViOU/Oefv2tZEmMj61EnKkXTEddZypMlEFnGagPAauCIic5AAKoPeL7zfJ9IWvJxd5E5FlyVHjBvMslX8H76e49D6nGhJKnE4Dr6IewyX/qdgCejCm2dQrSzneS/b0xPg05vGVvL+cLm6+kTYAIPBejQGTIyYph06oQy9eGMXSk5qnX3x8XvVr6VBbcvTpkht+eJUMf7fwMg4GjdhPcTpT37QCGsoTCThcX1UAP3tk2qrzLiMzaou3y9RfQ2OfDWVZ/gMbu3h6LrfbbQRTUHe2JhEPrffRUGsvWoUAtD04MyttPikLLmUl9ensjWbDK20G/4OKuzXFWieK6fwOjQ0WgN/G Y2QqPHes XAKu4fFlCiulNxkaPWyWDKi8P8QQ4Kx0uBi0sva8k7tEmrOs= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi, Since Linus hated on cmpxchg_double(), a few patches to get rid of it, as proposed here: https://lkml.kernel.org/r/Y2U3WdU61FvYlpUh@hirez.programming.kicks-ass.net based on tip/master because Linus' tree is moving a wee bit fast at the moment. 0day robot is all green for building, very limited testing on arm64/s390 for obvious raisins -- I tried to get the asm right, but please, double check. Signed-off-by: Boqun Feng