[Qemu-devel] [PATCH 00/12] ppc: add native hash and radix support for POWER9

Cédric Le Goater posted 12 patches 5 years, 2 months ago
Test asan passed
Test docker-mingw@fedora passed
Test docker-clang@ubuntu failed
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190215170029.15641-1-clg@kaod.org
Maintainers: David Gibson <david@gibson.dropbear.id.au>
include/hw/ppc/spapr.h          |  1 +
target/ppc/cpu.h                |  7 ++-
target/ppc/helper.h             |  1 +
target/ppc/helper_regs.h        | 27 ++++------
target/ppc/mmu-book3s-v3.h      | 89 +++++++++++++++++++++++++++---
target/ppc/mmu-hash64.h         | 22 ++------
target/ppc/mmu-radix64.h        |  4 +-
hw/ppc/spapr.c                  | 86 ++++++++++++++++++++++++-----
hw/ppc/spapr_hcall.c            | 69 +++++++-----------------
hw/ppc/spapr_rtas.c             |  6 +--
target/ppc/misc_helper.c        | 15 ++++++
target/ppc/mmu-book3s-v3.c      | 31 +++++++++--
target/ppc/mmu-hash32.c         |  6 +++
target/ppc/mmu-hash64.c         | 28 ++++++++--
target/ppc/mmu-radix64.c        | 96 ++++++++++++++++++++++++++-------
target/ppc/mmu_helper.c         |  9 +---
target/ppc/translate_init.inc.c |  7 ++-
17 files changed, 361 insertions(+), 143 deletions(-)
[Qemu-devel] [PATCH 00/12] ppc: add native hash and radix support for POWER9
Posted by Cédric Le Goater 5 years, 2 months ago
Hello,

Here is another series of fixes and extensions from Ben providing
support for POWER9 native hash MMU and POWER9 native radix MMU. These
prepare ground for the support of QEMU POWER9 PowerNV machines.

From there, I hand over the patchset to Suraj for any follow-ups.

Thanks,

C.

Benjamin Herrenschmidt (12):
  target/ppc/spapr: Set LPCR:HR when using Radix mode
  target/ppci/mmu: Use LPCR:HR to chose radix vs. hash translation
  target/ppc: Re-enable RMLS on POWER9 for virtual hypervisors
  target/ppc: Fix #include guard in mmu-book3s-v3.h
  target/ppc: Cleanup 64-bit MMU includes
  target/ppc: Fix ordering of hash MMU accesses
  target/ppc: Add basic support for "new format" HPTE as found on POWER9
  target/ppc: Fix synchronization of mttcg with broadcast TLB flushes
  target/ppc: Flush the TLB locally when the LPIDR is written
  target/ppc: Rename PATB/PATBE -> PATE
  target/ppc: Support for POWER9 native hash
  target/ppc: Basic POWER9 bare-metal radix MMU support

 include/hw/ppc/spapr.h          |  1 +
 target/ppc/cpu.h                |  7 ++-
 target/ppc/helper.h             |  1 +
 target/ppc/helper_regs.h        | 27 ++++------
 target/ppc/mmu-book3s-v3.h      | 89 +++++++++++++++++++++++++++---
 target/ppc/mmu-hash64.h         | 22 ++------
 target/ppc/mmu-radix64.h        |  4 +-
 hw/ppc/spapr.c                  | 86 ++++++++++++++++++++++++-----
 hw/ppc/spapr_hcall.c            | 69 +++++++-----------------
 hw/ppc/spapr_rtas.c             |  6 +--
 target/ppc/misc_helper.c        | 15 ++++++
 target/ppc/mmu-book3s-v3.c      | 31 +++++++++--
 target/ppc/mmu-hash32.c         |  6 +++
 target/ppc/mmu-hash64.c         | 28 ++++++++--
 target/ppc/mmu-radix64.c        | 96 ++++++++++++++++++++++++++-------
 target/ppc/mmu_helper.c         |  9 +---
 target/ppc/translate_init.inc.c |  7 ++-
 17 files changed, 361 insertions(+), 143 deletions(-)

-- 
2.20.1


Re: [Qemu-devel] [PATCH 00/12] ppc: add native hash and radix support for POWER9
Posted by David Gibson 5 years, 2 months ago
On Fri, Feb 15, 2019 at 06:00:17PM +0100, Cédric Le Goater wrote:
> Hello,
> 
> Here is another series of fixes and extensions from Ben providing
> support for POWER9 native hash MMU and POWER9 native radix MMU. These
> prepare ground for the support of QEMU POWER9 PowerNV machines.
> 
> >From there, I hand over the patchset to Suraj for any follow-ups.

I've now merged all of these except the include cleanup, which I've
partly done in a different way.  A couple of the later patches are
tweaked so that doesn't break compile.

> 
> Thanks,
> 
> C.
> 
> Benjamin Herrenschmidt (12):
>   target/ppc/spapr: Set LPCR:HR when using Radix mode
>   target/ppci/mmu: Use LPCR:HR to chose radix vs. hash translation
>   target/ppc: Re-enable RMLS on POWER9 for virtual hypervisors
>   target/ppc: Fix #include guard in mmu-book3s-v3.h
>   target/ppc: Cleanup 64-bit MMU includes
>   target/ppc: Fix ordering of hash MMU accesses
>   target/ppc: Add basic support for "new format" HPTE as found on POWER9
>   target/ppc: Fix synchronization of mttcg with broadcast TLB flushes
>   target/ppc: Flush the TLB locally when the LPIDR is written
>   target/ppc: Rename PATB/PATBE -> PATE
>   target/ppc: Support for POWER9 native hash
>   target/ppc: Basic POWER9 bare-metal radix MMU support
> 
>  include/hw/ppc/spapr.h          |  1 +
>  target/ppc/cpu.h                |  7 ++-
>  target/ppc/helper.h             |  1 +
>  target/ppc/helper_regs.h        | 27 ++++------
>  target/ppc/mmu-book3s-v3.h      | 89 +++++++++++++++++++++++++++---
>  target/ppc/mmu-hash64.h         | 22 ++------
>  target/ppc/mmu-radix64.h        |  4 +-
>  hw/ppc/spapr.c                  | 86 ++++++++++++++++++++++++-----
>  hw/ppc/spapr_hcall.c            | 69 +++++++-----------------
>  hw/ppc/spapr_rtas.c             |  6 +--
>  target/ppc/misc_helper.c        | 15 ++++++
>  target/ppc/mmu-book3s-v3.c      | 31 +++++++++--
>  target/ppc/mmu-hash32.c         |  6 +++
>  target/ppc/mmu-hash64.c         | 28 ++++++++--
>  target/ppc/mmu-radix64.c        | 96 ++++++++++++++++++++++++++-------
>  target/ppc/mmu_helper.c         |  9 +---
>  target/ppc/translate_init.inc.c |  7 ++-
>  17 files changed, 361 insertions(+), 143 deletions(-)
> 

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson