summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a
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/gk20a
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/gk20a')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 3b6c3660..2dc62716 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -1200,6 +1200,7 @@ struct gpu_ops {
1200 int (*setup_pll)(struct gk20a *g, unsigned long link_mask); 1200 int (*setup_pll)(struct gk20a *g, unsigned long link_mask);
1201 int (*minion_data_ready_en)(struct gk20a *g, 1201 int (*minion_data_ready_en)(struct gk20a *g,
1202 unsigned long link_mask, bool sync); 1202 unsigned long link_mask, bool sync);
1203 void (*get_connected_link_mask)(u32 *link_mask);
1203 /* API */ 1204 /* API */
1204 int (*link_early_init)(struct gk20a *g, unsigned long mask); 1205 int (*link_early_init)(struct gk20a *g, unsigned long mask);
1205 u32 (*link_get_mode)(struct gk20a *g, u32 link_id); 1206 u32 (*link_get_mode)(struct gk20a *g, u32 link_id);