Skip to content

Basic early_printk and smoke test implementation

Oleksii Kurochko xen-devel 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest2 patches 1 replyIn review
  2. v92 patches 1 replySuperseded
  3. v82 patches 3 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v72 patches12 repliesSuperseded
v62 patches3 repliesSuperseded
v55 patches6 repliesSuperseded
v36 patches14 repliesSuperseded
v28 patches17 repliesSuperseded
v18 patches27 repliesSuperseded

Changes in v10 from the cover letter

- Add changes mentioned in V9 (forget to do in previous version)
---

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xen/riscv: introduce early_printk basic stuffxen/arch/riscv/Kconfig.debug xen/arch/riscv/Makefile xen/arch/riscv/early_printk.c +2 more+66 -01 reply
2/2automation: add RISC-V smoke testautomation/gitlab-ci/test.yaml automation/scripts/qemu-smoke-riscv64.sh+40 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBobby EshlemanStefano StabelliniAlistair Francis
1/2R-b R-b
2/2A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v10 thread

Cover letter [PATCH v10 0/2] Basic early_printk and smoke test implementation

The patch series introduces the following:
- the minimal set of headers and changes inside them.
- SBI (RISC-V Supervisor Binary Interface) things necessary for basic early_printk implementation.
- things needed to set up the stack.
- early_printk() function to print only strings.
- RISC-V smoke test which checks if "Hello from C env" message is present in serial.tmp

The patch series is rebased on top of the patch "include/types: move stddef.h-kind types to common header" [1]

[1] https://lore.kernel.org/xen-devel/[email protected]/

---
Changes in V10:
- Add changes mentioned in V9 (forget to do in previous version)
---
Changes in V9:
- Bring "cmodel=medany" check back to be sure that C function is safe to be called in early boot when MMU is off ( e.g. VA != PA )
---
Changes in V8:
- Set "needs: archlinux-current-gcc-riscv64-debug" in test.yaml for RISCV job as CONFIG_EARLY_PRINTK is available only when CONFIG_DEBUG is available.
---
Changes in V7:
- Fix dependecy for qemu-smoke-riscv64-gcc job
---
Changes in V6:
- Rename container name in test.yaml for .qemu-riscv64.
---
Changes in V5:
- Nothing changed
---
Changes in V4:
- Nothing changed
---
Changes in V3:
- Nothing changed
- All mentioned comments by Stefano in Xen mailing list will be fixed as a separate patch out of this patch series.
---

Oleksii Kurochko (2):
xen/riscv: introduce early_printk basic stuff
automation: add RISC-V smoke test

 automation/gitlab-ci/test.yaml            | 20 +++++++++++
 automation/scripts/qemu-smoke-riscv64.sh  | 20 +++++++++++
 xen/arch/riscv/Kconfig.debug              |  5 +++
 xen/arch/riscv/Makefile                   |  1 +
 xen/arch/riscv/early_printk.c             | 44 +++++++++++++++++++++++
 xen/arch/riscv/include/asm/early_printk.h | 12 +++++++
 xen/arch/riscv/setup.c                    |  4 +++
 7 files changed, 106 insertions(+)
 create mode 100755 automation/scripts/qemu-smoke-riscv64.sh
 create mode 100644 xen/arch/riscv/early_printk.c
 create mode 100644 xen/arch/riscv/include/asm/early_printk.h
Signature · 1 line
2.39.0