gpu: nvgpu: update gops.mssnvlink

Introduce HAL function gops.mssnvlink.get_links, this function retrieves
the number of nvlinks supported by the chip along with their base
addresses.

Update ga10b_mssnvlink_init_soc_credits to call mssnvlink.get_links.

Jira NVGPU-6641

Change-Id: I4ff857925f126bf41dc83eebc5723403244f66b0
Signed-off-by: Antony Clince Alex <aalex@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2618368
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Antony Clince Alex
2021-10-28 18:19:02 +00:00
committed by mobile promotions
parent 1bcc22ab19
commit 3e7643bb9c
4 changed files with 38 additions and 8 deletions

View File

@@ -1678,6 +1678,7 @@ static const struct gops_grmgr ga10b_ops_grmgr = {
#ifdef CONFIG_NVGPU_HAL_NON_FUSA
static const struct gops_mssnvlink ga10b_ops_mssnvlink = {
.get_links = ga10b_mssnvlink_get_links,
.init_soc_credits = ga10b_mssnvlink_init_soc_credits
};
#endif