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

GitHub aien-dev/aienux#298 (code only)

closed derived 5b52866916be8cc3 #298

Imported from GitHub aien-dev/aienux#298 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base c731baf4294b5ba2bc797db641a7fbaf82bbf567 · Head 979680766c1840a6f90410b730da2ea9b3919bca

Apply it

git checkout -b patch-5b52866916be8cc3 c731baf4294b5ba2bc797db641a7fbaf82bbf567
curl -fsSL https://interplane.io/drakestapleton/aienux/patches/5b52866916be8cc3.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/aienux
298
979680766c1840a6f90410b730da2ea9b3919bca
{"kind":"github-import","owner":"aien-dev","repo":"aienux","number":298,"url":"https://github.com/aien-dev/aienux/pull/298","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:09Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 34da263e..c519531d 100644
--- a/.crumb
+++ b/.crumb
@@ -27,33 +27,33 @@
           "purpose": "Directory crates. Purpose not yet described by a human."
         },
         {
-          "digest": "bfae16a004b9057c96f70f68337d95ae4ff6d456fa2a624576f9566b8f23cf2b",
-          "last_commit": "89fcc57",
+          "digest": "162874613694f33bea2e90a01d7091c80153fe9771edfe09132c92b82004be63",
+          "last_commit": "f759310",
           "name": "docs",
           "purpose": "Directory docs. Purpose not yet described by a human."
         },
         {
-          "digest": "46b6348c6d3b05c623e9ef9814d8b90ed1cc6449906f361d41547b264b12dd50",
-          "last_commit": "a9b15b9",
+          "digest": "14192734c76840815c344af42af21c84274265dcc374a3ce2bccb01113bc83a9",
+          "last_commit": "f759310",
           "name": "native",
           "purpose": "Directory native. Purpose not yet described by a human."
         },
         {
           "digest": "d9cd564824903777dd323019bb8d5673331383e961bc3da703d5589be1eb6b4c",
-          "last_commit": "89fcc57",
+          "last_commit": "c731baf",
           "name": "scripts",
           "purpose": "Directory scripts. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:f92832f19d1cf1f9b6ebcfa7ced8e4e2c0f47b28074a7f93642b9383123fbe74",
-      "compiled_at": "2026-10-10T02:47:01Z",
+      "children_root": "sha256:34d62464cea587ebc0a1f72b1cc4cd5c9b4fa50e475f8e28bd957b12bd7d64ff",
+      "compiled_at": "2026-10-10T03:01:04Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:b9c0208a3abe68373fa3005fd5312243fafb51fec65d4201dd8e524cf169349b",
+      "digest": "sha256:703cd9045f671a3cb2c64f0c4f6c3278d1e56b9afb293bd06991d16bfcf87a82",
       "evidence_files": 155,
       "evidence_root": "sha256:d59c0cef4e7dd5172923754a95b411ca54b01f35baca4587f792f1b259f1eaf7",
       "files": 3036,
-      "generated_at_commit": "89fcc57c5bf7a5003eea52de0ac3bf2f752e2c04",
-      "source_tree": "sha256:864db176a2e3dd3cfff21247e1ed018f779178481b5c3939433ffae93c4bce27"
+      "generated_at_commit": "f759310fc87760e56432e734db76c540c6e936ae",
+      "source_tree": "sha256:b6e8f6e84d267f0e1ea11d6b9ad12bc7a1395df970f9f4bacae0b6449ce72194"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/.crumb b/docs/.crumb
index 91e2eeee..c97918ef 100644
--- a/docs/.crumb
+++ b/docs/.crumb
@@ -30,14 +30,14 @@
         }
       ],
       "children_root": "sha256:55bcc89f5282eb2e3f4e86d882abdfb5f4ea39e427ef97ef620b2267e5701eb1",
