Skip to content

powerpc improvements

Nicholas Piggin kvm kvm-riscv kvmarm linux-s390 linuxppc-dev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest15 patches 11 repliesIn review
  2. v931 patches 42 repliesSuperseded
  3. v835 patches 17 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v735 patches5 repliesSuperseded
v132 patches38 repliesSuperseded

Changes in v10 from the cover letter

- Rebase after a good chunk of patches were merged.
- Review from Thomas:
- TCG/KVM host query is moved to the start of the series.
- Changelog for atomics test.
- Dropped spinlock patch change for now.
- Fixed tlbie assembly long lines in mmu patch.
- Use fdt64 accessor for 64-bit dt value.
- Upgrade powerpc gitlab CI to Fedora 40 and enable more tests
- Several other improvements.
- Reduced some long lines.
- Fixed some SPDX headers.
- New patch for adding a panic test. s390x is the only other panic test user but it requires KVM so I couldn't see if run_tests.sh looks sane there, but the harness needed a fix to work on powerpc.

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15powerpc: Add facility to query TCG or KVM hostlib/powerpc/asm/processor.h lib/powerpc/setup.c powerpc/interrupts.c +2 more+35 -40 replies
2/15powerpc: Add atomics testspowerpc/Makefile.common powerpc/atomics.c powerpc/unittests.cfg+397 -00 replies
3/15powerpc: Add timebase testslib/powerpc/asm/reg.h powerpc/Makefile.common powerpc/timebase.c +1 more+360 -00 replies
4/15powerpc: Add MMU supportconfigure lib/powerpc/asm/hcall.h lib/powerpc/asm/processor.h +15 more+978 -300 replies
5/15common/sieve: Support machines without MMUcommon/sieve.c lib/ppc64/asm/mmu.h lib/ppc64/mmu.c +2 more+18 -80 replies
6/15powerpc: Add sieve.c common testpowerpc/Makefile.common powerpc/sieve.c powerpc/unittests.cfg+5 -00 replies
7/15powerpc: add usermode supportlib/powerpc/asm/processor.h lib/powerpc/asm/reg.h lib/powerpc/asm/smp.h +6 more+94 -20 replies
8/15powerpc: add pmu testslib/powerpc/asm/processor.h lib/powerpc/asm/reg.h lib/powerpc/asm/setup.h +4 more+599 -13 replies
9/15configure: Make arch_libdir a first-class entityMakefile configure+14 -60 replies
10/15powerpc: Remove remnants of ppc64 directory and build structureMAINTAINERS configure lib/powerpc/asm-offsets.c +33 more+139 -1791 reply
11/15powerpc: gitlab CI update.gitlab-ci.yml powerpc/unittests.cfg+35 -310 replies
12/15scripts/arch-run.bash: Fix run_panic() success exit statusscripts/arch-run.bash+1 -04 replies
13/15powerpc: Add a panic testlib/powerpc/asm/rtas.h lib/powerpc/rtas.c powerpc/run +2 more+39 -31 reply
14/15powerpc/gitlab-ci: Upgrade powerpc to Fedora 40.gitlab-ci.yml+2 -01 reply
15/15powerpc/gitlab-ci: Enable more tests with Fedora 40.gitlab-ci.yml powerpc/unittests.cfg+9 -101 reply

Reviews trailers per patch

9 of 15 patches have a Reviewed-by or Acked-by.

PatchAndrew JonesThomas Huth
1/15R-b
2/15
3/15
4/15A-b
5/15R-b R-b
6/15R-b
7/15R-b
8/15
9/15R-b
10/15A-b
11/15
12/15A-b
13/15R-b
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v10 thread

Cover letter [kvm-unit-tests PATCH v10 00/15] powerpc improvements

Tree here

https://gitlab.com/npiggin/kvm-unit-tests/-/tree/powerpc

