summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100/nvlink_gv100.c
diff options
context:
space:
mode:
authorTejal Kudav <tkudav@nvidia.com>2018-08-08 06:19:35 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-21 06:32:58 -0400
commite486ff45d02ae1ee286a1bc100157487cc9b029b (patch)
tree66d87633521bc4176ba004a5aab84f68932561a9 /drivers/gpu/nvgpu/gv100/nvlink_gv100.c
parent7842a9459cb5295b06901fe517775089f5a6909b (diff)
gpu: nvgpu: Remove switching alt_clk to slowclk
nvlink alt_clk switch defaults to slowclk; the init value of register field is slowclk. So we need not program the register field 'clk_alt_switchfinalsel'. Also the code lines were not taking effect as the value is not written back to the register. JIRA NVGPU-966 Change-Id: I75904e94a8e113c17fb3bf8c414174c549ad893e Signed-off-by: Tejal Kudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1795050 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv100/nvlink_gv100.c')
-rw-r--r--drivers/gpu/nvgpu/gv100/nvlink_gv100.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv100/nvlink_gv100.c b/drivers/gpu/nvgpu/gv100/nvlink_gv100.c
index b945b902..b51fc6fa 100644
--- a/drivers/gpu/nvgpu/gv100/nvlink_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/nvlink_gv100.c
@@ -1533,9 +1533,6 @@ static void gv100_nvlink_prog_alt_clk(struct gk20a *g)
1533 tmp &= ~trim_sys_nvl_common_clk_alt_switch_slowclk_m(); 1533 tmp &= ~trim_sys_nvl_common_clk_alt_switch_slowclk_m();
1534 tmp |= trim_sys_nvl_common_clk_alt_switch_slowclk_xtal4x_f(); 1534 tmp |= trim_sys_nvl_common_clk_alt_switch_slowclk_xtal4x_f();
1535 gk20a_writel(g, trim_sys_nvl_common_clk_alt_switch_r(), tmp); 1535 gk20a_writel(g, trim_sys_nvl_common_clk_alt_switch_r(), tmp);
1536
1537 tmp &= ~trim_sys_nvl_common_clk_alt_switch_finalsel_m();
1538 tmp |= trim_sys_nvl_common_clk_alt_switch_finalsel_slowclk_f();
1539} 1536}
1540 1537
1541static int gv100_nvlink_enable_links_pre_top(struct gk20a *g, u32 links) 1538static int gv100_nvlink_enable_links_pre_top(struct gk20a *g, u32 links)