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=-15.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 940A2C433ED for ; Tue, 20 Apr 2021 10:23:41 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 18D1361164 for ; Tue, 20 Apr 2021 10:23:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 18D1361164 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=tWrmwV2XoQUpGX4M98cxuYAM+WzvJ/haz6ZIee/8ceY=; b=joPLokaOcjpMVV5Ntw1p9Pq8p 4aNIJu1Sf+ut5GJRIitiQpZsqt0t2iop/bHw34aj88Z0REU2fAF4ls3Tk1tPnZq2MF+ZdQRkf454L fnW26yD2434I1ihej6UtqkSv79DcdA9U6coba6qJJumZZHoh7x7/MH26p7SW9D4XpORpBgVs2SbNc V8bH8Pr8U0/LFmbU9t+NwQTVTO6WkzzqcNpf9X8aN5CuZu2aLRRArYsXjcWHi14HmFgRdisF/FGlo BStCIFqYuFdvZi2wQSwHZp1O/H//B+FqG/+gdwkw8s4b4Gjzm2GS9u9MjbDJVzMTKQYL1Sn5+NF2O sAzthX4GA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lYnU5-00BroR-KA; Tue, 20 Apr 2021 10:19:57 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYnU3-00BroC-Tz for linux-arm-kernel@desiato.infradead.org; Tue, 20 Apr 2021 10:19:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ei+DfX8B3gDolSXphP41z8l5oRWwxfrWzdtIReDqJQE=; b=PsPAK97Em5SRnY2/NgOpamg/TL WOXaD0qJqnqCei3+7WvkE4bDGa6vs/+iKIGJZ3THkiBfCBi6iMrkBW++XtN5JSacGr9wZK9Q7NaYH U67Vd75jToK7TJcCkqBMrfnxiRPPCEDQNF7iy7L325mdoUsTiCuym8Gonnt7xpSmn+jF0xVuJAJXN 5oomIIfnAtD0OtlkRp6DoZVb09uD6PpocQ8Ja1d7aO9L1XDKz02QkZn/3NZ7UAum88HQKvljNVSYK 9aZuPUzpSY98g6e0+KAYrvqQ8g6d9xI/mUw42b//O1kWCf8GYoZUzJvlD9+2LL8hQ5lHKz4psgv/v F+CvrJdw==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYnU1-00C13p-Hv for linux-arm-kernel@lists.infradead.org; Tue, 20 Apr 2021 10:19:54 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id B3EFD6103E; Tue, 20 Apr 2021 10:19:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618913993; bh=P6dFn2cgjY8HimOa1r+pNPOVZ6ikxPrwTmVg9i+a5UI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gYk3i0boxymbFLitHUIRVLOpfWGyo46G+imUUO32nspJrfPH8fgvjlmQsEOeBh9tj RQZlYRsGHycLQsqs3pqZIumGhffpP83z2j00JfzbY2z3/5DhTMO2GC9rOSZVKejA9q C9jBtjwmhofokQOvdDr0p2X9d8a69v4pibLg/aFf87ZjXsy+g0mMDveIpvKjGS3IEd zsHFQcONxu1p2bzK357KtN0PCi9fqoUlGzHuj3DgRtX4q/oPBJKbVvEa152HngYS06 cYAvwIXEJfZ3vPHcnIaS7RolfoJhkrHnqLCabcc4NlTBcI09v2PcWzXIdjRUkDWbwQ djLCwQAAPtArA== Date: Tue, 20 Apr 2021 11:19:48 +0100 From: Will Deacon To: Catalin Marinas Cc: linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , Marc Zyngier , Mark Rutland , Anshuman Khandual Subject: Re: [PATCH] arm64: Force SPARSEMEM_VMEMMAP as the only memory management model Message-ID: <20210420101947.GA31723@willie-the-truck> References: <20210420093559.23168-1-catalin.marinas@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210420093559.23168-1-catalin.marinas@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210420_031953_655209_1E27747F X-CRM114-Status: GOOD ( 16.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Apr 20, 2021 at 10:35:59AM +0100, Catalin Marinas wrote: > Currently arm64 allows a choice of FLATMEM, SPARSEMEM and > SPARSEMEM_VMEMMAP. However, only the latter is tested regularly. FLATMEM > does not seem to boot in certain configurations (guest under KVM with > Qemu as a VMM). Since the reduction of the SECTION_SIZE_BITS to 27 (4K > pages) or 29 (64K page), there's little argument against the memory > wasted by the mem_map array with SPARSEMEM. > > Make SPARSEMEM_VMEMMAP the only available option, non-selectable, and > remove the corresponding #ifdefs under arch/arm64/. > > Signed-off-by: Catalin Marinas > Cc: Will Deacon > --- > > If there are any concerns, please shout (but show numbers as well to > back it up). > > arch/arm64/Kconfig | 10 +--------- > arch/arm64/include/asm/kernel-pgtable.h | 2 +- > arch/arm64/include/asm/memory.h | 4 ++-- > arch/arm64/include/asm/sparsemem.h | 3 --- > arch/arm64/mm/init.c | 8 ++------ > arch/arm64/mm/mmu.c | 2 -- > arch/arm64/mm/ptdump.c | 2 -- > 7 files changed, 6 insertions(+), 25 deletions(-) Acked-by: Will Deacon Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel