Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752880AbcLHKAV (ORCPT ); Thu, 8 Dec 2016 05:00:21 -0500 Received: from foss.arm.com ([217.140.101.70]:57314 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752656AbcLHKAU (ORCPT ); Thu, 8 Dec 2016 05:00:20 -0500 Date: Thu, 8 Dec 2016 10:00:15 +0000 From: Catalin Marinas To: Scott Branden Cc: Arnd Bergmann , Olof Johansson , Will Deacon , BCM Kernel Feedback , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/1] arm64: mm: add config options for page table configuration Message-ID: <20161208100014.GE33075@MBP.local> References: <1481139600-24455-1-git-send-email-scott.branden@broadcom.com> <1481139600-24455-2-git-send-email-scott.branden@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1481139600-24455-2-git-send-email-scott.branden@broadcom.com> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 685 Lines: 16 On Wed, Dec 07, 2016 at 11:40:00AM -0800, Scott Branden wrote: > Make MAX_PHYSMEM_BITS and SECTIONS_SIZE_BITS configurable by adding > config options. > Default to current settings currently defined in sparesmem.h. > For systems wishing to save memory the config options can be overridden. > Example, changing MAX_PHYSMEM_BITS from 48 to 36 at the same time as > changing SECTION_SIZE_BITS from 30 to 26 frees 13MB of memory. I'm not keen on such change, it's a big departure from the single Image aims. I would rather reduce SECTION_SIZE_BITS permanently where feasible, like in this patch: http://lkml.kernel.org/r/1465821119-3384-1-git-send-email-jszhang@marvell.com -- Catalin