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/gv100/hal_gv100.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gv100/hal_gv100.c') 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 = { .rxdet = NULL, .setup_pll = gv100_nvlink_setup_pll, .minion_data_ready_en = gv100_nvlink_minion_data_ready_en, + .get_connected_link_mask = gv100_nvlink_get_connected_link_mask, /* API */ .link_early_init = gv100_nvlink_link_early_init, .link_get_state = gv100_nvlink_link_get_state, -- cgit v1.2.2