-      "compiled_at": "2026-10-10T02:47:01Z",
+      "compiled_at": "2026-10-10T03:01:04Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:bfae16a004b9057c96f70f68337d95ae4ff6d456fa2a624576f9566b8f23cf2b",
+      "digest": "sha256:162874613694f33bea2e90a01d7091c80153fe9771edfe09132c92b82004be63",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 66,
-      "generated_at_commit": "89fcc57c5bf7a5003eea52de0ac3bf2f752e2c04",
-      "source_tree": "sha256:767260ee7c6d528b0fe584e48e529b414fc8d0a3af327ad2cd2f7513710fa1e2"
+      "generated_at_commit": "f759310fc87760e56432e734db76c540c6e936ae",
+      "source_tree": "sha256:aa3ad171f5d91c360fbf933a32218fdf45a93340d22a63baea46a61f9b95a942"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/GB10_IORT_DECODE.md b/docs/GB10_IORT_DECODE.md
index 139dde85..a851cdb2 100644
--- a/docs/GB10_IORT_DECODE.md
+++ b/docs/GB10_IORT_DECODE.md
@@ -133,10 +133,14 @@ Gaps a future cut would have to close before any GB10 DMA (design facts, not a p
 - Whether Linux's stream table entry for 0x100 uses stage 1, stage 2 or
   bypass (not decoded; needs a register read, out of scope here). [UNKNOWN]
 
-## 8. Next candidate cut
-
-B6 (needs coordinator approval): QEMU-only design and test of multi-SMMU IORT
-parsing in `ck_iort_parse` (keep every SMMUv3 node; resolve root complex to its
-own node) with an `iort-mutants` case carrying two SMMUv3 nodes, so the GB10
-path reports `CK_SMMU_OTHER` instead of `CK_SMMU_NOSTREAM` and a later cut can
-bring SMMUv3 B up. No hardware step is proposed.
+## 8. Cut B6 (done, QEMU/host only)
+
+`ck_iort_parse` now remembers every SMMUv3 node and the root-complex mappings
+that target one other than the first (`struct ck_iort_other`,
+`ck_iort_other_stream`), and `ck_dma_confine` returns `CK_SMMU_OTHER` with that
+SMMU and stream named (len 0, never granted) instead of `CK_SMMU_NOSTREAM`.
+Host checks: test_smmu Spark-shape case (segment 15 rid 0x100 -> stream 0x100
+on 0x13000000), `iort-mutants` with the new `CK_IORT_MUTANT_OTHER_BLIND`
+killed, and `ck_acpi_scan --iort` on the real table printing the segment 15
+mapping as not driven. The second SMMU is still not brought up; that is a
+later cut with its own approval.
diff --git a/native/.crumb b/native/.crumb
index 8869b146..729b7eeb 100644
--- a/native/.crumb
+++ b/native/.crumb
@@ -79,8 +79,8 @@
           "purpose": "Directory native/disk. Purpose not yet described by a human."
         },
         {
-          "digest": "d410f7e809cdbf670066c1658a7b3734c9ffa99f07e4191b474891854852a826",
-          "last_commit": "e4abc01",
+          "digest": "2921a914fc906e8535222b97e684ad38763a1fe70957337e58f5aa83b35ca555",
+          "last_commit": "f759310",
           "name": "kernel",
           "purpose": "Directory native/kernel. Purpose not yet described by a human."
         },
@@ -109,15 +109,15 @@
           "purpose": "Directory native/store. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:c41ae3e0ea8b90fb31d168cf9044152212884d7456d5b6c5c2e01732f2281ab0",
-      "compiled_at": "2026-10-09T12:47:22Z",
+      "children_root": "sha256:22b977bfd6db6545e512a083b0fb6c9c644b7a04c84d1a1c3de2389f49b60bc8",
+      "compiled_at": "2026-10-10T03:01:04Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:46b6348c6d3b05c623e9ef9814d8b90ed1cc6449906f361d41547b264b12dd50",
+      "digest": "sha256:14192734c76840815c344af42af21c84274265dcc374a3ce2bccb01113bc83a9",
       "evidence_files": 4,
       "evidence_root": "sha256:e410b845507e00568e15b51a5797af32a97e0e4b8ab4e8487bb7c98e7e0cf335",
       "files": 456,
-      "generated_at_commit": "e4abc01d183d0bf59804b848443802c0151de57a",
-      "source_tree": "sha256:c5d5c5ba6874200927790555c15975a79e9c119823ee1eb67f85dbb593f0669d"
+      "generated_at_commit": "f759310fc87760e56432e734db76c540c6e936ae",
+      "source_tree": "sha256:b6069184b55fd3b9c5a36e34b4255c05c6d52491a0c37209df04b14283550d5d"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/native/kernel/.crumb b/native/kernel/.crumb
index 9163c162..360beb65 100644
--- a/native/kernel/.crumb
+++ b/native/kernel/.crumb
@@ -57,8 +57,8 @@
           "purpose": "Directory native/kernel/artifact. Purpose not yet described by a human."
         },
         {
-          "digest": "9fa14e9032eeb17c172aa6016ba1e2248220b48fe1389270cf4dc743925b023f",
-          "last_commit": "ac4e021",
+          "digest": "8d23109c0020750054a7d8fe88c08caea0f602ea4cd80d42df1eded1239cd1e4",
+          "last_commit": "f759310",
           "name": "core",
           "purpose": "Directory native/kernel/core. Purpose not yet described by a human."
         },
