Files
nvdriver/tools/probe_original_null_control.py
nvidia-driver-rs 4526e6a816 Baseline: validated 30/30 tree with passing Level 7 hardware regression
- 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
2026-11-23 23:48:38 +00:00

14 lines
893 B
Python

#!/usr/bin/env python3
"""Bounded NULL-control transport probe. No GPU objects/commands are requested."""
import os,fcntl,struct,json,pathlib,errno
records=[];fd=os.open('/dev/nvidiactl',os.O_RDWR)
try:
for command in [0,0x20800000,0x4000]:
for pointer,size,flags in [(0,0,0),(0,4,0),(0xffffffffffffffff,4,0),(0xffffffffffffffff,4,1)]:
b=bytearray(struct.pack('<IIIIQII',0xdeadbeef,0xdeadbeef,command,flags,pointer,size,0xa5a5a5a5));rc=0
try:fcntl.ioctl(fd,0xc020462a,b,True)
except OSError as e:rc=e.errno
records.append(dict(command=hex(command),pointer=hex(pointer),size=size,flags=flags,linux_errno=rc,NV_status=struct.unpack_from('<I',b,28)[0],response=b.hex()))
finally:os.close(fd)
print(json.dumps(dict(scope='NULL controls only; no resource allocations or GPU commands',version=pathlib.Path('/sys/module/nvidia/version').read_text().strip(),records=records),indent=2))