Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/evidence/HW-MANIFEST-20261107T0602Z/README.md # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / evidence / HW-MANIFEST-20261107T0602Z / README.md` 72 lines · 4638 bytes Raw Blame History Rendered 1 # HW-MANIFEST-20261107T0602Z: hardware manifest gate after review fixes (CUDApp #367) 2 3 Status: CHIP_TESTED on the same two devices of one DGX Spark (`spark-b87b`, Linux 7.0.0-1019-nvidia 4 aarch64): the Cortex-X925 at processor 19 (`midr_el1=0x410fd851`) and the Nuvoton NPCT75x TPM 2.0 at 5 `/dev/tpmrm0` (manufacturer `0x4e544300`, firmware `0x00070002.0x00040001`). One run, one machine: 6 EXERCISED, not QUALIFIED. The GPU was not opened. Supersedes `HW-MANIFEST-20261107T0539Z` as the 7 evidence of the two admitted rows; that directory is unchanged. 8 9 Source: this commit (parent ``06237840fe344e2b243d3aec91c16eb8ab50ce41``). Source, manifest and binary 10 digests are the `SRC` and `COMPILE` lines of `run.log`; all files here are in `outputs.sha256`. 11 Identity: `identity.txt` (hostname, `lscpu`, per-processor MIDR, `tpm2_getcap properties-fixed`, 12 tpm2-tools and strace versions). 13 14 ## Commands 15 16 ``` 17 HW_OUT=/tmp/cudapp-hw-20261107T0602Z flock -o taskset -c 19 nice -n 10 \ 18 sh tests/hw/run.sh /omc -> run.log, exit 0 19 flock -o taskset -c 19 nice -n 10 sh regress/regress.sh . 20 # once with hwman built from `06237840`, once with this change -> regress/, exit 0 both 21 ``` 22 23 ## Result 24 25 `HW pass=121 fail=0 not_run=2` (`run.log`; per-check output in `logs/.log`). NOT_RUN: 26 `neg-cpu-unpinned` (needs a CPU set wider than the one allotted processor) and `cpu-gb10-a725` 27 (no Cortex-A725 processor allotted). 28 29 ## Review findings: each control fails on `06237840` and passes on this change 30 31 `regress/regress.sh` runs the same controls against both binaries (`regress/binaries.sha256`); 32 `regress/before-`06237840`.txt` and `regress/after.txt` give per control the exit code and last line. 33 Faults are injected with `strace -e inject` (6.8), an outside test tool. 34 35 1. State persistence. A fresh CPU handle at generation 1, then the run to generation 2 with a fault on 36 the handle file. `w1`/`w2` is the injected call index (`06237840` makes one `pwrite64` and one `fsync` 37 in release; this change marks the handle in-flight first, so its release is call 2). 38 39 | control | `06237840` | this change | 40 |---|---|---| 41 | failed write (`pwrite64` ENOSPC) | `w1`: exit 0 PASS, handle file empty, generations 0, 1, 2 all run again (exit 0) | `w1`: 74 before submission, handle kept at 1; `w2`: 74, handle `x…`, generations 0, 1, 2 refused (7) | 42 | short write (`pwrite64` returns 3) | `w1`: exit 0 PASS, handle file empty, generations 0, 1, 2 run again | `w2`: 74, no PASS, generations 0, 1, 2 refused (7) | 43 | failed sync (`fsync` EIO) | `w1`, `w2`: exit 0 PASS | `w1` (in-flight sync), `w2`: 74, no PASS, generations 0, 1, 2 refused (7) | 44 45 2. Runner binding. One closed runner table (`core.om` `TRUN`) is checked by `check`, which `admit` and 46 `run` load through. 47 48 | mutated manifest | `06237840` | this change | 49 |---|---|---| 50 | CPU ops `+matmul` | check 0; run matmul 5 | check 3 `runner_op`; run 3, handle unchanged | 51 | TPM ops `+seal` | check 0; **run seal exit 0, GetRandom sent, generation 1->2** | check 3 `runner_op`; run 3, handle unchanged | 52 | CPU runner `hwman-gpu` | check 0; run 6 | check 3 `unknown_runner`; run 3 | 53 | TPM row runner `hwman-cpu` | check 0; run 6 | check 3 `runner_family_route`; run 3 | 54 | CPU route `DIRECT_DEVICE` | check 0 | check 3 `runner_family_route` | 55 56 3. Fault oracle. An unrelated failure injected on `/dev/tpmrm0` during the fault frame: 57 58 | control | `06237840` | this change | 59 |---|---|---| 60 | badsize, write EIO | exit 0 `errno=-5 outcome=PASS` | 13 `unexpected_fault_result result=-5 want=-22` | 61 | badcc, write EINVAL | exit 0 `errno=-22 outcome=PASS` | 13 `result=-22 want=721219` | 62 | badcc, 4-byte response | exit 0 `errno=-1000 outcome=PASS` | 13 `result=-1000 want=721219` | 63 64 Correction to `HW-MANIFEST-20261107T0539Z`: `badcc` is not answered by the TPM with `0x143`. The 65 real response code is `0x000b0143` = TPM2_RC_COMMAND_CODE `0x143` | TSS2_RESMGR_TPM_RC_LAYER 66 `11 << 16` (Wolfram Language `BitOr[16^^143, BitShiftLeft[11, 16]]` -> 721219), synthesized by the 67 Linux resource manager (`drivers/char/tpm/tpm-dev-common.c`, `tpm2_prepare_space`) for a command code 68 the chip does not list; the frame never reaches the chip. `06237840` printed only the low 3 hex digits. 69 The gate now asserts `layer=tpmrm rc=0x000b0143` and `layer=kernel errno=-22` exactly. 70 71 `r1-script-bug` (outside the repository only): a first pass of `regress.sh` whose helper overwrote a loop 72 variable, so its persistence rows named the wrong files; discarded, rerun with the fix above.