linux-mips
[Top] [All Lists]

[PATCH 0/2] Align MIPS swapper_pg_dir for faster code.

To: linux-mips@linux-mips.org, ralf@linux-mips.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>
Subject: [PATCH 0/2] Align MIPS swapper_pg_dir for faster code.
From: David Daney <ddaney.cavm@gmail.com>
Date: Tue, 14 Aug 2012 11:07:59 -0700
Cc: David Daney <david.daney@cavium.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=6SVsbCjPaUva61aiBw20u0Qhxl87SCvC44yNoG+P680=; b=u4quZOb951wjoLzLTmTUIJ2y6n0RjfCtqS+Uy8WccIGj1OvBBp1o1xVej/1stdyXZC RptGdg9xt/TNY2jYxdcqpW/Mhxm/VZrqmgDIOLM22evuIE3ofLciAM2tZ8tIZUlHx7Be ifaCgo780KT1IMD/zrjKtAhkEo6CLXYxO1RqgDSEnEcJCHdnWchdHrVjI3+lsvXknpXN FAtRHEhfOpYWDo4/SMobSSMXXWOQx9We0rcFxTTEGDdz3AXPpcchFRJGG9JH08zSk2MK x3F4sETdyjZfxCd/7Vvzx+YkIREAWn5/x0AmEke9OqJW8hDNJZ5WoJzJPS9zO0mECfAl 1wkA==
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Sender: linux-mips-bounce@linux-mips.org
From: David Daney <david.daney@cavium.com>

The MIPS swapper_pg_dir needs 64K alignment for faster TLB refills in
kernel mappings.  There are two parts to the patch set:

1) Modify generic vmlinux.lds.h to allow architectures to place
   additional sections at the start of .bss.  This allows alignment
   constraints to be met with minimal holes added for padding.
   Putting this in common code should reduce the risk of future
   changes to the linker scripts not being propagated to MIPS (or any
   other architecture that needs something like this).

2) Align the MIPS swapper_pg_dir.

Since the initial use of the code is for MIPS, perhaps both parts
could be merged by Ralf's tree (after collecting any Acked-bys).

David Daney (2):
  vmlinux.lds.h: Allow architectures to add sections to the front of
    .bss
  MIPS: Align swapper_pg_dir to 64K for better TLB Refill code.

 arch/mips/kernel/vmlinux.lds.S    |   21 +++++++++++++++++++--
 arch/mips/mm/init.c               |   17 +++++++++--------
 include/asm-generic/vmlinux.lds.h |    9 +++++++++
 3 files changed, 37 insertions(+), 10 deletions(-)

-- 
1.7.2.3


<Prev in Thread] Current Thread [Next in Thread>