Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvswitch_get_link_handlers: initialize ->read_discovery_token method by default #647

Open
wants to merge 1 commit into
base: 545.23
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/common/nvswitch/kernel/nvswitch.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,20 @@ _nvswitch_corelib_write_discovery_token
return NVL_SUCCESS;
}

static NV_API_CALL NvlStatus
_nvswitch_corelib_read_discovery_token
(
nvlink_link *link,
NvU64 *token
)
{
if (link->version >= NVLINK_DEVICE_VERSION_40)
{
return NVL_SUCCESS;
}
return NVL_SUCCESS;
}

static NV_API_CALL NvlStatus
_nvswitch_corelib_ali_training
(
Expand Down Expand Up @@ -349,6 +363,7 @@ nvswitch_get_link_handlers
nvswitch_link_handlers->training_complete = _nvswitch_corelib_training_complete;
nvswitch_link_handlers->get_uphy_load = _nvswitch_corelib_get_uphy_load;
nvswitch_link_handlers->write_discovery_token = _nvswitch_corelib_write_discovery_token;
nvswitch_link_handlers->read_discovery_token = _nvswitch_corelib_read_discovery_token;
nvswitch_link_handlers->ali_training = _nvswitch_corelib_ali_training;
}

Expand Down