From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755475AbbAWOwx (ORCPT ); Fri, 23 Jan 2015 09:52:53 -0500 Received: from foss-mx-na.foss.arm.com ([217.140.108.86]:41881 "EHLO foss-mx-na.foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755342AbbAWOww (ORCPT ); Fri, 23 Jan 2015 09:52:52 -0500 Date: Fri, 23 Jan 2015 14:52:36 +0000 From: Catalin Marinas To: Arnd Bergmann Cc: Sergey Dyasly , "linux-arm-kernel@lists.infradead.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Russell King , Guan Xuetao , "nicolas.pitre@linaro.org" , James Bottomley , Will Deacon , Arnd Bergmann , Andrew Morton , Dmitry Safonov Subject: Re: [PATCH] ARM: use default ioremap alignment for SMP or LPAE Message-ID: <20150123145235.GB21789@e104818-lin.cambridge.arm.com> References: <1421911075-8814-1-git-send-email-s.dyasly@samsung.com> <20150122100441.GA19811@e104818-lin.cambridge.arm.com> <3060178.HEZJjJCl1e@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3060178.HEZJjJCl1e@wuerfel> 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 On Thu, Jan 22, 2015 at 11:03:00AM +0000, Arnd Bergmann wrote: > Unrelated to this question however is whether we want to keep > supersection mappings as a performance optimization to save TLBs. > It seems useful to me, but not critical. Currently in Linux we allow 16MB mappings only if the phys address is over 32-bit and !LPAE which makes it unlikely for normal RAM with pre-LPAE hardware. IIRC a bigger problem was that supersections are optional in the architecture but there was no CPUID bit field in ARMv6 (and early ARMv7) to check for their presence. The ID_MMFR3 contains this information but for example on early Cortex-A8 that bitfield was reserved and the TRM states "unpredictable" on read (so probably zero in practice). On newer ARMv7 (not necessarily with LPAE), we could indeed revisit the 16MB section mapping but it won't go well with single zImage if you want to support earlier ARMv7 or ARMv6. -- Catalin