physics-mv
FORGE: request-bound machine realization, providers and verification for AienOS. Host, simulated and GB10 hardware paths have separate evidence.
Brought by drakestapleton
physics-mv / contracts / native-dgx-spark-draft.json
| 1 | { |
| 2 | "_status": "DRAFT - NOT CANONICAL. Design sketch for physics#2. Not consumed by any build or gate. Values carry a provenance label; only measured_* values were observed, and none is a PHYSICS hardware result. PHYSICS_BOOT_NATIVE_PASS is pending.", |
| 3 | "contract_id": "CONTRACT-NATIVE-DGX-SPARK-GB10-DRAFT", |
| 4 | "version": "0.1.0-draft", |
| 5 | "canonical": false, |
| 6 | "target_platform": "nvidia-dgx-spark-gb10", |
| 7 | "milestone": "PHYSICS_BOOT_NATIVE (pending)", |
| 8 | "design_doc": "docs/native-frame-authority.md", |
| 9 | "provenance_legend": { |
| 10 | "measured_native_uefi": "Observed by native AIENOS code on Machine 1 after firmware (aien-dev/aienux evidence/m2_first_boot_2026-09-24.md).", |
| 11 | "measured_linux": "Observed read-only under Linux 7.0.0-1019-nvidia on Machine 1 (/proc/iomem, dmesg, /proc/meminfo) on 2026-09-26, or aien-dev/aienux evidence/gb10_linux_readonly_2026-09-25.md. Linux view, not a native proof.", |
| 12 | "assumed": "Not measured by this project; must be confirmed before native qualification.", |
| 13 | "derived": "Arithmetic over other values.", |
| 14 | "owner_decision": "Policy value the owner must set." |
| 15 | }, |
| 16 | "architecture": { |
| 17 | "arch": { "value": "aarch64", "provenance": "measured_native_uefi" }, |
| 18 | "entry_exception_level": { "value": "EL2", "provenance": "measured_native_uefi" }, |
| 19 | "cpu_count": { "value": 20, "provenance": "measured_native_uefi", "note": "MADT: 10 efficiency class 0, 10 efficiency class 1" }, |
| 20 | "boot_cpu_midr": { "value": "0x410fd871", "provenance": "measured_native_uefi" }, |
| 21 | "pa_bits": { "value": 40, "provenance": "assumed", "note": "placeholder; read ID_AA64MMFR0_EL1.PARange natively. Only SMMU OAS (40-bit) is measured." } |
| 22 | }, |
| 23 | "memory_profile_schema": { |
| 24 | "source": "ATLAS translates the UEFI memory map before ExitBootServices into a binary PHYSMEM1 profile, passes pointer+length+SHA-256 in the boot descriptor; PHYSICS validates at ingress (design doc section 2).", |
| 25 | "frame_size_bytes": 4096, |
| 26 | "header": { |
| 27 | "size_bytes": 64, |
| 28 | "fields": { |
| 29 | "0x00": "magic u64 = 'PHYSMEM1'", |
| 30 | "0x08": "version u32 = 1, flags u32 = 0", |
| 31 | "0x10": "frame_shift u32 = 12, pa_bits u32", |
| 32 | "0x18": "dram_count u32, rsv_count u32", |
| 33 | "0x20": "dram_offset u64", |
| 34 | "0x28": "rsv_offset u64", |
| 35 | "0x30": "profile_bytes u64", |
| 36 | "0x38": "cpu_count u32, reserved u32 = 0" |
| 37 | } |
| 38 | }, |
| 39 | "dram_range": { "size_bytes": 16, "fields": ["base u64", "size u64"], "rules": ["base,size 4 KiB aligned", "size != 0", "base+size no carry", "end <= 2^pa_bits", "strictly ascending, non-overlapping, non-adjacent"] }, |
| 40 | "reservation": { "size_bytes": 32, "fields": ["base u64", "size u64", "class u32", "flags u32", "source_tag u64"], "rules": ["size != 0", "base+size no carry", "rounded outward to 4 KiB", "known class", "MMIO_APERTURE outside all DRAM ranges", "every other class inside the DRAM union", "overlap between reservations allowed (union)"] } |
| 41 | }, |
| 42 | "limits": { |
| 43 | "max_dram_ranges": { "value": 64, "provenance": "derived", "note": "36 conventional regions measured; ATLAS merges adjacent RAM-class descriptors" }, |
| 44 | "max_reservations": { "value": 192, "provenance": "derived", "note": "184 UEFI descriptors measured + Atlas/Physics/derived carves" }, |
| 45 | "max_candidate_ranges": { "value": 256, "provenance": "derived", "note": "max_dram_ranges + max_reservations" }, |
| 46 | "max_managed_frames": { "value": 33554432, "provenance": "derived", "note": "128 GiB envelope / 4 KiB" }, |
| 47 | "max_l2_summary_words": { "value": 129, "provenance": "derived" }, |
| 48 | "max_metadata_bytes": { "value": 8388608, "provenance": "owner_decision", "note": "about 2x the worst case" }, |
| 49 | "max_profile_bytes": { "value": 65536, "provenance": "owner_decision" } |
| 50 | }, |
| 51 | "frame_authority": { |
| 52 | "representation": "range-segmented hierarchical bitmap (leaf + L1 + L2 summaries)", |
| 53 | "bit_polarity": "0 = free, 1 = granted; padding bits pinned to 1", |
| 54 | "grant_order": "lowest-address free frame in the managed set", |
| 55 | "zero_policy": { "value": "zero-on-grant", "provenance": "owner_decision" }, |
| 56 | "worst_case_metadata": { |
| 57 | "provenance": "derived", |
| 58 | "managed_frames": 33554432, |
| 59 | "candidate_ranges": 256, |
| 60 | "leaf_words": 524544, |
| 61 | "leaf_bytes": 4196352, |
| 62 | "l1_bytes": 65568, |
| 63 | "l2_bytes": 1032, |
| 64 | "range_table_bytes": 8192, |
| 65 | "reservation_table_bytes": 6144, |
| 66 | "header_bytes": 64, |
| 67 | "total_bytes_aligned_64": 4277440, |
| 68 | "region_bytes": 4280320, |
| 69 | "region_frames": 1045 |
| 70 | } |
| 71 | }, |
| 72 | "reservation_classes": [ |
| 73 | { "id": "0x01", "name": "ATLAS_IMAGE", "origin": "profile" }, |
| 74 | { "id": "0x02", "name": "ATLAS_HANDOFF", "origin": "profile" }, |
| 75 | { "id": "0x10", "name": "PHYSICS_IMAGE", "origin": "profile" }, |
| 76 | { "id": "0x11", "name": "PHYSICS_STACKS", "origin": "profile" }, |
| 77 | { "id": "0x12", "name": "PHYSICS_STATE", "origin": "profile" }, |
| 78 | { "id": "0x13", "name": "PHYSICS_FRAME_METADATA", "origin": "derived", "carve": "base of lowest-address candidate range that fits; last" }, |
| 79 | { "id": "0x14", "name": "PHYSICS_TRANSLATION_TABLES", "origin": "derived", "carve": "base of lowest-address candidate range that fits", "size_bytes": { "value": null, "provenance": "owner_decision" } }, |
| 80 | { "id": "0x20", "name": "FW_RUNTIME", "origin": "profile", "uefi_types": ["EfiRuntimeServicesCode", "EfiRuntimeServicesData"] }, |
| 81 | { "id": "0x21", "name": "FW_ACPI", "origin": "profile", "uefi_types": ["EfiACPIReclaimMemory", "EfiACPIMemoryNVS"] }, |
| 82 | { "id": "0x22", "name": "FW_RESERVED", "origin": "profile", "uefi_types": ["EfiReservedMemoryType", "EfiUnusableMemory", "EfiPalCode"] }, |
| 83 | { "id": "0x23", "name": "FW_BOOT_TABLES", "origin": "profile", "note": "TPM event log, ESRT, MOKvar, RNG seed, SMBIOS, MEMRESERVE" }, |
| 84 | { "id": "0x24", "name": "SECURE_WORLD", "origin": "profile", "provenance": "assumed" }, |
| 85 | { "id": "0x30", "name": "MMIO_APERTURE", "origin": "profile", "rule": "outside every DRAM range; not in the frame index" }, |
| 86 | { "id": "0x40", "name": "DMA_SMMU_TABLES", "origin": "derived", "carve": "base of lowest-address candidate range that fits", "size_bytes": { "value": null, "provenance": "owner_decision" } }, |
| 87 | { "id": "0x41", "name": "INTERRUPT_TABLES", "origin": "derived", "carve": "base of lowest-address candidate range that fits", "size_bytes": { "value": null, "provenance": "owner_decision" } }, |
| 88 | { "id": "0x50", "name": "ACCEL_COHERENT_POOL", "origin": "derived", "carve": "top of highest-address candidate range that fits", "size_bytes": { "value": 0, "provenance": "owner_decision" }, "rule": "ordinary coherent DRAM frames; no VRAM/HBM semantics" }, |
| 89 | { "id": "0x60", "name": "OMEGA_SHARED_OBJECT_SPACE", "origin": "derived", "carve": "top of highest-address candidate range that fits", "size_bytes": { "value": 0, "provenance": "owner_decision" } } |
| 90 | ], |
| 91 | "observed_profile_fingerprint": { |
| 92 | "_note": "Cross-check values, not inputs. PHYSICS derives everything from the runtime profile; these only let a gate flag a surprising machine.", |
| 93 | "uefi_descriptor_count": { "value": 184, "provenance": "measured_native_uefi" }, |
| 94 | "uefi_conventional_regions": { "value": 36, "provenance": "measured_native_uefi" }, |
| 95 | "uefi_conventional_kib": { "value": 130073720, "provenance": "measured_native_uefi" }, |
| 96 | "uefi_largest_conventional": { "base": "0x323800000", "pages": 30776318, "end": "0x207D3FE000", "provenance": "measured_native_uefi (end derived)" }, |
| 97 | "dram_envelope": { "base": "0x80000000", "end": "0x2080000000", "size_bytes": 137438953472, "provenance": "measured_linux" }, |
| 98 | "numa_nodes": { "value": 1, "provenance": "measured_linux", "note": "faked by Linux; no SRAT proximity" }, |
| 99 | "linux_system_ram_ranges": { |
| 100 | "provenance": "measured_linux", |
| 101 | "ranges": [ |
| 102 | ["0x80080000", "0x83D60000"], |
| 103 | ["0x83D70000", "0x86560000"], |
| 104 | ["0x87020000", "0x87080000"], |
| 105 | ["0xD5A00000", "0xDE000000"], |
| 106 | ["0xE0020000", "0xFA000000"], |
| 107 | ["0xFA002000", "0xFFD00000"], |
| 108 | ["0xFFD20000", "0x280000000"], |
| 109 | ["0x323800000", "0x207DF70000"] |
| 110 | ], |
| 111 | "total_bytes": 133297463296 |
| 112 | }, |
| 113 | "linux_top_level_reserved_in_envelope": { |
| 114 | "provenance": "measured_linux", |
| 115 | "ranges": [ |
| 116 | ["0x80000000", "0x80080000"], ["0x83D60000", "0x83D70000"], ["0x86560000", "0x87020000"], |
| 117 | ["0x87080000", "0x88101000"], ["0x88200000", "0x8A100000"], ["0x8B080000", "0x8E080000"], |
| 118 | ["0x90000000", "0x933E0000"], ["0x93400000", "0xB0000000"], ["0xB9600000", "0xB9800000"], |
| 119 | ["0xC2E00000", "0xD5A00000"], ["0xE0000000", "0xE0020000"], ["0xFA000000", "0xFA002000"], |
| 120 | ["0xFFD00000", "0xFFD20000"], ["0x280000000", "0x323800000"], ["0x207DF70000", "0x2080000000"] |
| 121 | ], |
| 122 | "total_bytes": 3742904320 |
| 123 | }, |
| 124 | "linux_unlisted_holes_in_envelope": { |
| 125 | "provenance": "measured_linux (absent from /proc/iomem); classification unknown", |
| 126 | "ranges": [ |
| 127 | ["0x88101000", "0x88200000"], ["0x8A100000", "0x8B080000"], ["0x8E080000", "0x90000000"], |
| 128 | ["0x933E0000", "0x93400000"], ["0xB0000000", "0xB9600000"], ["0xB9800000", "0xC2E00000"], |
| 129 | ["0xDE000000", "0xE0000000"] |
| 130 | ] |
| 131 | } |
| 132 | }, |
| 133 | "mmio_apertures_observed": { |
| 134 | "provenance": "measured_linux", |
| 135 | "entries": [ |
| 136 | { "name": "GICD", "base": "0x06800000", "size_bytes": 65536 }, |
| 137 | { "name": "GIC_ITS", "base": "0x06840000", "size_bytes": null }, |
| 138 | { "name": "GICR", "base": "0x06880000", "end": "0x06D80000" }, |
| 139 | { "name": "SMMUv3.1", "base": "0x13000000", "size_bytes": 131072 }, |
| 140 | { "name": "SMMUv3.0", "base": "0x13800000", "size_bytes": 131072 }, |
| 141 | { "name": "SMMUv3.2", "base": "0x14900000", "size_bytes": 131072 }, |
| 142 | { "name": "GB10_BAR0", "base": "0x24000000", "size_bytes": 67108864, "note": "register aperture, not memory" }, |
| 143 | { "name": "ECAM_SEG15", "base": "0x29000000", "buses": "0-1" }, |
| 144 | { "name": "ECAM_SEG0_14", "base": "0xF300000000", "stride": "0x10000000" }, |
| 145 | { "name": "PCI_WINDOWS", "base": "0x3D00000000", "note": "several 56 GiB windows up to 0xC8FFFFFFFF" } |
| 146 | ] |
| 147 | }, |
| 148 | "smmu": { |
| 149 | "version": { "value": "SMMUv3", "provenance": "measured_linux" }, |
| 150 | "instances": { "value": 3, "provenance": "measured_linux" }, |
| 151 | "output_address_bits": { "value": 40, "provenance": "measured_linux" }, |
| 152 | "stream_table": { "value": "2-level, 25 SID bits", "provenance": "measured_linux" }, |
| 153 | "gb10_stream_id": { "value": null, "provenance": "unknown" } |
| 154 | }, |
| 155 | "accelerator_memory_model": { |
| 156 | "model": { "value": "unified coherent LPDDR5x shared by CPU and GPU", "provenance": "assumed" }, |
| 157 | "discrete_vram": { "value": false, "provenance": "assumed" }, |
| 158 | "semantic_rule": "Frame authority has no VRAM/HBM class. Accelerator visibility is a capability attribute (SMMU mapping), plus the optional ACCEL_COHERENT_POOL carve of ordinary DRAM." |
| 159 | }, |
| 160 | "qualification": { |
| 161 | "receipt_namespace": "receipts/native/CONTRACT-NATIVE-DGX-SPARK-GB10-DRAFT/", |
| 162 | "evidence_classes": ["emulation_native_profile", "native_hardware"], |
| 163 | "PHYSICS_BOOT_NATIVE_PASS": "pending", |
| 164 | "qemu_m2_contract_untouched": "CONTRACT-QEMU-VIRT-AARCH64-M2" |
| 165 | } |
| 166 | } |