All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] MIPS: Add extended ASID support
@ 2016-05-06 13:36 James Hogan
  2016-05-06 13:36 ` [PATCH 1/7] MIPS: KVM/locore.S: Don't preserve host ASID around vcpu_run James Hogan
                   ` (7 more replies)
  0 siblings, 8 replies; 18+ messages in thread
From: James Hogan @ 2016-05-06 13:36 UTC (permalink / raw)
  To: Ralf Baechle
  Cc: Paul Burton, James Hogan, Manuel Lauss, Jayachandran C.,
	Paolo Bonzini, Radim Krčmář,
	linux-mips, kvm

This patchset is based on v4.6-rc4 and adds support for the optional
extended ASIDs present since revision 3.5 of the MIPS32/MIPS64
architecture, which extends the TLB ASIDs from 8 bits to 10 bits. These
are known to be implemented in XLP and I6400 cores.

Along the way a few cleanups are made, particularly for KVM which
manipulates ASIDs from assembly code.

Patch 6 lays most of the groundwork by abstracting asid masks so they
can be variable, and patch 7 adds the actual support for extended ASIDs.

Patches 1-5 do some preliminary clean up around ASID handling, and in
KVM's locore.S to allow patch 7 to support extended ASIDs.

The use of extended ASIDs can be observed by using the 'x' sysrq to dump
TLB values, e.g. by repeatedly running this command:
$(echo x > /proc/sysrq-trigger); dmesg -c | grep asid

James Hogan (4):
  MIPS: KVM/locore.S: Don't preserve host ASID around vcpu_run
  MIPS: Add & use CP0_EntryHi ASID definitions
  MIPS: KVM/locore.S: Only preserve callee saved registers
  MIPS: KVM/locore.S: Relax noat

Paul Burton (3):
  MIPS: KVM: Abstract guest ASID mask
  MIPS: Retrieve ASID masks using function accepting struct cpuinfo_mips
  MIPS: Support extended ASIDs

 arch/mips/Kconfig                   | 17 +++++++
 arch/mips/include/asm/cpu-info.h    | 24 ++++++++++
 arch/mips/include/asm/kvm_host.h    |  5 +-
 arch/mips/include/asm/mipsregs.h    |  2 +
 arch/mips/include/asm/mmu_context.h | 41 +++++++---------
 arch/mips/kernel/asm-offsets.c      | 10 ++++
 arch/mips/kernel/cpu-probe.c        | 13 +++++
 arch/mips/kernel/genex.S            |  2 +-
 arch/mips/kernel/traps.c            |  2 +-
 arch/mips/kvm/emulate.c             | 25 +++++-----
 arch/mips/kvm/locore.S              | 94 +++++++++----------------------------
 arch/mips/kvm/tlb.c                 | 33 ++++++++-----
 arch/mips/lib/dump_tlb.c            | 10 ++--
 arch/mips/lib/r3k_dump_tlb.c        |  9 ++--
 arch/mips/mm/tlb-r3k.c              | 24 ++++++----
 arch/mips/mm/tlb-r4k.c              |  2 +-
 arch/mips/mm/tlb-r8k.c              |  2 +-
 arch/mips/pci/pci-alchemy.c         |  2 +-
 18 files changed, 173 insertions(+), 144 deletions(-)

Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Manuel Lauss <manuel.lauss@gmail.com>
Cc: Jayachandran C. <jchandra@broadcom.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
-- 
2.4.10

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

end of thread, other threads:[~2016-05-10  8:55 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-06 13:36 [PATCH 0/7] MIPS: Add extended ASID support James Hogan
2016-05-06 13:36 ` [PATCH 1/7] MIPS: KVM/locore.S: Don't preserve host ASID around vcpu_run James Hogan
2016-05-09 14:22   ` Paolo Bonzini
2016-05-09 15:30     ` Ralf Baechle
2016-05-09 19:42       ` James Hogan
2016-05-06 13:36 ` [PATCH 2/7] MIPS: Add & use CP0_EntryHi ASID definitions James Hogan
2016-05-06 13:36 ` [PATCH 3/7] MIPS: KVM: Abstract guest ASID mask James Hogan
2016-05-06 13:36 ` [PATCH 4/7] MIPS: KVM/locore.S: Only preserve callee saved registers James Hogan
2016-05-06 13:36 ` [PATCH 5/7] MIPS: KVM/locore.S: Relax noat James Hogan
2016-05-06 13:36 ` [PATCH 6/7] MIPS: Retrieve ASID masks using function accepting struct cpuinfo_mips James Hogan
2016-05-06 13:36 ` [PATCH 7/7] MIPS: Support extended ASIDs James Hogan
2016-05-09 13:23 ` [PATCH 0/7] MIPS: Add extended ASID support Ralf Baechle
2016-05-09 17:01   ` Maciej W. Rozycki
2016-05-09 19:04     ` James Hogan
2016-05-09 19:56       ` Maciej W. Rozycki
2016-05-09 19:59         ` James Hogan
2016-05-10  7:34         ` Ralf Baechle
2016-05-10  8:55           ` Maciej W. Rozycki

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.