summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100/hal_gv100.c
diff options
context:
space:
mode:
authorTejal Kudav <tkudav@nvidia.com>2018-06-04 03:45:28 -0400
committerTejal Kudav <tkudav@nvidia.com>2018-06-14 09:44:07 -0400
commit118b7fb891e976d7f5e8845b08d90f33d7e3043e (patch)
tree4bbd0606f86186a4939f3aa643b389b6518f6624 /drivers/gpu/nvgpu/gv100/hal_gv100.c
parenta3356b8ad7ce625c02d7679aefe64185c84fe9a7 (diff)
gpu: nvgpu: nvlink: Add HAL to get link_mask
VBIOS link_disable_mask should be sufficient to find the connected links. As VBIOS is not updated with correct mask, we parse the DT node where we hardcode the link_id. DT method is not scalable as same DT node is used for different dGPUs connected over PCIE. Remove the DT parsing of link id and use HAL to get link_mask based on the GPU. JIRA NVLINK-162 Change-Id: Idb7b639962928ce48711a0d7fc277c4c324bee91 Signed-off-by: Tejal Kudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1738967 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv100/hal_gv100.c')
-rw-r--r--drivers/gpu/nvgpu/gv100/hal_gv100.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c
index 5e42ba9f..92900421 100644
--- a/drivers/gpu/nvgpu/gv100/hal_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c
@@ -843,6 +843,7 @@ static const struct gpu_ops gv100_ops = {
843 .rxdet = NULL, 843 .rxdet = NULL,
844 .setup_pll = gv100_nvlink_setup_pll, 844 .setup_pll = gv100_nvlink_setup_pll,
845 .minion_data_ready_en = gv100_nvlink_minion_data_ready_en, 845 .minion_data_ready_en = gv100_nvlink_minion_data_ready_en,
846 .get_connected_link_mask = gv100_nvlink_get_connected_link_mask,
846 /* API */ 847 /* API */
847 .link_early_init = gv100_nvlink_link_early_init, 848 .link_early_init = gv100_nvlink_link_early_init,
848 .link_get_state = gv100_nvlink_link_get_state, 849 .link_get_state = gv100_nvlink_link_get_state,