From 118b7fb891e976d7f5e8845b08d90f33d7e3043e Mon Sep 17 00:00:00 2001 From: Tejal Kudav Date: Mon, 4 Jun 2018 13:15:28 +0530 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1738967 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gk20a.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gk20a') 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 { int (*setup_pll)(struct gk20a *g, unsigned long link_mask); int (*minion_data_ready_en)(struct gk20a *g, unsigned long link_mask, bool sync); + void (*get_connected_link_mask)(u32 *link_mask); /* API */ int (*link_early_init)(struct gk20a *g, unsigned long mask); u32 (*link_get_mode)(struct gk20a *g, u32 link_id); -- cgit v1.2.2