mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-02-02 14:37:43 +00:00
535.216.03
This commit is contained in:
@@ -408,6 +408,42 @@ nvswitch_corelib_set_dl_link_mode_ls10
|
||||
|
||||
switch (mode)
|
||||
{
|
||||
case NVLINK_LINKSTATE_SAFE:
|
||||
{
|
||||
// check if link is in reset
|
||||
if (nvswitch_is_link_in_reset(device, link))
|
||||
{
|
||||
NVSWITCH_PRINT(device, ERROR,
|
||||
"%s: link #%d is still in reset, cannot change link state\n",
|
||||
__FUNCTION__, link->linkNumber);
|
||||
return NVL_ERR_INVALID_STATE;
|
||||
}
|
||||
|
||||
NVSWITCH_PRINT(device, INFO,
|
||||
"%s : Link state request to Safe for (%s):(%s) not needed. Skipping.\n",
|
||||
__FUNCTION__, device->name, link->linkName);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case NVLINK_LINKSTATE_HS:
|
||||
{
|
||||
// check if link is in reset
|
||||
if (nvswitch_is_link_in_reset(device, link))
|
||||
{
|
||||
NVSWITCH_PRINT(device, ERROR,
|
||||
"%s: link #%d is still in reset, cannot change link state\n",
|
||||
__FUNCTION__, link->linkNumber);
|
||||
return -NVL_ERR_INVALID_STATE;
|
||||
}
|
||||
|
||||
NVSWITCH_PRINT(device, INFO,
|
||||
"%s : Link state request to Active for (%s):(%s) not needed. Skipping.\n",
|
||||
__FUNCTION__, device->name, link->linkName);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case NVLINK_LINKSTATE_INITPHASE1:
|
||||
{
|
||||
// Apply appropriate SIMMODE settings
|
||||
|
||||
Reference in New Issue
Block a user