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

@@ -38,6 +38,7 @@ struct gk20a;
* @see gpu_ops
*/
struct gops_mssnvlink {
u32 (*get_links)(struct gk20a *g, u32 **links);
void (*init_soc_credits)(struct gk20a *g);
};