From patchwork Sat Oct 22 11:14:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 13015936 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 7F5AEFA3740 for ; Sat, 22 Oct 2022 11:48:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B41F68E0007; Sat, 22 Oct 2022 07:48:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AA4858E000A; Sat, 22 Oct 2022 07:48:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5BC3B8E000A; Sat, 22 Oct 2022 07:48:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id EC15F8E0001 for ; Sat, 22 Oct 2022 07:48:35 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id C55071A0772 for ; Sat, 22 Oct 2022 11:48:35 +0000 (UTC) X-FDA: 80048412990.15.3BC7140 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) by imf06.hostedemail.com (Postfix) with ESMTP id 7444B180037 for ; Sat, 22 Oct 2022 11:48:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=n6LTTtrs2VOiP4go+HBPByerRRMgGVp88WeQbYfK2Q4=; b=HbtSiyIUOHWi6apk9vXdYVVWmK vmr+WGoRtpgnM82kFqQH7FHC3hu2E4FTE9p30Ciog6g8OsFTn0Wfwavl07bKJzhrNahPQSjAF+WBl w+1WR/zuZSPeDIeoGXD8fIJbNtGSiIjhrnKOhssKmovQKhVyKpGjxgl5KI3maVInzvEuJ03uE43Wc zEJXxiCNtIWxLmk2kRXt1ByH1wI3AiGGpY8fBeVQn4HFUObefQ8oJzn0RRBoyW+Vcs6/qbLit0faa XuOoyj7fVt7DRerw0vuWCxN6IvmqwMRSdEcXtEfdy40jxw9aB9mqYpZH9ID+Zi5qKwt3ZvsmVzCFO AY2i3+JQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1omCzL-005XdC-Fs; Sat, 22 Oct 2022 11:48:28 +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 34C84300474; Sat, 22 Oct 2022 13:48:26 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 1862128B8E50C; Sat, 22 Oct 2022 13:48:26 +0200 (CEST) Message-ID: <20221022111403.531902164@infradead.org> User-Agent: quilt/0.66 Date: Sat, 22 Oct 2022 13:14:03 +0200 From: Peter Zijlstra To: x86@kernel.org, willy@infradead.org, torvalds@linux-foundation.org, akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, linux-mm@kvack.org, aarcange@redhat.com, kirill.shutemov@linux.intel.com, jroedel@suse.de, ubizjak@gmail.com Subject: [PATCH 00/13] Clean up pmd_get_atomic() and i386-PAE ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666439315; a=rsa-sha256; cv=none; b=QuwbFEzVwHsNVO+df6iBvfMYAIDQBxFZRlH2bDvGGVlgNWH8VPRmMpP1SyJlqmIo+wvKTX lxgPqexFI73j07jNocOJNM6mPTYq/bZaTlRVw1OlssGYNZW8QWj73CJ/RFjA8LDatDxJOV vDnTapwHAFFp768VW4UMflvNoUzuR6g= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=HbtSiyIU; spf=none (imf06.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.92.199) 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=1666439315; 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=n6LTTtrs2VOiP4go+HBPByerRRMgGVp88WeQbYfK2Q4=; b=1BZmTkfvP0xSaG4xh5DK5YpISdKP+Vu46wr4o4rMIiBRSm8uCmPnGYG/SFvt7Ls4Wf7xgU +2j5DsNhagbTIeXROiWqFs8Wp8vEWe4Vz3cQ6JcbIMdvHF2VDJhojdbB70Wd4UW2GFFsZm 6supXP5XeNm4ZXuwrAzhT87wGGc7fv0= X-Stat-Signature: 8ejicomg8uwbatif3co955ymoek86g7j X-Rspamd-Queue-Id: 7444B180037 X-Rspam-User: X-Rspamd-Server: rspam03 Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=infradead.org header.s=desiato.20200630 header.b=HbtSiyIU; spf=none (imf06.hostedemail.com: domain of peterz@infradead.org has no SPF policy when checking 90.155.92.199) smtp.mailfrom=peterz@infradead.org; dmarc=none X-HE-Tag: 1666439314-663894 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, At long *long* last a respin of the patches that clean up pmd_get_atomic() and i386-PAE. I'd nearly forgotten why I did this, but the old posting gave clue that patch #7 was the whole purpose of me doing these patches. Having carried these patches for at least 2 years, they recently hit a rebase bump against the mg-lru patches, which is what prompted this repost. Linus' comment about try_cmpxchg64() (and Uros before him) made me redo those patches (see patch #10) which resulted in pxx_xchg64(). This in turn led to killing off set_64bit(). The robot doesn't hate on these patches and they boot in kvm (because who still has i386 hardware). Patches also available at: git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/mm.pae --- arch/mips/Kconfig | 2 +- arch/sh/Kconfig | 2 +- arch/sh/include/asm/pgtable-3level.h | 10 +- arch/um/include/asm/pgtable-3level.h | 8 -- arch/x86/Kconfig | 2 +- arch/x86/include/asm/cmpxchg_32.h | 28 ----- arch/x86/include/asm/cmpxchg_64.h | 5 - arch/x86/include/asm/pgtable-3level.h | 171 ++++++---------------------- arch/x86/include/asm/pgtable-3level_types.h | 7 ++ arch/x86/include/asm/pgtable_64_types.h | 1 + arch/x86/include/asm/pgtable_types.h | 4 +- drivers/iommu/intel/irq_remapping.c | 10 +- include/linux/pgtable.h | 71 +++++++----- kernel/events/core.c | 2 +- mm/Kconfig | 2 +- mm/gup.c | 2 +- mm/hmm.c | 3 +- mm/khugepaged.c | 2 +- mm/mapping_dirty_helpers.c | 2 +- mm/mprotect.c | 2 +- mm/userfaultfd.c | 2 +- mm/vmscan.c | 5 +- 22 files changed, 110 insertions(+), 233 deletions(-)