Message ID | 20221022111403.531902164@infradead.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1169007wrr; Sat, 22 Oct 2022 04:52:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5vh1dUHsthIA97hupNTBVbeNJmOf7ykvsq/6ELex1W+CtSHCAptGT4RjH9Db6cVjPT9G43 X-Received: by 2002:a17:902:6b04:b0:181:5dc6:5348 with SMTP id o4-20020a1709026b0400b001815dc65348mr24055880plk.69.1666439532597; Sat, 22 Oct 2022 04:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666439532; cv=none; d=google.com; s=arc-20160816; b=ogiqR/tp0a5QwvRLjTYDJ8COUCKPxZt2KoKySN8K8m7vzAxJDbHGhNXTCXDmC1g4RQ JQo/LHMi0Ni2K9zkEUtzTDZWLMr74Kii6fNFWYWY5a7COVPKUY7ax1X/G6MasJPZz1c0 In9TV3s/OMWEfY++YUOhZVEPVkkzg7JOQylvWiASN5tHs4Inv2z5t0uDMakYvIPlAdf+ A+Ymkoy1zKXlnYNaqtdWDeryT9mlG4TPyQlNmcQbhLXEW+0XrIDIgNIXxsHZwQ0C/NZn /onq1rmb9xuaIHzgZlnrM7gTJrlt7ZCXUerpLGSZhCM590T43uhR6nKZKM61bDDaJG+c fUfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:user-agent:message-id :dkim-signature; bh=n6LTTtrs2VOiP4go+HBPByerRRMgGVp88WeQbYfK2Q4=; b=EPTkzHL6F7mJwBq2yI/HO0XFYeCQiWbA3pIP1iI/LEbJsl6DPgF3JFRJPCF4fQHX5J HT0OMJJuek7+qRSyEL9RuCvsSykCV5/AzGvqZfr07Y+lMDHpJRPV52CjoCMo4ApZIfaD axwWvsjpL9vhZdHUsgK/QzQdITHkxIwHQXmW8eHgRdlto3DGDI4NJO9Pn43j1ZHIqEqZ SNiAYcTVYJnBC754eyfRR6nTyq2R2VI7Y2qztFy1Lknl0kW0c5w+N+oPEQJOH9TqbxlU xqvlpsMICYt9x22cRkucRh50uCTAwmZImQIqPYr2idOzJX9UJzfOHcGjqYU/PCDBntOz ontA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=HbtSiyIU; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x13-20020a65538d000000b0043c8ce98a69si31148496pgq.711.2022.10.22.04.52.00; Sat, 22 Oct 2022 04:52:12 -0700 (PDT) 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=desiato.20200630 header.b=HbtSiyIU; 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 S230103AbiJVLtB (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Sat, 22 Oct 2022 07:49:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229864AbiJVLst (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 22 Oct 2022 07:48:49 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D5AC24FED2 for <linux-kernel@vger.kernel.org>; Sat, 22 Oct 2022 04:48:48 -0700 (PDT) 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 <peterz@infradead.org> 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747388499669619676?= X-GMAIL-MSGID: =?utf-8?q?1747388499669619676?= |
Series |
Clean up pmd_get_atomic() and i386-PAE
|
|
Message
Peter Zijlstra
Oct. 22, 2022, 11:14 a.m. UTC
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(-)
Comments
On Sat, Oct 22, 2022 at 4:48 AM Peter Zijlstra <peterz@infradead.org> wrote: > > The robot doesn't hate on these patches and they boot in kvm (because who still > has i386 hardware). Well, I had a couple of comments, the only serious one being that odd '__HAVE_ARCH_PMDP_GET' that I really didn't see anywhere else and seemed actively wrong. Other than that, it all looks good to me. Thanks, Linus
On Sat, Oct 22, 2022 at 01:14:03PM +0200, Peter Zijlstra wrote: > 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 Aside from the whole discussions about TLB invalidates; I mean to commit these patches to tip/x86/mm next week somewhere since they do improve the current situation. Holler if there's objections.