From patchwork Wed Feb 3 10:47:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oscar Salvador X-Patchwork-Id: 12063967 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.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,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 6AD9AC433E0 for ; Wed, 3 Feb 2021 10:47:58 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F2D1F64F58 for ; Wed, 3 Feb 2021 10:47:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F2D1F64F58 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 60B466B0006; Wed, 3 Feb 2021 05:47:57 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5B9BD6B006C; Wed, 3 Feb 2021 05:47:57 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4820B6B006E; Wed, 3 Feb 2021 05:47:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0032.hostedemail.com [216.40.44.32]) by kanga.kvack.org (Postfix) with ESMTP id 2E6DA6B0006 for ; Wed, 3 Feb 2021 05:47:57 -0500 (EST) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id EBE26181AEF1F for ; Wed, 3 Feb 2021 10:47:56 +0000 (UTC) X-FDA: 77776631352.28.walk63_0813d1d275d2 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin28.hostedemail.com (Postfix) with ESMTP id C81D66C11 for ; Wed, 3 Feb 2021 10:47:56 +0000 (UTC) X-HE-Tag: walk63_0813d1d275d2 X-Filterd-Recvd-Size: 1945 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf28.hostedemail.com (Postfix) with ESMTP for ; Wed, 3 Feb 2021 10:47:56 +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 CF04CAF87; Wed, 3 Feb 2021 10:47:54 +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 v2 0/3] Cleanup and fixups for vmemmap handling Date: Wed, 3 Feb 2021 11:47:47 +0100 Message-Id: <20210203104750.23405-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, this series contains cleanups to remove dead code that handles unaligned cases for 4K and 1GB pages (patch#1 and pathc#2) when removing the vemmmap range, and a fix (patch#3) to handle the case when two vmemmap ranges intersect a PMD. More details can be found in the respective changelogs. v1 -> v2: - Remove dead code in remove_pud_table as well - Addessed feedback by David - Place the vmemap functions that take care of unaligned PMDs within CONFIG_SPARSEMEM_VMEMMAP Oscar Salvador (3): x86/vmemmap: Drop handling of 4K unaligned vmemmap range x86/vmemmap: Drop handling of 1GB vmemmap ranges x86/vmemmap: Handle unpopulated sub-pmd ranges arch/x86/mm/init_64.c | 166 ++++++++++++++++++++++++------------------ 1 file changed, 96 insertions(+), 70 deletions(-)