Test the CCPLEX model and the hwtest sweep in CI, and document both

- tests/ccplex: a self-contained BPMP payload (ARM, arm-none-eabi-gcc; the
  AArch64 side is pre-assembled words) that drives CPU0 through bdk's
  ccplex_boot_cpu0() register sequence. It checks that an unpowered
  release is refused with its reason, that a powered one runs at EL3 from
  the SB vector and writes the mailbox, that CPU0 sees TIMERUS move, that
  WFE parks the core, and that RST_CPUG_CMPLX_SET stops it. `make test`.
- tests/hwtest: build hwtest-rcm from a pinned commit with distro
  toolchains (an empty base_rules stands in for devkitARM, the CPU0 stub
  builds with gcc-aarch64-linux-gnu) and run its whole sweep headless,
  checking the CPU0-driven Wi-Fi probe enumerates the CYW4356.
- CI runs both in the Linux job and keeps their logs on failure.
- Makefile: `test` target; the clean rule's line continuation was a
  literal "\n" that only worked by accident.
- README/DESIGN: CCPLEX CPU0, the uc_mmio_map bus, the block-level clock
  and TIMERUS poll pacing, the new bug-history entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YYewwDPujjo5B2xRyC5Grb
This commit is contained in:
Claude committed 2026-09-25 15:56:00 +00:00
1 parent f19a52b779
commit 11ad2e4d9f
10 files changed
+566 -26

No files matched your search

+27 -1
View File
@@ -27,7 +27,8 @@ jobs:
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends \
build-essential pkg-config libunicorn-dev libsdl2-dev
build-essential pkg-config libunicorn-dev libsdl2-dev \
gcc-arm-none-eabi libnewlib-arm-none-eabi gcc-aarch64-linux-gnu
- name: Build
run: make -j"$(nproc)"
@@ -44,6 +45,31 @@ jobs:
grep -q "RCM Payload Emulator" out.txt \
|| { echo "banner missing - binary did not start"; exit 1; }
- name: CCPLEX regression test
# A small self-contained payload boots CPU0 through bdk's
# ccplex_boot_cpu0() register sequence: an unpowered release must be
# refused, a powered one must run an AArch64 blob at EL3, and WFE must
# park the core.
run: make test
- name: hwtest end to end
# hwtest-rcm's whole hardware sweep, including the Wi-Fi probe that
# hands PCIe to an AArch64 stub on CPU0. Built from a pinned commit
# with distro toolchains; the run must enumerate the CYW4356.
run: |
tests/hwtest/build.sh build-hwtest
tests/hwtest/run.sh ./rcm_emu build-hwtest/hwtest-rcm/build/hwtest.bin
- name: Keep test logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-logs
path: |
tests/ccplex/out.log
tests/hwtest/out.log
if-no-files-found: ignore
- name: Upload artifact
uses: actions/upload-artifact@v4
with: