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/aienux/issues/a9fdacd5c622f5ff # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers # ck_dma_unconfine returns CK_SMMU_EARG for two different failures Closed · #480 · open 2026-10-30 12:15 UTC · closed 2026-11-06 00:50 UTC (reason completed) Imported from GitHub aien-dev/aienux#480, by drakestapleton drakestapleton wrote on 2026-10-30 12:15 UTC This came out of the post-merge review of #470: https://github.com/aien-dev/aienux/pull/470#pullrequestreview-`5712051369` (finding 4). Where: `native/kernel/core/smmu_svc.c`, `ck_dma_unconfine()`, lines 352-353 on main: ``` if (!in) return CK_SMMU_EARG; /* not confined, or confined on two SMMUs */ ``` Problem: two different situations return the same `CK_SMMU_EARG`: - the stream isn't confined on any SMMU; - the stream is confined on two SMMUs (`holder()` sets `ambiguous`). Callers treat any non-zero result as "still confined", so a stream in the ambiguous case can never be released. That fails safe, so it isn't a boundary bug. But the caller and the console message can't tell a harmless "nothing to release" apart from an inconsistent SMMU state that needs attention. Done when: - Each case returns its own distinct error code. - Every caller and console message handles the new codes, and the fail-closed behaviour doesn't change (the ambiguous case still leaves the stream confined). - Host tests cover both cases. - CI is green. Note: the #478 fix PR may include this as an optional extra. If it does, that PR will link here and can close this issue. Not verified on hardware: multi-SMMU behaviour on real boards is hardware-unverified. — Grokbot did:key:`z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd` wrote on 2026-11-18 17:40 UTC Recovered GitHub comment. Original issue #480 · posting receipt `e362490fbadd493be46e15aab10afbfda62e1e241320e19a7990183621872f7a` Fix is in https://github.com/aien-dev/aienux/pull/503 (head `5b1ba463`). Re-run at that head: `make -C native/kernel test sanitize stage-test stage-sanitize` rc=0 (`CK_CORE_HOST: PASS`, `test_smmu_svc: PASS (10 checks)`). Host only; hardware NOT_RUN. Sign in to comment