580.94.06

This commit is contained in:
russellcnv
2025-10-27 13:41:40 -07:00
parent 1babfa3dab
commit e2dbb3d99c
74 changed files with 55029 additions and 53585 deletions

View File

@@ -58,6 +58,12 @@ typedef struct {
*/
void (*suspend)(NvU32 gpu_id);
void (*resume)(NvU32 gpu_id);
/* Remove callback, called when a device is going away completely. */
void (*remove)(NvU32 gpu_id);
/* Probe callback, called when a device is being hotplugged. */
void (*probe)(const nv_gpu_info_t *gpu_info);
} nvidia_modeset_callbacks_t;
/*

View File

@@ -78,6 +78,8 @@ NV_STATUS nv_set_system_power_state (nv_power_state_t, nv_pm_action_depth_t)
void nvidia_modeset_suspend (NvU32 gpuId);
void nvidia_modeset_resume (NvU32 gpuId);
void nvidia_modeset_remove (NvU32 gpuId);
void nvidia_modeset_probe (const nv_linux_state_t *nvl);
NvBool nv_is_uuid_in_gpu_exclusion_list (const char *);
NV_STATUS nv_parse_per_device_option_string(nvidia_stack_t *sp);

View File

@@ -688,6 +688,13 @@ typedef struct UvmGpuInfo_tag
// GPU setup in CDMM mode
NvBool cdmmEnabled;
// If nvlinkDirectConnect is NV_TRUE,
// nvlDirectConnectMemoryWindowStart is the GPA base address for the GPU's vidmem over
// direct-connect NVLink. It is used when creating PTEs of GPU memory mappings
// to direct NVLink peers.
NvBool nvlDirectConnect;
NvU64 nvlDirectConnectMemoryWindowStart;
} UvmGpuInfo;
typedef struct UvmGpuFbInfo_tag

View File

@@ -598,13 +598,17 @@ typedef enum NvKmsKapiRegisterWaiterResultRec {
NVKMS_KAPI_REG_WAITER_ALREADY_SIGNALLED,
} NvKmsKapiRegisterWaiterResult;
typedef void NvKmsKapiSuspendResumeCallbackFunc(NvBool suspend);
struct NvKmsKapiGpuInfo {
nv_gpu_info_t gpuInfo;
MIGDeviceId migDevice;
};
struct NvKmsKapiCallbacks {
void (*suspendResume)(NvBool suspend);
void (*remove)(NvU32 gpuId);
void (*probe)(const struct NvKmsKapiGpuInfo *gpu_info);
};
struct NvKmsKapiFunctionsTable {
/*!
@@ -1473,12 +1477,12 @@ struct NvKmsKapiFunctionsTable {
);
/*!
* Set the callback function for suspending and resuming the display system.
* Set the pointer to the callback function table.
*/
void
(*setSuspendResumeCallback)
(*setCallbacks)
(
NvKmsKapiSuspendResumeCallbackFunc *function
const struct NvKmsKapiCallbacks *callbacks
);
/*!