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
25 lines
1.8 KiB
Python
25 lines
1.8 KiB
Python
#!/usr/bin/env python3
|
|
"""Retain original043182/043236 protocol vectors; no GPU execution."""
|
|
from pathlib import Path
|
|
import json,argparse
|
|
p=argparse.ArgumentParser();p.add_argument('--check',action='store_true');args=p.parse_args()
|
|
r=Path(__file__).resolve().parents[1]
|
|
def array(s):return '['+','.join(str(v)for v in bytes.fromhex(s))+']'
|
|
s='// Generated from actual original043182 and043236/016949 instruction execution.\n'
|
|
s+='type Header = ([u8;24],[u8;240]);\n'
|
|
s+='pub(super) const ENTRIES: &[(bool,u8,bool,Header)] = &[\n'
|
|
for v in json.loads((r/'reports/gpu-lsf-entry-oracle.json').read_text())['entry_records']:
|
|
s+='('+str(v['engine']=='GPCCS').lower()+','+str(v['bootstrap_owner'])+','+str(bool(v['lazy'])).lower()+',('+array(v['wpr'])+','+array(v['lsb'])+')),\n'
|
|
s+='];\ntype Placement = (bool,bool,bool,u32,[Header;2],[u8;48]);\npub(super) const PLACEMENTS: &[Placement] = &[\n'
|
|
for v in json.loads((r/'reports/gpu-lsf-placement-oracle.json').read_text())['placement_records']:
|
|
s+='('+str(v['order'][0]=='GPCCS').lower()+','+str(bool(v['acr392'])).lower()+','+str(bool(v['acr387'])).lower()+','+str(v['total_bytes'])+',['+','.join('('+array(n['wpr'])+','+array(n['lsb'])+')'for n in v['nodes'])+'],'+array(v['request'])+'),\n'
|
|
s+='];\n';s+='pub(super) const BOOT_DESCRIPTORS: &[(bool,u64,u32,[u8;84])] = &[\n'
|
|
for v in json.loads((r/'reports/gpu-lsf-boot-descriptor-oracle.json').read_text())['descriptor_records']:
|
|
if not v['padding_preserved']:raise SystemExit('native descriptor padding changed')
|
|
s+='('+str(v['engine']=='GPCCS').lower()+','+str(v['base'])+','+str(v['dma_context'])+','+array(v['descriptor'])+'),\n'
|
|
s+='];\n';dest=r/'tests/lsf-image/vectors.rs'
|
|
if args.check:
|
|
if dest.read_text()!=s:raise SystemExit('original LSF vectors drift')
|
|
else:dest.write_text(s)
|
|
print('12 actual043182 +8 actual043236/016949 +24 actual028607 vectors retained')
|