mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 14:38:47 +00:00
- Updated tools/post_reboot.sh to check kernel oops taint bit and stuck driver tasks instead of <86400s uptime - Level 7 hardware regression passed on 0000:b3:00.0 (module 37e6fa430835eee2b426019db3ad70eeb7a9e9070c09c84bd9b973cf56cbe529, 107 inventory words, 0 static mismatches, CUDA baseline verified before and after) - Updated .gitignore to exclude build archives (*.a, *.rlib), __pycache__, and raw trace dumps
516 lines
28 KiB
JSON
516 lines
28 KiB
JSON
{
|
|
"scope": "GV100 (Tesla V100) WPR image of the light-secure Falcon manager with its five clients NVDEC, GPCCS, FECS, PMU and SEC2: OBJLSFM InitLocked (_nv043236rm), OBJLSFM Load (_nv043238rm) and the image writer _nv043215rm that OBJACR Load reaches through _nv016931rm",
|
|
"evidence": [
|
|
{
|
|
"category": "instruction emulation",
|
|
"what": "tools/check_gpu_wpr_blob_binary.py executes the original instructions with creator- and binder-selected function tables and the packed firmware records of the original object, and captures every byte written to the mapped region. 184 cases; core gpu::wpr_blob and gpu::lsf_entry reproduce all of them.",
|
|
"cases": 184,
|
|
"cases_by_kind": {
|
|
"traced V100 (V)": 1,
|
|
"client subsets (S)": 15,
|
|
"owner and lazy flags (O)": 19,
|
|
"debug mode and signatures (D)": 24,
|
|
"addresses and DMEM sizes (A)": 26,
|
|
"lengths (L)": 48,
|
|
"descriptor words (P)": 44,
|
|
"record selection (R)": 4,
|
|
"failures (F)": 3
|
|
},
|
|
"oracle": "target/gpu-stage/original-wpr-blob.txt",
|
|
"oracle_sha256": "d7dbd387821f1bc0a8b90050ea14080472c9bfa3650d87cbbb7b50e0eef1e553",
|
|
"physical_case_blob_bytes": 790528,
|
|
"physical_case_blob_sha256": "7f2d488e69f0222156762555478b31f5a9b255b0706d5129479039d3a817d20b",
|
|
"rust_result": "175 images byte-identical (SHA-256, every header and descriptor, write order, total size, region request); 6 refusals equal (4 builds the original fails with 0x57 because the PMU or SEC2 has no signature for the mode, 2 builds that select NVDEC records outside the container); 3 rows are failures of services outside the composition (a multi-GPU group, the PMU object's function) and are not modelled.",
|
|
"functions_executed": {
|
|
"setup": 110,
|
|
"build (traced case)": 74,
|
|
"build (all tracked cases)": 77,
|
|
"list": "reports/gpu-wpr-blob-original.json"
|
|
}
|
|
},
|
|
{
|
|
"category": "original-driver observation",
|
|
"what": "The image write in the MMIO trace of the original driver on 0000:b3:00.0 (target/trace/b3-bar12-rle.txt, BAR2 mapping at 0x2000) and its register reads (target/trace/b3-bar0.txt).",
|
|
"cross_checks": {
|
|
"bar2_extract": {
|
|
"file": "target/trace/b3-bar12-rle.txt",
|
|
"sha256": "6be25ac2ea4b845eeec6453715b4182d91d37627b105c84b939846c8ebe4bbd6",
|
|
"lines": [
|
|
448,
|
|
194318
|
|
],
|
|
"full_trace_lines": [
|
|
32454338,
|
|
32649867
|
|
],
|
|
"copies_without_data": 14,
|
|
"stored_bytes_with_data": 775428,
|
|
"order_offsets_and_lengths_equal": true,
|
|
"stored_data_equal": true,
|
|
"bytes_never_written_are_zero_in_the_blob": true
|
|
},
|
|
"register_reads": {
|
|
"file": "target/trace/b3-bar0.txt",
|
|
"lines": [
|
|
140597,
|
|
140613
|
|
],
|
|
"sequence": [
|
|
"0x10ac08=0x0",
|
|
"0x10ac08=0x0",
|
|
"0x10ac08=0x0",
|
|
"0x10ac08=0x0",
|
|
"0x10ac08=0x0",
|
|
"0x10ac08=0x0",
|
|
"0x10ac08=0x0",
|
|
"0x10ac08=0x0",
|
|
"0x10ac08=0x0",
|
|
"0x10ac08=0x0",
|
|
"0x10a108=0x400e0100",
|
|
"0x10ac08=0x0",
|
|
"0x10ac08=0x0",
|
|
"0x10ac08=0x0",
|
|
"0x10ac08=0x0",
|
|
"0x10ac08=0x0",
|
|
"0x87108=0x20420100"
|
|
],
|
|
"reproduced_by_original_instructions": true
|
|
},
|
|
"sec2_boot_descriptor": {
|
|
"file": "target/trace/b3-bar0.txt",
|
|
"lines": [
|
|
165053,
|
|
165073
|
|
],
|
|
"equals_blob_descriptor_at": "0x0"
|
|
},
|
|
"pmu_argument_offset": {
|
|
"transcript": "DMEM 0xffd0 (analysis report)",
|
|
"blob_descriptor_argv": "0xffd0"
|
|
}
|
|
},
|
|
"result": "The emulated original performs the same 14 data-less copies and five store runs plus the terminator, in the same order at the same offsets and lengths; all 775,428 stored bytes with recorded data are equal; every byte the trace shows no write for is zero in the image. The 17 register reads of the write are the transcript's. The SEC2 boot descriptor in the image equals the 21 words the driver later wrote to SEC2 DMEM; the PMU argument offset equals the DMEM address of the traced argument write.",
|
|
"limit": "Header, LSB-header and boot-descriptor bytes are not in the trace (rep movsb is logged without data). For those the evidence is the instruction emulation; only the SEC2 descriptor has independent hardware data."
|
|
}
|
|
],
|
|
"original_artifact_sha256": "5269a23ffba19a17fe16f076463e7ad4151254659441d1711bee6c6221ff6f4b",
|
|
"firmware_container": {
|
|
"file": "target/firmware/nvidia-rs/580.178.04/gv100.fw",
|
|
"records": 80,
|
|
"sha256": "949c532bc7579b7c1b2c57741f34019fea48967b4456f2a3a6aae0b6b5dd741a",
|
|
"added_for_this_work": [
|
|
"0x11471f0 NVDEC LS descriptor (364 bytes, OBJBSP+0x2c8)",
|
|
"0x1147610 NVDEC LS signature (OBJBSP+0x2e8)",
|
|
"0x114b138 PMU LS signature"
|
|
],
|
|
"note": "The container grew from 77 to 80 records (previous SHA-256 e4609de4...a8d8f3). The installed copy under /lib/firmware/nvidia-rs/580.178.04/ must be refreshed before a hardware run that builds the image."
|
|
},
|
|
"function_chain": {
|
|
"verified_by_execution": [
|
|
"OBJLSFM InitLocked _nv043236rm: clients in the order SEC2, PMU, then the other registered Falcons; _nv043182rm per client (image preparation _nv028614rm, callback +118 _nv043233rm, a 0x1518-byte record with the WPR and LSB headers, pushed at the list head); placement; region request through _nv016949rm",
|
|
"OBJLSFM Load _nv043238rm: per managed Falcon the function at +118 (_nv028385rm), which takes a sub-descriptor of the region from _nv043186rm",
|
|
"OBJACR Load _nv016956rm -> OBJACR+128 _nv016931rm -> _nv043215rm(GPU, OBJLSFM, region descriptor): map, per client header, LSB header, boot descriptor (_nv043231rm -> interface +70 _nv028829rm -> _nv028607rm) unless the client has its own descriptor format, image (_nv028571rm); terminator; unmap"
|
|
],
|
|
"stage_order": "OBJLSFM InitLocked builds the headers and places the clients; OBJACR InitLocked (_nv016955rm: _nv016940rm, OBJACR+120 _nv016953rm, _nv016937rm) allocates the region and gives the request its sub-descriptor (read in pseudocode, not executed here); OBJLSFM Load hands each Falcon its part; OBJACR Load writes the image.",
|
|
"client_order": "_nv043236rm adds SEC2 (engine word 0x28c40800) first, then the PMU, then every other registered Falcon whose +3a8 byte is clear; each record goes to the head of the list, so the image order is the reverse: NVDEC, GPCCS, FECS, PMU, SEC2 for the registration order FECS, GPCCS, NVDEC, PMU, SEC2.",
|
|
"registration_order_evidence": "original-driver observation: while looking a client up _nv043197rm reads 0x10ac08 once per Falcon it passes; the transcript has 3, 2, 1, 4 and 5 reads for the five clients."
|
|
},
|
|
"layout": {
|
|
"table": "24-byte WPR headers from offset 0, one per client in image order, then the word 0xffffffff (offset 0x78 for five clients).",
|
|
"first_lsb_offset": "align256(align512((clients + 1) * 24)) + 12 = 0x20c, then align256 -> 0x300",
|
|
"per_client": "LSB header at align256(cursor); image at align4096(LSB + 240); for a loader client the boot descriptor at align256(image end), with 256 bytes reserved, and the next cursor after them; for a segment-table client (NVDEC) no reservation: the next cursor is the image end.",
|
|
"total": "last cursor rounded up to 4 KiB: 0xc1000; region request id 1 of 0xe0000 bytes (alignment 0x20000, attribute words 12 and 12).",
|
|
"physical_case": [
|
|
{
|
|
"client": "NVDEC",
|
|
"wpr_header": {
|
|
"offset": 0,
|
|
"falconID": 4,
|
|
"lsbOffset": 768,
|
|
"bootstrapOwner": 7,
|
|
"bLazyBootstrap": 1,
|
|
"binVersion": 2,
|
|
"status": 1
|
|
},
|
|
"lsb_header": {
|
|
"offset": 768,
|
|
"signature": {
|
|
"bPrdPresent": 1,
|
|
"bDbgPresent": 1,
|
|
"falconId": 4,
|
|
"bSupportsVersioning": 1,
|
|
"version": 2,
|
|
"depMapCount": 0,
|
|
"sha256_of_192_bytes": "d6dea19a66e7a27ebc5bac267e3f6f2861f8f9bf8db7cc1fe39bfe7d0a5a5a49"
|
|
},
|
|
"ucodeOffset": 4096,
|
|
"ucodeSize": 171520,
|
|
"dataSize": 58624,
|
|
"blCodeSize": 1280,
|
|
"blImemOffset": 0,
|
|
"blDataOffset": 232960,
|
|
"blDataSize": 1280,
|
|
"appCodeOffset": 0,
|
|
"appCodeSize": 0,
|
|
"appDataOffset": 0,
|
|
"appDataSize": 0,
|
|
"flags": 5
|
|
},
|
|
"image": {
|
|
"offset": 4096,
|
|
"bytes": 230144,
|
|
"sha256": "6eab4eae540ca59d6cbed0ac78b803a54bbb6ad781767b3d66085fb411d26c19"
|
|
},
|
|
"boot_descriptor": null,
|
|
"records": {
|
|
"image": "0x1147220",
|
|
"nvdec_descriptor": "0x11471f0",
|
|
"signature": "0x1147610"
|
|
}
|
|
},
|
|
{
|
|
"client": "GPCCS",
|
|
"wpr_header": {
|
|
"offset": 24,
|
|
"falconID": 3,
|
|
"lsbOffset": 234240,
|
|
"bootstrapOwner": 7,
|
|
"bLazyBootstrap": 1,
|
|
"binVersion": 3,
|
|
"status": 1
|
|
},
|
|
"lsb_header": {
|
|
"offset": 234240,
|
|
"signature": {
|
|
"bPrdPresent": 1,
|
|
"bDbgPresent": 1,
|
|
"falconId": 3,
|
|
"bSupportsVersioning": 1,
|
|
"version": 3,
|
|
"depMapCount": 0,
|
|
"sha256_of_192_bytes": "d7e329909878904d94cd028eebce13d090064b568a5f4c77d3010f60c0f73a75"
|
|
},
|
|
"ucodeOffset": 237568,
|
|
"ucodeSize": 14848,
|
|
"dataSize": 2560,
|
|
"blCodeSize": 256,
|
|
"blImemOffset": 13312,
|
|
"blDataOffset": 254976,
|
|
"blDataSize": 256,
|
|
"appCodeOffset": 256,
|
|
"appCodeSize": 14592,
|
|
"appDataOffset": 14848,
|
|
"appDataSize": 2560,
|
|
"flags": 8
|
|
},
|
|
"image": {
|
|
"offset": 237568,
|
|
"bytes": 17408,
|
|
"sha256": "f7bf1539fed3a010b4376d23a1fabeb49737d669c9a74a28a13eade651ddbc09"
|
|
},
|
|
"boot_descriptor": {
|
|
"offset": 254976,
|
|
"bytes": 84,
|
|
"hex": "00000000000000000000000000000000000000000000000000000000000000000000000000a1ebfd07000000000000000039000000000000000000000000000000daebfd07000000000a00000000000000000000"
|
|
},
|
|
"records": {
|
|
"signature": "0x1149e90"
|
|
}
|
|
},
|
|
{
|
|
"client": "FECS",
|
|
"wpr_header": {
|
|
"offset": 48,
|
|
"falconID": 2,
|
|
"lsbOffset": 255232,
|
|
"bootstrapOwner": 7,
|
|
"bLazyBootstrap": 1,
|
|
"binVersion": 3,
|
|
"status": 1
|
|
},
|
|
"lsb_header": {
|
|
"offset": 255232,
|
|
"signature": {
|
|
"bPrdPresent": 1,
|
|
"bDbgPresent": 1,
|
|
"falconId": 2,
|
|
"bSupportsVersioning": 1,
|
|
"version": 3,
|
|
"depMapCount": 0,
|
|
"sha256_of_192_bytes": "9c83b4ce54fcabedca64b276cc4a0ed370bbd132feb597ee8405063d63761fba"
|
|
},
|
|
"ucodeOffset": 258048,
|
|
"ucodeSize": 29696,
|
|
"dataSize": 5120,
|
|
"blCodeSize": 256,
|
|
"blImemOffset": 32256,
|
|
"blDataOffset": 292864,
|
|
"blDataSize": 256,
|
|
"appCodeOffset": 256,
|
|
"appCodeSize": 29440,
|
|
"appDataOffset": 29696,
|
|
"appDataSize": 5120,
|
|
"flags": 0
|
|
},
|
|
"image": {
|
|
"offset": 258048,
|
|
"bytes": 34816,
|
|
"sha256": "8c06923a3d87924dd3945cd2ec4e4e453a44b90ac2d9f3d28ae1b28bb436ea1d"
|
|
},
|
|
"boot_descriptor": {
|
|
"offset": 292864,
|
|
"bytes": 84,
|
|
"hex": "00000000000000000000000000000000000000000000000000000000000000000000000000f1ebfd0700000000000000007300000000000000000000000000000064ecfd07000000001400000000000000000000"
|
|
},
|
|
"records": {
|
|
"signature": "0x1148cd8"
|
|
}
|
|
},
|
|
{
|
|
"client": "PMU",
|
|
"wpr_header": {
|
|
"offset": 72,
|
|
"falconID": 0,
|
|
"lsbOffset": 293120,
|
|
"bootstrapOwner": 7,
|
|
"bLazyBootstrap": 0,
|
|
"binVersion": 1,
|
|
"status": 1
|
|
},
|
|
"lsb_header": {
|
|
"offset": 293120,
|
|
"signature": {
|
|
"bPrdPresent": 1,
|
|
"bDbgPresent": 1,
|
|
"falconId": 0,
|
|
"bSupportsVersioning": 1,
|
|
"version": 1,
|
|
"depMapCount": 0,
|
|
"sha256_of_192_bytes": "7328894048596649897a5818514c3fbf7ecd6aa60a2af31d90a59a7c7294b1ab"
|
|
},
|
|
"ucodeOffset": 294912,
|
|
"ucodeSize": 179456,
|
|
"dataSize": 109056,
|
|
"blCodeSize": 256,
|
|
"blImemOffset": 24064,
|
|
"blDataOffset": 583424,
|
|
"blDataSize": 256,
|
|
"appCodeOffset": 256,
|
|
"appCodeSize": 13644,
|
|
"appDataOffset": 179456,
|
|
"appDataSize": 11064,
|
|
"flags": 4
|
|
},
|
|
"image": {
|
|
"offset": 294912,
|
|
"bytes": 288512,
|
|
"sha256": "6c58617a8a38cd431f60aed52317f95950d07fdbe52e919314731ecae6921950"
|
|
},
|
|
"boot_descriptor": {
|
|
"offset": 583424,
|
|
"bytes": 84,
|
|
"hex": "0000000000000000000000000000000000000000000000000000000000000000000000000081ecfd07000000000000004c350000000000000000000000000000003deffd07000000382b000001000000d0ff0000"
|
|
},
|
|
"records": {
|
|
"image": "0x114f6f8",
|
|
"descriptor": "0x114f6e0",
|
|
"signature": "0x114b138"
|
|
}
|
|
},
|
|
{
|
|
"client": "SEC2",
|
|
"wpr_header": {
|
|
"offset": 96,
|
|
"falconID": 7,
|
|
"lsbOffset": 583680,
|
|
"bootstrapOwner": 7,
|
|
"bLazyBootstrap": 1,
|
|
"binVersion": 3,
|
|
"status": 1
|
|
},
|
|
"lsb_header": {
|
|
"offset": 583680,
|
|
"signature": {
|
|
"bPrdPresent": 1,
|
|
"bDbgPresent": 1,
|
|
"falconId": 7,
|
|
"bSupportsVersioning": 1,
|
|
"version": 3,
|
|
"depMapCount": 6,
|
|
"sha256_of_192_bytes": "9f9e6c8e22d16365c244d55555a532180d034d2c14ce7ecb511baefe13f2a277"
|
|
},
|
|
"ucodeOffset": 585728,
|
|
"ucodeSize": 135680,
|
|
"dataSize": 68864,
|
|
"blCodeSize": 512,
|
|
"blImemOffset": 64768,
|
|
"blDataOffset": 790272,
|
|
"blDataSize": 256,
|
|
"appCodeOffset": 16896,
|
|
"appCodeSize": 8976,
|
|
"appDataOffset": 135680,
|
|
"appDataSize": 22516,
|
|
"flags": 0
|
|
},
|
|
"image": {
|
|
"offset": 585728,
|
|
"bytes": 204544,
|
|
"sha256": "d90e32e1ae69e8b73746591b1511c612a19c76458e3f6971ed79ca93fdb1f772"
|
|
},
|
|
"boot_descriptor": {
|
|
"offset": 790272,
|
|
"bytes": 84,
|
|
"hex": "00000000000000000000000000000000000000000000000000000000000000000600000000f2f0fd0700000000400000102300000000000000000000004000000002f3fd07000000f45700000100000088ff0000"
|
|
},
|
|
"records": {
|
|
"image": "0x1153b38",
|
|
"descriptor": "0x1153b50",
|
|
"signature": "0x1153b68"
|
|
}
|
|
}
|
|
],
|
|
"field_sources": {
|
|
"wpr_header": {
|
|
"falconID": "LSF signature word +0x48 (Falcon field +608 after _nv028614rm)",
|
|
"lsbOffset": "placement",
|
|
"bootstrapOwner": "1 if OBJACR+388, else 7 if OBJACR+37f, else 0; GV100 properties give 7 (SEC2)",
|
|
"bLazyBootstrap": "Falcon byte +3a2 or OBJSEC2+513. +3a2 is the interface byte +13 that _nv003365rm sets for chip HAL 0x23, copied by the FECS, GPCCS, NVDEC and SEC2 configuration functions; the PMU's (_nv052061rm) clears it. OBJSEC2+513 is 0 after the SEC2 constructor.",
|
|
"binVersion": "signature version (+0x50) when its bSupportsVersioning (+0x4c) is set, else 0xffffffff; assigned by _nv043215rm",
|
|
"status": "1"
|
|
},
|
|
"lsb_header": {
|
|
"signature": "the 192-byte signature record unchanged (both key pairs; no selection)",
|
|
"ucodeOffset": "placement (image offset)",
|
|
"loader clients (GPCCS, FECS, PMU, SEC2)": "from the loader descriptor D (0x28c layout): blCodeSize = align256(D+58); ucodeSize = blCodeSize + align256(D+80); dataSize = align256(D+68) - align256(D+80); blImemOffset = D+5c; blDataOffset = placement; blDataSize = 0x100; appCodeOffset = D+78 + D+64; appCodeSize = D+7c; appDataOffset = D+80 + D+64; appDataSize = D+84; flags = 8 for Falcon id 3, 4 for id 0, else 0",
|
|
"loader descriptor of the PMU and SEC2": "records 0x114f6e0 (900 bytes, version word 4 or more: used as stored) and 0x1153b50 (656 bytes, version below 4: _nv028614rm inserts a zero word at +50, so the fields sit 4 bytes lower in the record)",
|
|
"loader descriptor of FECS and GPCCS": "built by _nv027605rm and _nv029864rm from the netlist regions, the bootloader records 0x1149308 and 0x114a478 and the metadata records 0x1149410 and 0x114a568 (gpu::lsf_image)",
|
|
"segment-table client (NVDEC)": "from record 0x11471f0 (words W): blCodeSize = W1; blDataOffset = image offset + W2; blDataSize = W3; ucodeSize = W1 + sum of W[6+2i] for i < W4 + W[4*W4+6]; dataSize = W3 + sum of W[2*W4+6+2i]; blImemOffset and the app fields 0; flags 5"
|
|
},
|
|
"boot_descriptor": {
|
|
"ctxDma (+20)": "Falcon field +560: 0 for FECS, GPCCS and the PMU, 6 for SEC2",
|
|
"codeDmaBase (+24)": "region address + image offset + D+64",
|
|
"nonSecureCodeOff, nonSecureCodeSize (+2c, +30)": "D+78, D+7c",
|
|
"codeEntryPoint (+3c)": "D+70",
|
|
"dataDmaBase (+40)": "codeDmaBase + D+80",
|
|
"dataSize (+48)": "D+84",
|
|
"argc, argv (+4c, +50)": "0, 0 for FECS and GPCCS; 1 and DMEM size - 0x30 for the PMU (_nv052149rm, _nv052146rm, DMEM size (reg 0x10a108 >> 1) & 0x1ff00); 1 and DMEM size - 0x78 for SEC2 (_nv055734rm, _nv028810rm, Falcon+198 _nv028454rm on reg 0x87108)",
|
|
"other bytes": "zero (reserved words, signature, secure code fields)"
|
|
},
|
|
"image": "PMU, SEC2 and NVDEC: the decoded image record, copied as whole 32-bit words; FECS and GPCCS: bootloader, code and data assembled by gpu::lsf_image. On the traced board SEC2 is in its RTOS configuration (OBJSEC2+509 set by the constructor for this chip), for which no signature words are patched into the image."
|
|
}
|
|
},
|
|
"register_inputs": {
|
|
"0x10ac08": {
|
|
"use": "bit 20 = debug mode (PMU class +3d8, _nv052308rm); selects which signature key pair must be nonzero for a Falcon to be managed. Does not change any byte when both pairs are present.",
|
|
"transcript": "0x0, lines 140597-140612 during the write"
|
|
},
|
|
"0x21644": {
|
|
"use": "bit 0 clear makes the NVDEC getter _nv046958rm take the image and descriptor from OBJBSP+278 and +2c0 instead of +288 and +2c8 (_nv046969rm)",
|
|
"transcript": "0x1 at every read in the transcript (lines 138786, 139276, 139278, 164714)"
|
|
},
|
|
"0x10a108": {
|
|
"use": "PMU DMEM size for the PMU argument offset",
|
|
"transcript": "0x400e0100 (line 140607) -> 0x10000 -> argv 0xffd0"
|
|
},
|
|
"0x87108": {
|
|
"use": "SEC2 DMEM size for the SEC2 argument offset",
|
|
"transcript": "0x20420100 (line 140613) -> 0x10000 -> argv 0xff88"
|
|
},
|
|
"BOOT0, BOOT42": {
|
|
"use": "chip identification for the engine constructors (GPU+9e8 = 0x23, GPU+d00 = 0x140)",
|
|
"transcript": "0x140000a1 (line 4), 0x140a1000 (line 5)"
|
|
},
|
|
"region address": {
|
|
"use": "enters codeDmaBase and dataDmaBase of the four boot descriptors",
|
|
"value_on_the_traced_run": "0x7fde80000: the WPR start the registers read back after the HS ACR (transcript lines 147253-147256) and codeDmaBase of the traced SEC2 descriptor minus its image offset",
|
|
"note": "An output of the framebuffer allocator, not a constant: a required input of the Rust function."
|
|
},
|
|
"note_on_InitLocked": "In the emulation InitLocked reads 0x10ac08 30 times and 0x21644 once. The transcript has no such run before the NVDEC HS step; the analysis report places two lost-event markers (transcript lines 138656 and 138662) in the Init stage, so these reads are not confirmed by the transcript. Only the 17 reads of the image write are."
|
|
},
|
|
"branches_exercised": {
|
|
"client subsets": "all 15 combinations of NVDEC, GPCCS, FECS and SEC2 left out through the Falcon +3a8 byte (the PMU is always added)",
|
|
"NVDEC without reservation": "every case with NVDEC; its next client starts at the image end",
|
|
"bootstrap owner and lazy bootstrap": "OBJACR+388/+37f in the three combinations, OBJSEC2+513, each Falcon's +3a2 inverted",
|
|
"debug and production signatures": "0x10ac08 with bit 20 set and clear; each client with its production or debug key pair zeroed in both modes: NVDEC, GPCCS and FECS are then left out with one log message, the PMU and SEC2 fail InitLocked with 0x57",
|
|
"alignment": "24 random netlist-region lengths including 1, 3, 4, 255, 256, 257 and the full lengths; 24 sets of image lengths for NVDEC, PMU and SEC2; 44 sets of descriptor words including the NVDEC segment count",
|
|
"addresses and DMEM sizes": "8 region addresses up to 2^48 - 256, 9 values of each configuration word",
|
|
"record selection": "0x21644 bit 0 clear (other NVDEC records; a different image) and the GPU+20c8 function true (no effect on GV100)",
|
|
"not exercised": "OBJACR+387 (a second table of shared sub-WPR headers; clear on GV100), OBJLSFM+190 (clear), guest devices (GPU+4de4), region addresses that are not multiples of 256 and descriptor offsets that are not (the original logs an assertion and continues; the Rust function returns an error), 32-bit wrap of offsets"
|
|
},
|
|
"implemented": [
|
|
"Core gpu::lsf_entry: Loader (loader descriptor words, both record versions), Segments (NVDEC table), Entry::from_loader and Entry::from_segments beside the existing Entry::from_plan, both placement branches in Entry::place (the reservation is skipped for a segment-table client), the generalised LSB header fields and Entry::write_boot_descriptor with argument block. The FECS/GPCCS entry points keep their signatures and results (tools/test_lsf_image_owner.sh passes).",
|
|
"Core gpu::wpr_blob: compose (ordered clients into a caller-provided buffer) and compose_gv100 (the five GV100 clients from the firmware container). no_std, no unsafe, no allocation; packed images are decoded straight into the output buffer.",
|
|
"tools/extract_gv100_firmware.py: three records added (NVDEC LS descriptor and signature, PMU LS signature); 80 records.",
|
|
"tools/check_gpu_wpr_blob_binary.py in the Makefile check target."
|
|
],
|
|
"rust_api": {
|
|
"gpu::wpr_blob::compose_gv100(pack, &Gv100Inputs, workspace, scratch, output) -> Result<Composed, Error>": "Gv100Inputs { region_base, pmu_debug_word (0x10ac08), nvdec_select_word (0x21644), pmu_hwcfg (0x10a108), sec2_hwcfg (0x87108) }; scratch of gv100_scratch_bytes(pack) bytes (128,396 for this container); output of at least 0xc1000 bytes",
|
|
"gpu::wpr_blob::compose(clients, region_base, debug_mode, workspace, output)": "Client { entry, image: Bytes | Packed | Assembled, dma_context, arguments, required }",
|
|
"Composed": "total_bytes, request (AllocationRequest: 0xe0000 bytes, alignment 0x20000, attributes [12, 12]), count, clients[] with falcon id, image length and Placement",
|
|
"errors": "missing or mis-sized records, unpack failures, buffer sizes, Unsigned(falcon id) for the PMU or SEC2, Unsupported(NvdecAlternateRecords) when 0x21644 bit 0 is clear"
|
|
},
|
|
"tests": {
|
|
"always": [
|
|
"gpu::wpr_blob::tests::placement_reproduces_the_traced_offsets",
|
|
"unsigned_clients_and_argument_errors",
|
|
"descriptor_formats",
|
|
"dmem_size_field",
|
|
"sha256_known_answers"
|
|
],
|
|
"ignored": {
|
|
"gpu::wpr_blob::tests::compare_original_wpr_blob": "NV_RS_WPR_BLOB_ORACLE=target/gpu-stage/original-wpr-blob.txt, NV_RS_GV100_FIRMWARE: every oracle row",
|
|
"gpu::wpr_blob::tests::gv100_blob_equals_the_original_and_the_trace": "NV_RS_GV100_FIRMWARE (optionally NV_RS_WPR_BLOB=target/gpu-stage/original-wpr-blob-gv100.bin for a byte comparison): SHA-256 of the image equal to the original's, and the trace-derived offsets, lengths, image digests, zero gaps, SEC2 descriptor words and PMU argument offset"
|
|
}
|
|
},
|
|
"after_the_image": {
|
|
"category": "pseudocode reading with the HAL bindings of reports/gv100-engine-hal-bindings.json; not executed in this work. gpu::acr_image, gpu::wpr_shadow and gpu::acr_wpr_region have their own oracles for parts of it.",
|
|
"allocation": "OBJACR InitLocked _nv016955rm: _nv016940rm folds the requests into region records (0x38 bytes at OBJACR+3a0: read mask +0, write mask +4, bytes +8, alignment +c, client mask +10 = 1 << request id); OBJACR+120 (_nv016953rm) rounds the bytes up to the alignment (0xc1000 -> 0xe0000 at 0x20000) and creates and allocates the primary descriptor (+18: contiguous, framebuffer memory because OBJACR+392 is clear, tag 0x16) and, because OBJACR+386 is set, a shadow of the same size and alignment in framebuffer memory (+20, tag 0x17); _nv016937rm gives each request a sub-descriptor (here offset 0). The addresses are the framebuffer heap's choice. The primary allocation is the future WPR: on the traced run 0x7fde80000 to 0x7fdf5ffff, which the WPR registers read back after the HS ACR (0x7fde802, 0x7fdf403).",
|
|
"image_write": "_nv043215rm writes the image to the primary allocation through a BAR2 mapping (the traced BAR2 writes).",
|
|
"shadow_copy": "OBJACR+110 (_nv016753rm, called from the HS launch _nv016741rm unless OBJACR+38a): with GPU+4de4 zero and OBJACR+385 set (GV100 default; registry RMAcrUseCeForShadowCopy) it copies shadow-size bytes from the primary to the shadow descriptor with _nv044027rm (flags 0x40) between _nv019039rm/_nv019032rm and _nv019035rm, i.e. through a copy-engine channel; otherwise it copies through CPU mappings and a heap buffer (the branch gpu::wpr_shadow implements).",
|
|
"acr_descriptor": {
|
|
"where": "inside the HS ACR image (bundle 0x11430c8, tags 0x24/0x26, 18,176 bytes): at image offset 0x200 + word 2 of the metadata record (tags 0x19/0x1a; 0x2f00), i.e. 0x3100, 0x78 bytes (RM_FLCN_ACR_DESC of the public rmlsfm.h)",
|
|
"fields": {
|
|
"+0x10 wprRegionID": "region index of the request with id 1 (1; anything else is error 0x2c) - _nv016932rm",
|
|
"+0x14 wprOffset": "address of the request's sub-descriptor minus address of the region's primary descriptor (0)",
|
|
"+0x1c regions.noOfRegions": "OBJACR+394 = 2 on GV100 (OBJACR+148, _nv016916rm), the capacity, not the count in use",
|
|
"+0x20 + 0x1c*(i-1) region i": "startAddress = primary address >> 8; endAddress = (address of the last byte + 1) >> 8; regionID = i; readMask, writeMask = region record +0, +4 (12, 12); clientMask = region record +10 (2); shadowMemStartAddress = shadow address >> 8 when OBJACR+386, else 0",
|
|
"+0x58, +0x60 ucodeBlobSize, ucodeBlobBase": "cleared by _nv016741rm in the path taken here",
|
|
"OBJACR+368": "_nv016963rm, an empty function on GV100"
|
|
},
|
|
"expected_on_b3": "wprRegionID 1, wprOffset 0, noOfRegions 2, region 1 = { 0x7fde800, 0x7fdf600, 1, 0xc, 0xc, 2, shadow >> 8 }; the shadow address is not observable in the trace."
|
|
},
|
|
"launch": "_nv016931rm selects image type 1 (OBJACR+37f set, GPU+4de4 zero) and calls _nv016741rm(gpu, acr, 1, 0); then _nv016974rm compares the WPR registers with the region. See reports/gv100-acr-bootstrap-analysis.json for the traced SEC2 sequence.",
|
|
"inputs_of_a_write_and_launch_step": [
|
|
"two framebuffer allocations of 0xe0000 bytes aligned to 0x20000, contiguous: primary P and shadow S",
|
|
"the image composed with region_base = P (compose_gv100) and the four register words; written to P; the first 0xe0000 bytes of P copied to S (0xc1000 image bytes and zeros)",
|
|
"the HS ACR image with its signature placed (gpu::firmware_signature) and the descriptor fields above at 0x3100",
|
|
"the SEC2 HS launch (gpu::falcon_boot) with the boot loader record 0x1153d60"
|
|
]
|
|
},
|
|
"open_items": [
|
|
"The function at vtable +40 of the PMU+b08 object, which _nv043215rm calls after writing the PMU image, was not identified (the object is created by class in _nv051986rm); the harness supplies its status.",
|
|
"The Falcon registration order is taken from the transcript, not from the engine construction code; why the PMU's Falcon is registered after NVDEC's was not traced.",
|
|
"OBJBSP ConstructEngine (_nv018171rm) and the PMU constructor were not executed; their configuration functions were called directly. The SEC2 constructor _nv055607rm was executed.",
|
|
"The graphics engine's netlist views in the FECS and GPCCS objects are fixture-supplied from the original netlist record (gpu::gr_images has its own validation).",
|
|
"No hardware executed. The installed firmware container must be refreshed before a bring-up level uses compose_gv100."
|
|
],
|
|
"correction_2026_11_19_hal_bindings": {
|
|
"date": "2026-11-19",
|
|
"cause": "reports/gv100-engine-hal-bindings-correction.json: argument conventions of the binders and property initializers established from their callers",
|
|
"change": "The harness ran the PMU property initializer _nv005852rm and the OBJLSFM property initializer _nv005835rm as (object, chip owner, RM owner). Their callers pass (object, RM owner, chip owner). Both calls now use that order. The physical image target/gpu-stage/original-wpr-blob-gv100.bin is byte-identical as well.",
|
|
"harness": "tools/check_gpu_wpr_blob_binary.py",
|
|
"harness_sha256_after": "58fc066f4ce94c1102c1f951e2aeabcce3bdd02d990d04188c2b682996fa16c3",
|
|
"oracle": "target/gpu-stage/original-wpr-blob.txt",
|
|
"oracle_sha256_before": "d7dbd387821f1bc0a8b90050ea14080472c9bfa3650d87cbbb7b50e0eef1e553",
|
|
"oracle_sha256_after": "d7dbd387821f1bc0a8b90050ea14080472c9bfa3650d87cbbb7b50e0eef1e553",
|
|
"oracle_changed": false,
|
|
"bindings_report_sha256": "8fbaef939de28a5295ac8cb81cebed21ff9a0310afaff0fabe004978ef1c2386",
|
|
"rust_sources_changed": false,
|
|
"comparison_tests_passed_after": [
|
|
"gpu::wpr_blob::tests::compare_original_wpr_blob",
|
|
"gpu::wpr_blob::tests::gv100_blob_equals_the_original_and_the_trace"
|
|
],
|
|
"harness_sha256_before": "b2639855232bc11091e2b39ead8b1a55d7ec658447970fa370f82f8c15ee6ea7"
|
|
}
|
|
}
|