mirror of
https://github.com/QuixiAI/nvdriver.git
synced 2026-12-06 06:28:39 +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
19 lines
512 B
C
19 lines
512 B
C
#define nv_rs_clock_store_alloc original_clock_alloc
|
|
#include "../pf-software/ffi.c"
|
|
#undef nv_rs_clock_store_alloc
|
|
#include <string.h>
|
|
static unsigned char *gpu_image;
|
|
void *nv_rs_clock_store_alloc(size_t bytes)
|
|
{
|
|
void *p=original_clock_alloc(bytes);
|
|
if(bytes==0x6e70) gpu_image=p;
|
|
return p;
|
|
}
|
|
uint64_t fixture_timeout_word(size_t offset, size_t bytes)
|
|
{
|
|
uint64_t value=0;
|
|
assert(gpu_image && bytes<=8 && offset+bytes<=0x6e70);
|
|
memcpy(&value,gpu_image+offset,bytes);
|
|
return value;
|
|
}
|