Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751776AbbEFKdF (ORCPT ); Wed, 6 May 2015 06:33:05 -0400 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:54102 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876AbbEFKdB (ORCPT ); Wed, 6 May 2015 06:33:01 -0400 Date: Wed, 6 May 2015 11:32:49 +0100 From: Russell King - ARM Linux To: Min-Hua Chen Cc: Kees Cook , Nicolas Pitre , Jungseung Lee , Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] arm: improve non-section-aligned low memory mapping Message-ID: <20150506103249.GG2067@n2100.arm.linux.org.uk> References: <1430038028-22625-1-git-send-email-orca.chen@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1430038028-22625-1-git-send-email-orca.chen@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 918 Lines: 26 On Sun, Apr 26, 2015 at 04:47:08PM +0800, Min-Hua Chen wrote: > @@ -1384,6 +1351,15 @@ static void __init map_lowmem(void) > create_mapping(&map); > } > } > + > + /* > + * Find the first section-aligned memblock and set > + * memblock_limit at it. > + */ > + if (!section_memblock_limit && !(end & ~SECTION_MASK)) { > + section_memblock_limit = end; > + memblock_set_current_limit(section_memblock_limit); > + } I've suggested an alternative solution to this (which just means changing the alignment of the memblock limit to 2x SECTION_SIZE). -- FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/