mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-02-06 08:09:58 +00:00
535.113.01
This commit is contained in:
@@ -186,6 +186,7 @@ CSINFO chipsetInfo[] =
|
||||
{PCI_VENDOR_ID_INTEL, 0x7A82, CS_INTEL_7A82, "Intel-AlderLake", Intel_7A82_setupFunc},
|
||||
{PCI_VENDOR_ID_INTEL, 0x7A84, CS_INTEL_7A82, "Intel-AlderLake", Intel_7A82_setupFunc},
|
||||
{PCI_VENDOR_ID_INTEL, 0x1B81, CS_INTEL_1B81, "Intel-SapphireRapids", NULL},
|
||||
{PCI_VENDOR_ID_INTEL, 0x7A8A, CS_INTEL_1B81, "Intel-SapphireRapids", NULL},
|
||||
{PCI_VENDOR_ID_INTEL, 0x18DC, CS_INTEL_18DC, "Intel-IceLake", NULL},
|
||||
{PCI_VENDOR_ID_INTEL, 0x7A04, CS_INTEL_7A04, "Intel-RaptorLake", Intel_7A04_setupFunc},
|
||||
|
||||
|
||||
@@ -207,9 +207,13 @@ enum os_pci_req_atomics_type {
|
||||
OS_INTF_PCIE_REQ_ATOMICS_128BIT
|
||||
};
|
||||
NV_STATUS NV_API_CALL os_enable_pci_req_atomics (void *, enum os_pci_req_atomics_type);
|
||||
NV_STATUS NV_API_CALL os_get_numa_node_memory_usage (NvS32, NvU64 *, NvU64 *);
|
||||
NV_STATUS NV_API_CALL os_numa_add_gpu_memory (void *, NvU64, NvU64, NvU32 *);
|
||||
NV_STATUS NV_API_CALL os_numa_remove_gpu_memory (void *, NvU64, NvU64, NvU32);
|
||||
NV_STATUS NV_API_CALL os_offline_page_at_address(NvU64 address);
|
||||
void* NV_API_CALL os_get_pid_info(void);
|
||||
void NV_API_CALL os_put_pid_info(void *pid_info);
|
||||
NV_STATUS NV_API_CALL os_find_ns_pid(void *pid_info, NvU32 *ns_pid);
|
||||
|
||||
extern NvU32 os_page_size;
|
||||
extern NvU64 os_page_mask;
|
||||
|
||||
@@ -684,6 +684,21 @@ NV_STATUS osGetCurrentThread(OS_THREAD_HANDLE *pThreadId)
|
||||
return rmStatus;
|
||||
}
|
||||
|
||||
void* osGetPidInfo(void)
|
||||
{
|
||||
return os_get_pid_info();
|
||||
}
|
||||
|
||||
void osPutPidInfo(void *pOsPidInfo)
|
||||
{
|
||||
os_put_pid_info(pOsPidInfo);
|
||||
}
|
||||
|
||||
NV_STATUS osFindNsPid(void *pOsPidInfo, NvU32 *pNsPid)
|
||||
{
|
||||
return os_find_ns_pid(pOsPidInfo, pNsPid);
|
||||
}
|
||||
|
||||
NV_STATUS osAttachToProcess(void** ppProcessInfo, NvU32 ProcessId)
|
||||
{
|
||||
//
|
||||
@@ -5371,6 +5386,28 @@ osReleaseGpuOsInfo
|
||||
nv_put_file_private(pOsInfo);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Get free, total memory of a NUMA node by NUMA node ID from kernel.
|
||||
*
|
||||
* @param[in] numaId NUMA node ID.
|
||||
* @param[out] free_memory_bytes free memory in bytes.
|
||||
* @param[out] total_memory_bytes total memory in bytes.
|
||||
*
|
||||
*/
|
||||
void
|
||||
osGetNumaMemoryUsage
|
||||
(
|
||||
NvS32 numaId,
|
||||
NvU64 *free_memory_bytes,
|
||||
NvU64 *total_memory_bytes
|
||||
)
|
||||
{
|
||||
NV_STATUS status = os_get_numa_node_memory_usage(numaId,
|
||||
free_memory_bytes,
|
||||
total_memory_bytes);
|
||||
NV_ASSERT(status == NV_OK);
|
||||
}
|
||||
|
||||
/*!
|
||||
* @brief Add GPU memory as a NUMA node.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user