All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Allow processors with scratch registers to use them for TLB refill.
@ 2010-12-21 22:19 ` David Daney
  0 siblings, 0 replies; 8+ messages in thread
From: David Daney @ 2010-12-21 22:19 UTC (permalink / raw)
  To: linux-mips, ralf; +Cc: David Daney

v2: Declare pgd_current for mipsr1 and mips32 builds.

This other patch set:

http://www.linux-mips.org/cgi-bin/mesg.cgi?a=linux-mips&i=1292889290-12849-1-git-send-email-ddaney%40caviumnetworks.com

Should still be applied *after* this one.

From v1:

The MIPS32r2 and MIPS64r2 specifications allow processors to have
scratch registers in coprocessor 0.  If these are present, we can use
one of them to carry the current PGD and save three instructions in
the TLB handlers.

There are three patches:

1 - Probe for presence of scratch registers an print number found in
    /proc/cpuinfo.

2 - Add DINSM to uasm for use by patch 3.

3 - Convert the TLB handlers.  This also involves dynamically
    generating tlbmiss_handler_setup_pgd, which used to be statically
    defined.


David Daney (3):
  MIPS: Probe for presence of KScratch registers.
  MIPS: Add DINSM to uasm.
  MIPS: Use C0_KScratch (if present) to hold PGD pointer.

 arch/mips/include/asm/cpu-info.h    |    1 +
 arch/mips/include/asm/mmu_context.h |    8 +--
 arch/mips/include/asm/uasm.h        |    1 +
 arch/mips/kernel/cpu-probe.c        |    2 +
 arch/mips/kernel/proc.c             |    2 +
 arch/mips/kernel/traps.c            |    2 +-
 arch/mips/mm/tlbex.c                |  116 ++++++++++++++++++++++++++++++++---
 arch/mips/mm/uasm.c                 |   11 +++-
 8 files changed, 124 insertions(+), 19 deletions(-)

-- 
1.7.2.3

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-12-28 17:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-21 22:19 [PATCH v2 0/3] Allow processors with scratch registers to use them for TLB refill David Daney
2010-12-21 22:19 ` David Daney
2010-12-21 22:19 ` [PATCH v2 1/3] MIPS: Probe for presence of KScratch registers David Daney
2010-12-28 17:02   ` Ralf Baechle
2010-12-21 22:19 ` [PATCH v2 2/3] MIPS: Add DINSM to uasm David Daney
2010-12-28 17:04   ` Ralf Baechle
2010-12-21 22:19 ` [PATCH v2 3/3] MIPS: Use C0_KScratch (if present) to hold PGD pointer David Daney
2010-12-28 17:04   ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.