[Top] [All Lists]

[PATCH v2 0/3] Allow processors with scratch registers to use them for T

Subject: [PATCH v2 0/3] Allow processors with scratch registers to use them for TLB refill.
From: David Daney <>
Date: Tue, 21 Dec 2010 14:19:08 -0800
Cc: David Daney <>
Original-recipient: rfc822;
v2: Declare pgd_current for mipsr1 and mips32 builds.

This other patch set:

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

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

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(-)


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