Since v9:
- Rebase after a good chunk of patches were merged.
- Review from Thomas:
- TCG/KVM host query is moved to the start of the series.
- Changelog for atomics test.
- Dropped spinlock patch change for now.
- Fixed tlbie assembly long lines in mmu patch.
- Use fdt64 accessor for 64-bit dt value.
- Upgrade powerpc gitlab CI to Fedora 40 and enable more tests
- Several other improvements.
- Reduced some long lines.
- Fixed some SPDX headers.
- New patch for adding a panic test. s390x is the only other panic test user but it requires KVM so I couldn't see if run_tests.sh looks sane there, but the harness needed a fix to work on powerpc.

Thanks,
Nick

Nicholas Piggin (15):
powerpc: Add facility to query TCG or KVM host
powerpc: Add atomics tests
powerpc: Add timebase tests
powerpc: Add MMU support
common/sieve: Support machines without MMU
powerpc: Add sieve.c common test
powerpc: add usermode support
powerpc: add pmu tests
configure: Make arch_libdir a first-class entity
powerpc: Remove remnants of ppc64 directory and build structure
powerpc: gitlab CI update
scripts/arch-run.bash: Fix run_panic() success exit status
powerpc: Add a panic test
powerpc/gitlab-ci: Upgrade powerpc to Fedora 40 powerpc/gitlab-ci: Enable more tests with Fedora 40

 .gitlab-ci.yml                           |  36 +-
 MAINTAINERS                              |   1 -
 Makefile                                 |   2 +-
 common/sieve.c                           |  14 +-
 configure                                |  63 ++-
 lib/{ppc64 => powerpc}/asm-offsets.c     |   0
 lib/{ppc64 => powerpc}/asm/asm-offsets.h |   0
 lib/{ppc64 => powerpc}/asm/atomic.h      |   0
 lib/{ppc64 => powerpc}/asm/barrier.h     |   4 +-
 lib/{ppc64 => powerpc}/asm/bitops.h      |   4 +-
 lib/powerpc/asm/hcall.h                  |   6 +
 lib/{ppc64 => powerpc}/asm/io.h          |   4 +-
 lib/powerpc/asm/mmu.h                    |  86 ++++
 lib/{ppc64 => powerpc}/asm/opal.h        |   4 +-
 lib/powerpc/asm/page.h                   |  65 +++
 lib/powerpc/asm/pgtable-hwdef.h          |  66 +++
 lib/powerpc/asm/pgtable.h                | 125 +++++
 lib/powerpc/asm/processor.h              |  15 +
 lib/{ppc64 => powerpc}/asm/ptrace.h      |   6 +-
 lib/powerpc/asm/reg.h                    |  14 +
 lib/powerpc/asm/rtas.h                   |   1 +
 lib/powerpc/asm/setup.h                  |   1 +
 lib/powerpc/asm/smp.h                    |   3 +
 lib/powerpc/asm/spinlock.h               |   6 +
 lib/powerpc/asm/stack.h                  |   3 +
 lib/{ppc64 => powerpc}/asm/vpa.h         |   0
 lib/powerpc/io.c                         |   7 +
 lib/powerpc/mmu.c                        | 260 +++++++++++
 lib/{ppc64 => powerpc}/opal-calls.S      |   4 +-
 lib/{ppc64 => powerpc}/opal.c            |   0
 lib/powerpc/processor.c                  |  47 ++
 lib/powerpc/rtas.c                       |  19 +
 lib/powerpc/setup.c                      |  61 ++-
 lib/{ppc64 => powerpc}/stack.c           |   0
 lib/ppc64/.gitignore                     |   1 -
 lib/ppc64/asm/handlers.h                 |   1 -
 lib/ppc64/asm/hcall.h                    |   1 -
 lib/ppc64/asm/memory_areas.h             |   6 -
 lib/ppc64/asm/page.h                     |   1 -
 lib/ppc64/asm/ppc_asm.h                  |   1 -
 lib/ppc64/asm/processor.h                |   1 -
 lib/ppc64/asm/reg.h                      |   1 -
 lib/ppc64/asm/rtas.h                     |   1 -
 lib/ppc64/asm/setup.h                    |   1 -
 lib/ppc64/asm/smp.h                      |   1 -
 lib/ppc64/asm/spinlock.h                 |   6 -
 lib/ppc64/asm/stack.h                    |  11 -
 lib/vmalloc.c                            |   7 +
 lib/vmalloc.h                            |   2 +
 powerpc/Makefile                         | 111 ++++-
 powerpc/Makefile.common                  |  89 ----
 powerpc/Makefile.ppc64                   |  30 --
 powerpc/atomics.c                        | 386 ++++++++++++++++
 powerpc/interrupts.c                     | 129 +++++-
 powerpc/mmu.c                            | 225 +++++++++
 powerpc/pmu.c                            | 562 +++++++++++++++++++++++
 powerpc/run                              |   2 +-
 powerpc/selftest.c                       |  18 +-
 powerpc/sieve.c                          |   1 +
 powerpc/sprs.c                           |   2 +-
 powerpc/timebase.c                       | 350 ++++++++++++++
 powerpc/tm.c                             |   2 +-
 powerpc/unittests.cfg                    |  64 ++-
 scripts/arch-run.bash                    |   1 +
 64 files changed, 2696 insertions(+), 245 deletions(-)
 rename lib/{ppc64 => powerpc}/asm-offsets.c (100%)
 rename lib/{ppc64 => powerpc}/asm/asm-offsets.h (100%)
 rename lib/{ppc64 => powerpc}/asm/atomic.h (100%)
 rename lib/{ppc64 => powerpc}/asm/barrier.h (83%)
 rename lib/{ppc64 => powerpc}/asm/bitops.h (69%)
 rename lib/{ppc64 => powerpc}/asm/io.h (50%)
 create mode 100644 lib/powerpc/asm/mmu.h
 rename lib/{ppc64 => powerpc}/asm/opal.h (90%)
 create mode 100644 lib/powerpc/asm/page.h
 create mode 100644 lib/powerpc/asm/pgtable-hwdef.h
 create mode 100644 lib/powerpc/asm/pgtable.h
 rename lib/{ppc64 => powerpc}/asm/ptrace.h (89%)
 create mode 100644 lib/powerpc/asm/spinlock.h
 rename lib/{ppc64 => powerpc}/asm/vpa.h (100%)
 create mode 100644 lib/powerpc/mmu.c
 rename lib/{ppc64 => powerpc}/opal-calls.S (88%)
 rename lib/{ppc64 => powerpc}/opal.c (100%)
 rename lib/{ppc64 => powerpc}/stack.c (100%)
 delete mode 100644 lib/ppc64/.gitignore
 delete mode 100644 lib/ppc64/asm/handlers.h
 delete mode 100644 lib/ppc64/asm/hcall.h
 delete mode 100644 lib/ppc64/asm/memory_areas.h
 delete mode 100644 lib/ppc64/asm/page.h
 delete mode 100644 lib/ppc64/asm/ppc_asm.h
 delete mode 100644 lib/ppc64/asm/processor.h
 delete mode 100644 lib/ppc64/asm/reg.h
 delete mode 100644 lib/ppc64/asm/rtas.h
 delete mode 100644 lib/ppc64/asm/setup.h
 delete mode 100644 lib/ppc64/asm/smp.h
 delete mode 100644 lib/ppc64/asm/spinlock.h
 delete mode 100644 lib/ppc64/asm/stack.h
 delete mode 100644 powerpc/Makefile.common
 delete mode 100644 powerpc/Makefile.ppc64
 create mode 100644 powerpc/atomics.c
 create mode 100644 powerpc/mmu.c
 create mode 100644 powerpc/pmu.c
 create mode 120000 powerpc/sieve.c
 create mode 100644 powerpc/timebase.c
Signature · 1 line
2.45.1