Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754213AbbGAStA (ORCPT ); Wed, 1 Jul 2015 14:49:00 -0400 Received: from pandora.arm.linux.org.uk ([78.32.30.218]:41414 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752080AbbGASst (ORCPT ); Wed, 1 Jul 2015 14:48:49 -0400 Date: Wed, 1 Jul 2015 19:48:43 +0100 From: Russell King - ARM Linux To: Murali Karicheri Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: keystone: allow FORCE_MAX_ZONEORDER to be configurable on Keystone Message-ID: <20150701184842.GM7557@n2100.arm.linux.org.uk> References: <1435773182-23074-1-git-send-email-m-karicheri2@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1435773182-23074-1-git-send-email-m-karicheri2@ti.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: 1576 Lines: 34 On Wed, Jul 01, 2015 at 01:53:02PM -0400, Murali Karicheri wrote: > Currently for Keystone devices, user can't change the > value of CONFIG_FORCE_MAX_ZONEORDER option in defconfig. > Users require capability to tune the value of this option on a target > board. So this patch adds this capability No they shouldn't. If we do permit this, it should not be unrestricted - it's a power-of-2 of the page size, so specifying something like 32768 is insane. In any case, it's well known that the Linux MM system fragments memory, and the higher order allocations will fail soon after boot - and the larger the order, the greater chance of it failing. The only case that you want large allocations is for things like DMA, and we have a separate allocator for that called CMA, which is able to grab large chunks of memory, provided it's configured with a large enough zone. Please check whether CMA can be used _before_ considering using this option. If you need to increase the order, it should be justified, and it should be done on a per SoC basis in a static way, not left to the user to dream up some power-of-2 figure. Most importantly, please explain in the commit message why CMA doesn't provide you with what you need. -- 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/