mbox series

[0/4] Early serial on Power

Message ID cover.1687366665.git.sanastasio@raptorengineering.com (mailing list archive)
Headers show
Series Early serial on Power | expand

Message

Shawn Anastasio June 21, 2023, 4:59 p.m. UTC
Hello all,

This series adds support for early serial printing on Power, as well as
a simple CI smoke test modeled after the riscv one.

The third patch, which implements the serial console, also includes a
set of header additions required to get the build going when including
things like xen/lib.h. When applicable, headers from the old Xen 3.2.3
ppc tree were imported or otherwise empty stub headers were added to be
filled in later.

This will currently only run on QEMU pseries VMs, since the firmware
interface on bare metal differs significantly. Support for bare metal
will be added in a future series.

Thanks,
Shawn

Shawn Anastasio (4):
  automation: Add QEMU to bullseye-ppc64le
  automation: Fix KBUILD_DEFCONFIG for *ppc64le jobs
  xen/ppc: Implement early serial printk on pseries
  automation: Add smoke test for ppc64le

 .../build/debian/bullseye-ppc64le.dockerfile  |   2 +
 automation/gitlab-ci/build.yaml               |   8 +-
 automation/gitlab-ci/test.yaml                |  20 ++
 automation/scripts/qemu-smoke-ppc64le.sh      |  27 +++
 xen/arch/ppc/Kconfig.debug                    |   5 +
 xen/arch/ppc/Makefile                         |   3 +
 xen/arch/ppc/boot-of.c                        | 116 ++++++++++
 xen/arch/ppc/configs/ppc64_defconfig          |   1 +
 xen/arch/ppc/early_printk.c                   |  28 +++
 xen/arch/ppc/include/asm/boot.h               |  24 ++
 xen/arch/ppc/include/asm/bug.h                |   6 +
 xen/arch/ppc/include/asm/byteorder.h          |  37 +++
 xen/arch/ppc/include/asm/cache.h              |   6 +
 xen/arch/ppc/include/asm/early_printk.h       |  15 ++
 xen/arch/ppc/include/asm/msr.h                |  67 ++++++
 xen/arch/ppc/include/asm/processor.h          | 207 +++++++++++++++++
 xen/arch/ppc/include/asm/reg_defs.h           | 218 ++++++++++++++++++
 xen/arch/ppc/include/asm/string.h             |   6 +
 xen/arch/ppc/include/asm/types.h              |  35 +++
 xen/arch/ppc/ppc64/Makefile                   |   1 +
 xen/arch/ppc/ppc64/asm-offsets.c              |  55 +++++
 xen/arch/ppc/ppc64/head.S                     |  48 ++--
 xen/arch/ppc/ppc64/of-call.S                  |  85 +++++++
 xen/arch/ppc/setup.c                          |  31 +++
 24 files changed, 1025 insertions(+), 26 deletions(-)
 create mode 100755 automation/scripts/qemu-smoke-ppc64le.sh
 create mode 100644 xen/arch/ppc/boot-of.c
 create mode 100644 xen/arch/ppc/early_printk.c
 create mode 100644 xen/arch/ppc/include/asm/boot.h
 create mode 100644 xen/arch/ppc/include/asm/bug.h
 create mode 100644 xen/arch/ppc/include/asm/byteorder.h
 create mode 100644 xen/arch/ppc/include/asm/cache.h
 create mode 100644 xen/arch/ppc/include/asm/early_printk.h
 create mode 100644 xen/arch/ppc/include/asm/msr.h
 create mode 100644 xen/arch/ppc/include/asm/processor.h
 create mode 100644 xen/arch/ppc/include/asm/reg_defs.h
 create mode 100644 xen/arch/ppc/include/asm/string.h
 create mode 100644 xen/arch/ppc/include/asm/types.h
 create mode 100644 xen/arch/ppc/ppc64/of-call.S
 create mode 100644 xen/arch/ppc/setup.c

--
2.30.2