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
35 lines
1.7 KiB
C
35 lines
1.7 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
#ifndef NV_RS_REGISTRY_ADAPTER_H
|
|
#define NV_RS_REGISTRY_ADAPTER_H
|
|
#ifdef NV_RS_REGISTRY_FIXTURE
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
typedef uint32_t u32;
|
|
#else
|
|
#include <linux/types.h>
|
|
#endif
|
|
struct nv_rs_registry;
|
|
#ifndef NV_RS_REGISTRY_FIXTURE
|
|
/* Borrow module-owned read-only load parameters during a live driver call. */
|
|
u32 nv_rs_registry_msi_options(const char **global, const char **per_device);
|
|
#endif
|
|
/* CPU-only immutable module-option snapshot. Caller serializes writes/close
|
|
* against reads, holds owning GPU/system lifetime, and uses process context. */
|
|
int nv_rs_registry_open(struct nv_rs_registry **out);
|
|
int nv_rs_registry_close(struct nv_rs_registry *context);
|
|
/* NV status is separate from unavailable Linux execution. Value is unchanged
|
|
* for any executed nonzero NV status, matching RmReadRegistryDword. */
|
|
int nv_rs_registry_read(struct nv_rs_registry *context, const char *key,
|
|
u32 *nv_status, u32 *value);
|
|
/* Internal registry writes: per_gpu=false selects the global configuration.
|
|
* Type1 DWORD requires four bytes; type2 binary and type3 STRING own raw bytes.
|
|
* String storage preserves supplied length/NUL bytes; no implicit defaults. */
|
|
/* Caller provides at least one writable buffer byte even for requested size0,
|
|
* matching original output clearing. Missing/short leaves length0 and byte0. */
|
|
int nv_rs_registry_read_string(struct nv_rs_registry *,const char *key,
|
|
u32 *nv_status,void *buffer,u32 *bytes);
|
|
int nv_rs_registry_write(struct nv_rs_registry *context, bool per_gpu,
|
|
const char *key, u32 type, const void *data, size_t bytes);
|
|
#endif
|