From mboxrd@z Thu Jan 1 00:00:00 1970 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 2521DC433E6 for ; Thu, 4 Feb 2021 13:45:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE3A564F53 for ; Thu, 4 Feb 2021 13:45:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236413AbhBDNpA (ORCPT ); Thu, 4 Feb 2021 08:45:00 -0500 Received: from mx2.suse.de ([195.135.220.15]:56744 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236377AbhBDNo2 (ORCPT ); Thu, 4 Feb 2021 08:44:28 -0500 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 66717AC43; Thu, 4 Feb 2021 13:43:45 +0000 (UTC) From: Oscar Salvador To: akpm@linux-foundation.org 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 v3 0/3] Cleanup and fixups for vmemmap handling Date: Thu, 4 Feb 2021 14:43:22 +0100 Message-Id: <20210204134325.7237-1-osalvador@suse.de> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. v2 -> v3: - Make sure we do not clear the PUD entry in case we are not removing the whole range. - Add Reviewed-by 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 | 189 ++++++++++++++++++++++++++---------------- 1 file changed, 118 insertions(+), 71 deletions(-) -- 2.26.2