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/omega-mv/blob/main/aienux/spark/plat_gb10.om # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / aienux / spark / plat_gb10.om` 32 lines ยท 923 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 2 note aienux/spark/plat_gb10.om: DGX Spark GB10 platform profile for spark_main.om (production SPARK.EFI). 3 note Real GB20B (vendor 0x10de) with 64 MiB BAR0, mandatory RTL8127, SMMUv3 A/B/C at the GB10 bases. 4 const SPK_PLAT_QEMU ulong 0 5 const SPK_PLAT_NEED_RTL ulong 1 6 note == SPARK_GB20B_BAR0_SZ / SPARK_GB20B_BAR0_PA (bar0_mmio.om); omc consts must be literals. 7 const SPK_PLAT_GPU_BAR_SZ ulong `67108864` 8 const SPK_PLAT_GPU_BAR_FALLBACK ulong `603979776` 9 10 fn spk_plat_is_gpu vid ulong did ulong to bool 11 ret eq vid 0x10de 12 end 13 14 fn spk_plat_verify_gpu hb long to bool 15 ret bmmio_verify_gb20b hb 16 end 17 18 fn spk_plat_note_stage2 to void 19 end 20 21 note SMMUv3 nodes expected in IORT, in order: A (PCIe/NVMe/RTL), B (GB20B), C (abort-only). 22 const SPK_PLAT_NSMMU ulong 3 23 24 fn spk_plat_smmu_base i ulong to ulong 25 if eq i 0 26 ret SPARK_SMMU_A_PA 27 end 28 if eq i 1 29 ret SPARK_SMMU_B_PA 30 end 31 ret SPARK_SMMU_C_PA 32 end