From patchwork Tue Feb 2 11:24:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oscar Salvador X-Patchwork-Id: 12061401 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90977C433DB for ; Tue, 2 Feb 2021 11:25:01 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id EFE6A64E4F for ; Tue, 2 Feb 2021 11:25:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EFE6A64E4F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 37E936B006C; Tue, 2 Feb 2021 06:25:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3072F6B0071; Tue, 2 Feb 2021 06:25:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1CEC46B0072; Tue, 2 Feb 2021 06:25:00 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 03BB46B006C for ; Tue, 2 Feb 2021 06:24:59 -0500 (EST) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id B5458180AD804 for ; Tue, 2 Feb 2021 11:24:59 +0000 (UTC) X-FDA: 77773095918.02.ice22_1d0bc86275ca Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin02.hostedemail.com (Postfix) with ESMTP id 96FF610097AA2 for ; Tue, 2 Feb 2021 11:24:59 +0000 (UTC) X-HE-Tag: ice22_1d0bc86275ca X-Filterd-Recvd-Size: 1719 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf33.hostedemail.com (Postfix) with ESMTP for ; Tue, 2 Feb 2021 11:24:59 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id D6972B18C; Tue, 2 Feb 2021 11:24:57 +0000 (UTC) From: Oscar Salvador To: Andrew Morton Cc: David Hildenbrand , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H . Peter Anvin" , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Oscar Salvador Subject: [PATCH 0/2] Cleanup and fixups for vmemmap handling Date: Tue, 2 Feb 2021 12:24:48 +0100 Message-Id: <20210202112450.11932-1-osalvador@suse.de> X-Mailer: git-send-email 2.13.7 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, During the review of patch#2, David noticed that we could remove the !PAGE_ALIGNED handling in remove_pte_table, as we should never get there. Therefore, let us place that cleanup before the sub-pmd-populated fixup. More details can be found in the respective changelogs. [1] https://lkml.org/lkml/2021/1/29/82 Oscar Salvador (2): x86/vmemmap: Remove !PAGE_ALIGNED case in remove_pte_table x86/vmemmap: Handle unpopulated sub-pmd ranges arch/x86/mm/init_64.c | 148 +++++++++++++++++++++++++++++------------- 1 file changed, 103 insertions(+), 45 deletions(-)