@@ -69,8 +69,8 @@
           "purpose": "Directory native/kernel/dev. Purpose not yet described by a human."
         },
         {
-          "digest": "e650493f5b00f0c22a9415f6b6bac3682d0ae95da8d22f4f96768ce420f180c4",
-          "last_commit": "2bc7146",
+          "digest": "8be1f15e7d5a46e33259c2e3300e8a73900b857cdf840137f4bbaa33474c5c14",
+          "last_commit": "f759310",
           "name": "include",
           "purpose": "Directory native/kernel/include. Purpose not yet described by a human."
         },
@@ -87,27 +87,27 @@
           "purpose": "Directory native/kernel/svc. Purpose not yet described by a human."
         },
         {
-          "digest": "b07c3b809edc64472fd5e97f82063d7894758a708c6147f33dad1ad2736599c1",
-          "last_commit": "e4abc01",
+          "digest": "bd7a628ec21fa55aba03262d870b561131e94872127ad7e05ea864f2e4cf41f8",
+          "last_commit": "f759310",
           "name": "tests",
           "purpose": "Directory native/kernel/tests. Purpose not yet described by a human."
         },
         {
-          "digest": "414bb61e8cc5185f66cee0e8a7a809c3c03e92770eb4229ab5e94b60a9aa055a",
-          "last_commit": "61bd76a",
+          "digest": "a1d0d3826f56fa39927cea4b9d0187774cebf0ce3472c8bcc0fb6c0ce791f572",
+          "last_commit": "f759310",
           "name": "tools",
           "purpose": "Directory native/kernel/tools. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:a5f26a6aa28dd0fd361cfe8a2b033742817a83d8f928a570fe4908b0a9f8218c",
-      "compiled_at": "2026-10-09T12:47:22Z",
+      "children_root": "sha256:f65291ec86dd22c897d67da90555dc6d851d5cfd6a98fcf48dab9ae612230ca3",
+      "compiled_at": "2026-10-10T03:01:04Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:d410f7e809cdbf670066c1658a7b3734c9ffa99f07e4191b474891854852a826",
+      "digest": "sha256:2921a914fc906e8535222b97e684ad38763a1fe70957337e58f5aa83b35ca555",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 292,
-      "generated_at_commit": "e4abc01d183d0bf59804b848443802c0151de57a",
-      "source_tree": "sha256:e7f17c02d4d2ed98c19f6eaf6d5a010633d002fb0ad73d8f70bfeff06ba31e1d"
+      "generated_at_commit": "f759310fc87760e56432e734db76c540c6e936ae",
+      "source_tree": "sha256:8b96c3b614798fa1d9248e06cbc212ae767a700c199f7b091115c769e5b6135f"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/native/kernel/Makefile b/native/kernel/Makefile
index 9f91eea9..2ae18b32 100644
--- a/native/kernel/Makefile
+++ b/native/kernel/Makefile
@@ -869,9 +869,11 @@ acpi-dev-mutant: $(KDIR)/tests/test_acpi_dev.c $(HOST_SRCS) $(KDIR)/tests/ck_tes
 # TEST-ONLY mutants of the IORT parse/lookup in core/acpi.c: test_smmu must
 # FAIL against each (TRUNCATE: extra mappings dropped instead of the table
 # refused; SEGMENT_BLIND: lookup ignores the PCI segment; OVERLAP_OK:
-# overlapping input ranges in one segment accepted). Host only (acpi.c
-# refuses them freestanding and with CK_HARDWARE_STAGING).
-IORT_MUTANTS := CK_IORT_MUTANT_TRUNCATE CK_IORT_MUTANT_SEGMENT_BLIND CK_IORT_MUTANT_OVERLAP_OK
+# overlapping input ranges in one segment accepted; OTHER_BLIND: mappings to
+# a second SMMUv3 node forgotten, so a GB10-shaped requester reads as "no
+# stream" instead of "behind another SMMU"). Host only (acpi.c refuses them
+# freestanding and with CK_HARDWARE_STAGING).
+IORT_MUTANTS := CK_IORT_MUTANT_TRUNCATE CK_IORT_MUTANT_SEGMENT_BLIND CK_IORT_MUTANT_OVERLAP_OK CK_IORT_MUTANT_OTHER_BLIND
 iort-mutants: $(OUT)/host/test_smmu
 	@mkdir -p $(OUT)/host-mut; fail=0; \
 	$(OUT)/host/test_smmu > $(OUT)/host-mut/iort-base.log 2>&1 || { echo "unmutated test_smmu fails"; fail=1; }; \
diff --git a/native/kernel/core/.crumb b/native/kernel/core/.crumb
index ebda7e17..7b04a4a1 100644
--- a/native/kernel/core/.crumb
+++ b/native/kernel/core/.crumb
@@ -7,14 +7,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-09T02:51:28Z",
+      "compiled_at": "2026-10-10T03:01:04Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:9fa14e9032eeb17c172aa6016ba1e2248220b48fe1389270cf4dc743925b023f",
+      "digest": "sha256:8d23109c0020750054a7d8fe88c08caea0f602ea4cd80d42df1eded1239cd1e4",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 39,
-      "generated_at_commit": "0c53308f596bbccc2c3a8345b139f082ab2532e9",
-      "source_tree": "sha256:887f01fd9a283bb3747c2a5607b722cf62b4fd3c3a1e0a16d7eb3d01a2653742"
+      "generated_at_commit": "f759310fc87760e56432e734db76c540c6e936ae",
+      "source_tree": "sha256:1a91ae0dcaa6205fbb096691cb5808b5f1415580966d65b5c5337f72607df938"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/native/kernel/core/acpi.c b/native/kernel/core/acpi.c
index a526611e..e3a46ce4 100644
--- a/native/kernel/core/acpi.c
+++ b/native/kernel/core/acpi.c
@@ -314,7 +314,8 @@ int ck_acpi_spans(uint64_t rsdp, void (*fn)(uint64_t lo, uint64_t hi, void *ctx)
 
 /* TEST-only IORT mutants (make iort-mutants): each must make test_smmu
  * FAIL. Host builds only; never part of an image. */
-#if defined(CK_IORT_MUTANT_TRUNCATE) || defined(CK_IORT_MUTANT_SEGMENT_BLIND) || defined(CK_IORT_MUTANT_OVERLAP_OK)
+#if defined(CK_IORT_MUTANT_TRUNCATE) || defined(CK_IORT_MUTANT_SEGMENT_BLIND) || defined(CK_IORT_MUTANT_OVERLAP_OK) || \
+    defined(CK_IORT_MUTANT_OTHER_BLIND)
 #if !__STDC_HOSTED__
 #error "CK_IORT_MUTANT_* are host test mutants only"
 #endif
@@ -349,6 +350,11 @@ int ck_iort_parse(const void *iort, struct ck_iort_smmu *out)
     if (iort_nodes(t, len, &count, &at))
         return -1;
     int found = 0;
+    /* Every SMMUv3 node seen in pass 0 (offset, base); the first one is
+     * the SMMU this kernel drives, the rest only name what refuses a
+     * requester mapped to them (ck_iort_other_stream). */
+    struct { uint32_t off; uint64_t base; } smmus[CK_IORT_MAX_SMMUS];
+    uint32_t nsmmus = 0;
     for (int pass = 0; pass < 2; pass++) {
         uint32_t off = at;
         for (uint32_t i = 0; i < count; i++) {
@@ -365,14 +371,22 @@ int ck_iort_parse(const void *iort, struct ck_iort_smmu *out)
                     (uint64_t)mcount * IORT_MAP_BYTES > (uint64_t)(nlen - moff))
                     return -1;
             }
-            if (pass == 0 && type == IORT_NODE_SMMUV3 && !found) {
+            if (pass == 0 && type == IORT_NODE_SMMUV3) {
                 if (nlen < 24)
                     return -1;
-                s.base = rd64(n + 16);
-                if (!s.base)
+                uint64_t base = rd64(n + 16);
+                if (!base)
                     return -1;
-                s.node_off = off;
-                found = 1;
+                if (nsmmus >= CK_IORT_MAX_SMMUS)
+                    return -1;
+                smmus[nsmmus].off = off;
+                smmus[nsmmus].base = base;
+                nsmmus++;
+                if (!found) {
+                    s.base = base;
+                    s.node_off = off;
+                    found = 1;
+                }
             }
             if (pass == 1 && type == IORT_NODE_ROOT_COMPLEX) {
                 /* Root complex node: PCI segment number at +28 (ACPICA
@@ -383,8 +397,32 @@ int ck_iort_parse(const void *iort, struct ck_iort_smmu *out)
                 uint32_t seg = rd32(n + IORT_RC_SEGMENT);
                 for (uint32_t m = 0; m < mcount; m++) {
                     const uint8_t *e = n + moff + m * IORT_MAP_BYTES;
-                    if (rd32(e + 12) != s.node_off)
+                    uint32_t ref = rd32(e + 12);
+                    if (ref != s.node_off) {
+#ifndef CK_IORT_MUTANT_OTHER_BLIND
+                        /* A mapping to another SMMUv3 node: remembered so
+                         * the requester is reported as behind that SMMU.
+                         * A mapping to anything else (an ITS group) is not
+                         * a stream at all. */
+                        for (uint32_t k = 0; k < nsmmus; k++) {
+                            if (smmus[k].off != ref)
+                                continue;
+                            if (s.nother >= CK_IORT_MAX_OTHER)
+                                return -1;
+                            struct ck_iort_other *o = &s.other[s.nother++];
+                            o->map.segment = seg;
+                            o->map.input_base = rd32(e);
+                            o->map.id_count = rd32(e + 4);
+                            o->map.output_base = rd32(e + 8);
+                            o->smmu_base = smmus[k].base;
+                            o->smmu_off = smmus[k].off;
+                            break;
+                        }
+#else
+                        (void)smmus; (void)nsmmus; /* TEST mutant: other SMMUs forgotten */
+#endif
                         continue;
+                    }
                     if (s.nmaps >= CK_IORT_MAX_MAPS) {
 #ifdef CK_IORT_MUTANT_TRUNCATE
                         continue; /* TEST mutant: drop the extra mappings silently */
@@ -435,6 +473,23 @@ int ck_iort_stream_id(const struct ck_iort_smmu *s, uint32_t segment, uint32_t r
     return -1;
 }
 
+int ck_iort_other_stream(const struct ck_iort_smmu *s, uint32_t segment, uint32_t rid, uint32_t *sid,
+                         uint64_t *smmu_base)
+{
+    for (uint32_t i = 0; i < s->nother; i++) {
+        const struct ck_iort_map *m = &s->other[i].map;
+        if (m->segment != segment || rid < m->input_base)
+            continue;
+        uint32_t rel = rid - m->input_base;
+        if (rel > m->id_count || m->output_base + rel < m->output_base)
+            continue;
+        *sid = m->output_base + rel;
+        *smmu_base = s->other[i].smmu_base;
+        return 0;
+    }
+    return -1;
+}
+
 /* ---- IORT named components (platform devices such as the DGX Spark USB
  * controllers, ACPI ids NVDA8000/NVDA8001) ---- */
 #define IORT_NODE_NAMED 1u
diff --git a/native/kernel/core/acpi.h b/native/kernel/core/acpi.h
index a68cf42c..007c6f6e 100644
--- a/native/kernel/core/acpi.h
+++ b/native/kernel/core/acpi.h
@@ -99,23 +99,48 @@ struct ck_iort_map {
     uint32_t segment;   /* PCI segment number of the root complex */
     uint32_t input_base, id_count, output_base; /* id_count = number of IDs - 1 */
 };
+/* Root complex mappings that target an SMMUv3 node other than the first
+ * (aienos#286 cut B5/B6: on the DGX Spark, MEASURED 2026-10-10, segment 15,
+ * the GB10's, maps to the second SMMUv3 at 0x13000000). The kernel does not
+ * drive those SMMUs; it records the mapping so a requester behind one is
+ * reported as CK_SMMU_OTHER (base and stream named) instead of "no stream".
+ * CK_IORT_MAX_SMMUS bounds the SMMUv3 nodes remembered in a parse (Spark:
+ * 3) and CK_IORT_MAX_OTHER the mappings to them (Spark: 1). */
+#define CK_IORT_MAX_SMMUS 8
+#define CK_IORT_MAX_OTHER 8
+struct ck_iort_other {
+    struct ck_iort_map map;
+    uint64_t smmu_base; /* register base of the SMMUv3 node the mapping targets */
+    uint32_t smmu_off;  /* offset of that node in the table */
+};
 struct ck_iort_smmu {
     uint64_t base;      /* SMMUv3 register base */
     uint32_t node_off;  /* offset of the SMMUv3 node in the table */
     uint32_t nmaps;
     struct ck_iort_map map[CK_IORT_MAX_MAPS];
+    uint32_t nother;
+    struct ck_iort_other other[CK_IORT_MAX_OTHER];
 };
 /* 1 found, 0 no SMMUv3 node, -1 malformed (bad signature, truncation, a
  * node or mapping array outside the table, base 0, a root complex node
  * too short to carry its segment number, more than CK_IORT_MAX_MAPS
- * mappings to the SMMU, or two mappings to the SMMU whose input ranges
- * overlap in the same segment: an ambiguous requester id is refused, not
- * resolved by table order). */
+ * mappings to the SMMU, more than CK_IORT_MAX_SMMUS SMMUv3 nodes or
+ * CK_IORT_MAX_OTHER mappings to the other SMMUs, or two mappings to the
+ * SMMU whose input ranges overlap in the same segment: an ambiguous
+ * requester id is refused, not resolved by table order). A mapping to a
+ * node that is not an SMMUv3 (an ITS group) is neither a stream nor an
+ * "other" entry. */
 int ck_iort_parse(const void *iort, struct ck_iort_smmu *out);
 /* Stream ID for PCI requester id `rid` (bus<<8 | dev<<3 | fn) in PCI
  * segment `segment`; 0 ok, -1 if no mapping of that segment covers it. A
  * mapping of another segment never matches. */
 int ck_iort_stream_id(const struct ck_iort_smmu *s, uint32_t segment, uint32_t rid, uint32_t *sid);
+/* Same lookup over the mappings to SMMUs this kernel does not drive: 0 and
+ * the stream id plus that SMMU's register base when (segment, rid) is
+ * covered by one of them, -1 otherwise. Never consulted for granting a
+ * window; it only names what refuses the requester. */
+int ck_iort_other_stream(const struct ck_iort_smmu *s, uint32_t segment, uint32_t rid, uint32_t *sid,
+                         uint64_t *smmu_base);
 
 /* IORT named component (node type 1) whose device object name has the same
  * final segment as `name` ("USB0" matches "\\_SB_.USB0"). out gets the node
diff --git a/native/kernel/core/smmu_svc.c b/native/kernel/core/smmu_svc.c
index a54bc759..516d1d91 100644
--- a/native/kernel/core/smmu_svc.c
+++ b/native/kernel/core/smmu_svc.c
@@ -139,8 +139,20 @@ int ck_dma_confine(uint32_t segment, uint32_t rid, uint64_t phys, uint64_t len,
     if (rc)
         return rc;
     uint32_t sid;
-    if (ck_iort_stream_id(&g.iort, segment, rid, &sid))
+    if (ck_iort_stream_id(&g.iort, segment, rid, &sid)) {
+        /* Behind an SMMUv3 this kernel does not drive (Spark: the GB10,
+         * segment 15, on the IORT's second SMMUv3): refused as
+         * CK_SMMU_OTHER with that SMMU and stream named, len 0, exactly
+         * as the named-component path does. Never granted unconfined. */
+        uint64_t other_base;
+        if (ck_iort_other_stream(&g.iort, segment, rid, &sid, &other_base) == 0) {
+            out->smmu_base = other_base; /* reported, never used */
+            out->stream_id = sid;
+            out->iova = out->len = 0;
+            return CK_SMMU_OTHER;
+        }
         return CK_SMMU_NOSTREAM;
+    }
     return confine_sid(sid, phys, len, out);
 }
 
diff --git a/native/kernel/include/.crumb b/native/kernel/include/.crumb
index 683787a6..cf2619d3 100644
--- a/native/kernel/include/.crumb
+++ b/native/kernel/include/.crumb
@@ -7,14 +7,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-08T19:15:06Z",
+      "compiled_at": "2026-10-10T03:01:04Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:e650493f5b00f0c22a9415f6b6bac3682d0ae95da8d22f4f96768ce420f180c4",
+      "digest": "sha256:8be1f15e7d5a46e33259c2e3300e8a73900b857cdf840137f4bbaa33474c5c14",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 1,
-      "generated_at_commit": "9696c7d98e324105b6b161626dc82450f1b8ab2b",
-      "source_tree": "sha256:a0dfb41ff4da70076ceda943e9b0d4c3cc18be53263471443f2dbbf1df44db27"
+      "generated_at_commit": "f759310fc87760e56432e734db76c540c6e936ae",
+      "source_tree": "sha256:42b0464a43072df25a15e267fb6ccc34dcf65afa6696eb97dc6ca350a1098f81"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/native/kernel/include/ck.h b/native/kernel/include/ck.h
index 51aebd19..d16396b2 100644
--- a/native/kernel/include/ck.h
+++ b/native/kernel/include/ck.h
@@ -122,7 +122,10 @@ struct ck_dma_confinement {
 };
 /* `segment` is the PCI segment of the device and `rid` its requester id
  * (bus<<8 | dev<<3 | fn) inside that segment: the IORT resolves the stream
- * id within that segment's root complex only. */
+ * id within that segment's root complex only. Also CK_SMMU_OTHER when that
+ * root complex maps the requester to an SMMUv3 other than the one this
+ * kernel brings up (the IORT's first); *out then names that SMMU and the
+ * stream, with len 0, for the report. Never grants unconfined. */
 int ck_dma_confine(uint32_t segment, uint32_t rid, uint64_t phys, uint64_t len, struct ck_dma_confinement *out);
 /* Same window for an ACPI platform device (no PCI requester id), added for
  * the platform xHCI path (NEXT-PHASE-3 cut 2): the stream comes from the
diff --git a/native/kernel/tests/.crumb b/native/kernel/tests/.crumb
index 3af3bb7e..973cf4e9 100644
--- a/native/kernel/tests/.crumb
+++ b/native/kernel/tests/.crumb
@@ -7,14 +7,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-09T03:30:34Z",
+      "compiled_at": "2026-10-10T03:01:04Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:b07c3b809edc64472fd5e97f82063d7894758a708c6147f33dad1ad2736599c1",
+      "digest": "sha256:bd7a628ec21fa55aba03262d870b561131e94872127ad7e05ea864f2e4cf41f8",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 149,
-      "generated_at_commit": "6682b7b406975166e9f60747cb7d12849a30305d",
-      "source_tree": "sha256:7c929c4de6036231d6c91b703ad431177948af2ef64a5015aaf956d0b89c6e6b"
+      "generated_at_commit": "f759310fc87760e56432e734db76c540c6e936ae",
+      "source_tree": "sha256:2f0d2318feac266813ecc6ba2e9f643207b666885291c9a542805441d9757d49"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/native/kernel/tests/test_smmu.c b/native/kernel/tests/test_smmu.c
index faaad7e5..85d3650c 100644
--- a/native/kernel/tests/test_smmu.c
+++ b/native/kernel/tests/test_smmu.c
@@ -355,6 +355,9 @@ static void test_iort(void)
     CHECK(ck_iort_stream_id(&s, 0, 0x0010, &sid) == 0 && sid == 0x10);
     CHECK(ck_iort_stream_id(&s, 0, 0xffff, &sid) == 0 && sid == 0xffff);
     CHECK(ck_iort_stream_id(&s, 0, 0x10000, &sid) == -1); /* the ITS-only mapping is not an SMMU stream */
+    /* ... and not an "other SMMU" entry either: only SMMUv3 nodes count. */
+    uint64_t ob = 0;
+    CHECK(s.nother == 0 && ck_iort_other_stream(&s, 0, 0x10000, &sid, &ob) == -1);
     build_iort(t, 0);
     CHECK(ck_iort_parse(t, &s) == 0);
     /* Malformed: node length past the table, mapping array past the node,
@@ -378,7 +381,7 @@ static void test_iort(void)
     w32(t + 40, 40); /* node array inside the 48-byte IORT header */
     CHECK(ck_iort_parse(t, &s) == -1);
     /* A mapping whose output would wrap is never a stream. */
-    struct ck_iort_smmu w = { 1, 0, 1, { { 0, 0, 0xffff, 0xfffffff0u } } };
+    struct ck_iort_smmu w = { .base = 1, .nmaps = 1, .map = { { 0, 0, 0xffff, 0xfffffff0u } } };
     CHECK(ck_iort_stream_id(&w, 0, 0x20, &sid) == -1);
 }
 
@@ -437,6 +440,19 @@ static void test_iort_spark_shape(void)
     CHECK(ck_iort_parse(t, &s) == 1);
     CHECK(s.base == 0x13800000ull && s.node_off == a && s.nmaps == 15);
     CHECK(s.map[4].segment == 4 && s.map[4].output_base == 0x50000);
+    /* GB10 000f:01:00.0 (MEASURED 2026-10-10, docs/GB10_IORT_DECODE.md):
+     * segment 15 maps rid 0..0xffff one-to-one onto the second SMMUv3
+     * (0x13000000), so rid 0x100 is stream 0x100 behind an SMMU this
+     * kernel does not drive. The first-SMMU lookup must refuse it and
+     * the other-SMMU lookup must name it. */
+    uint64_t ob = 0;
+    CHECK(s.nother == 1 && s.other[0].map.segment == 15 && s.other[0].smmu_off == b &&
+          s.other[0].smmu_base == 0x13000000ull && s.other[0].map.id_count == 0xffff);
+    CHECK(ck_iort_other_stream(&s, 15, 0x100, &sid, &ob) == 0 && sid == 0x100 && ob == 0x13000000ull);
+    CHECK(ck_iort_other_stream(&s, 15, 0x0, &sid, &ob) == 0 && sid == 0x0);
+    CHECK(ck_iort_other_stream(&s, 15, 0x10000, &sid, &ob) == -1); /* past the range */
+    CHECK(ck_iort_other_stream(&s, 4, 0x100, &sid, &ob) == -1);    /* on the first SMMU, not "other" */
+    CHECK(ck_iort_other_stream(&s, 16, 0x100, &sid, &ob) == -1);   /* no such segment */
     /* NVMe 0004:01:00.0 (MEASURED: segment 4, behind smmu 0x13800000):
      * rid = bus 1 << 8 | dev 0 << 3 | fn 0 = 0x100; segment 4's mapping
      * starts at stream 0x50000, so 0x50000 + 0x100 = 0x50100. */
diff --git a/native/kernel/tools/.crumb b/native/kernel/tools/.crumb
index e124a8df..9f3b7993 100644
--- a/native/kernel/tools/.crumb
+++ b/native/kernel/tools/.crumb
@@ -7,14 +7,14 @@
     "generated": {
       "children": [],
       "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
-      "compiled_at": "2026-10-06T19:08:10Z",
+      "compiled_at": "2026-10-10T03:01:04Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:414bb61e8cc5185f66cee0e8a7a809c3c03e92770eb4229ab5e94b60a9aa055a",
+      "digest": "sha256:a1d0d3826f56fa39927cea4b9d0187774cebf0ce3472c8bcc0fb6c0ce791f572",
       "evidence_files": 0,
       "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
       "files": 12,
-      "generated_at_commit": "f23da6872ed8576de162878d89c4eaaa3e065099",
-      "source_tree": "sha256:da8ab6a70391ade803dbc658186ffaf53b88f16206ad88b184122a94eb3f8ac6"
+      "generated_at_commit": "f759310fc87760e56432e734db76c540c6e936ae",
+      "source_tree": "sha256:6ac752f541641e60c4bdaf06ee43079c2f5b8402350a29ca3fa71a066cb00c35"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/native/kernel/tools/ck_acpi_scan.c b/native/kernel/tools/ck_acpi_scan.c
index f7c0efe2..ef77807b 100644
--- a/native/kernel/tools/ck_acpi_scan.c
+++ b/native/kernel/tools/ck_acpi_scan.c
@@ -226,8 +226,14 @@ int main(int argc, char **argv)
         iort_notes(iort);
         prc = ck_iort_parse(iort, &first);
         if (prc == 1)
-            printf("# smmu: the kernel drives the first SMMUv3 node: node@0x%x base=0x%llx (pci maps=%u)\n",
-                   first.node_off, (unsigned long long)first.base, first.nmaps);
+            printf("# smmu: the kernel drives the first SMMUv3 node: node@0x%x base=0x%llx (pci maps=%u, maps to other SMMUs=%u)\n",
+                   first.node_off, (unsigned long long)first.base, first.nmaps, first.nother);
+        if (prc == 1)
+            for (uint32_t i = 0; i < first.nother; i++)
+                printf("# smmu: segment %u rid 0x%x..0x%x -> stream 0x%x.. on SMMUv3 node@0x%x base=0x%llx (not driven: CK_SMMU_OTHER)\n",
+                       first.other[i].map.segment, first.other[i].map.input_base,
+                       first.other[i].map.input_base + first.other[i].map.id_count, first.other[i].map.output_base,
+                       first.other[i].smmu_off, (unsigned long long)first.other[i].smmu_base);
         else
             printf("# smmu: ck_iort_parse=%d (%s)\n", prc, prc == 0 ? "no SMMUv3 node" : "malformed");
         parse_notes(iort);