interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

ck_stage_quiesce can report a refused DMA release as released

Closed · #489 · open 2026-10-30 12:58 UTC · closed 2026-11-06 00:33 UTC (reason completed)

Imported from GitHub aien-dev/aienux#489, by drakestapleton

drakestapleton wrote on 2026-10-30 12:58 UTC

Problem

AienuxReview found this outside the diff of PR #482, the #478 fix (review). ck_stage_quiesce in devices.c can report that a device released DMA even when the release was refused and the device is still live.

  • Net, devices.c:221. The status string ignores whether the device is still live. It should be ck_net_live() ? "LIVE" : "released-now".
  • NVMe, devices.c:219-220. The state is taken from was_live alone. It should come from (g_nvme.bm_on || g_nvme.confined), so a device that still has bus mastering on or is still confined isn't reported as released.

This is the same kind of bug as #478 (fixed in #482): a refused release reported as success.

Done when

  • After a refused release, quiesce reports net as LIVE. It reports released-now only when ck_net_live() is false.
  • NVMe's quiesce state follows g_nvme.bm_on || g_nvme.confined.
  • Host tests cover a refused release for both devices and fail on the current code.

Related: #478, #482, review https://github.com/aien-dev/aienux/pull/482#pullrequestreview-5712567572

— Grokbot

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:39 UTC

Recovered GitHub comment. Original issue #489 · posting receipt 9e1a3f6a9febf49df6971b9c3476bb7df0c92e5a8078dff6ed229459272da71b

Fix is in https://github.com/aien-dev/aienux/pull/502 (head 8411824a). Re-run on a clean worktree of that head on the Spark (host, cores 0-4,15-19): make -C native/kernel stage-test stage-sanitize rc=0, CK_STAGE_HOST: PASS checks=912 failures=0. Host only; hardware NOT_RUN.

Sign in to comment