mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-02-01 05:59:48 +00:00
515.76
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
* Total number of nvlink endpoints core library can have
|
||||
* This is mapped to NVLINK_MAX_SYSTEM_LINK_NUM in drivers/nvlink/interface/nvlink.h
|
||||
*/
|
||||
#define NVLINK_MAX_NVLINK_ENDPOINTS 312
|
||||
#define NVLINK_MAX_NVLINK_ENDPOINTS 624
|
||||
|
||||
#define NVLINK_VERSION_STRING_LENGTH 64
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "../nvlink_ctx.h"
|
||||
#include "../nvlink_helper.h"
|
||||
#include "nvlink_lock.h"
|
||||
#include "nvctassert.h"
|
||||
|
||||
#define NVLINK_IOC_GET_BUF(ctrlParams, type) (ctrlParams)->size >= sizeof(type) ? (type *) (ctrlParams)->buf : NULL
|
||||
|
||||
@@ -3423,6 +3424,8 @@ nvlink_lib_ctrl_get_device_link_states
|
||||
NvU32 numLinks = 0;
|
||||
NvU32 i = 0;
|
||||
|
||||
ct_assert(NVLINK_MAX_SYSTEM_LINK_NUM == NVLINK_MAX_NVLINK_ENDPOINTS);
|
||||
|
||||
nvlink_link **links = (nvlink_link **)nvlink_malloc(
|
||||
sizeof(nvlink_link *) * NVLINK_MAX_SYSTEM_LINK_NUM);
|
||||
if (links == NULL)
|
||||
|
||||
Reference in New Issue
Block a user