diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gv100/nvlink_gv100.c | 8 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/nvlink.h | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gv100/nvlink_gv100.c b/drivers/gpu/nvgpu/gv100/nvlink_gv100.c index ba649382..d0dfebcf 100644 --- a/drivers/gpu/nvgpu/gv100/nvlink_gv100.c +++ b/drivers/gpu/nvgpu/gv100/nvlink_gv100.c | |||
@@ -690,9 +690,12 @@ static u32 gv100_nvlink_minion_init_uphy(struct gk20a *g, unsigned long mask, | |||
690 | unsigned long link_enable; | 690 | unsigned long link_enable; |
691 | 691 | ||
692 | switch(g->nvlink.speed) { | 692 | switch(g->nvlink.speed) { |
693 | case nvgpu_nvlink_speed_default: | 693 | case nvgpu_nvlink_speed_25G: |
694 | init_pll_cmd = minion_nvlink_dl_cmd_command_initpll_0_v(); | 694 | init_pll_cmd = minion_nvlink_dl_cmd_command_initpll_0_v(); |
695 | break; | 695 | break; |
696 | case nvgpu_nvlink_speed_20G: | ||
697 | init_pll_cmd = minion_nvlink_dl_cmd_command_initpll_1_v(); | ||
698 | break; | ||
696 | default: | 699 | default: |
697 | nvgpu_err(g, "Unsupported UPHY speed"); | 700 | nvgpu_err(g, "Unsupported UPHY speed"); |
698 | return -EINVAL; | 701 | return -EINVAL; |
@@ -2644,8 +2647,7 @@ int gv100_nvlink_early_init(struct gk20a *g) | |||
2644 | goto nvlink_init_exit; | 2647 | goto nvlink_init_exit; |
2645 | } | 2648 | } |
2646 | 2649 | ||
2647 | /* For now set default speed */ | 2650 | g->nvlink.speed = nvgpu_nvlink_speed_20G; |
2648 | g->nvlink.speed = nvgpu_nvlink_speed_default; | ||
2649 | 2651 | ||
2650 | err = __gv100_nvlink_state_load_hal(g); | 2652 | err = __gv100_nvlink_state_load_hal(g); |
2651 | if (err) { | 2653 | if (err) { |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/nvlink.h b/drivers/gpu/nvgpu/include/nvgpu/nvlink.h index 18e0aab6..7b8be7d8 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/nvlink.h +++ b/drivers/gpu/nvgpu/include/nvgpu/nvlink.h | |||
@@ -128,7 +128,8 @@ struct nvgpu_nvlink_link { | |||
128 | #define NVLINK_MAX_LINKS_SW 6 | 128 | #define NVLINK_MAX_LINKS_SW 6 |
129 | 129 | ||
130 | enum nvgpu_nvlink_speed { | 130 | enum nvgpu_nvlink_speed { |
131 | nvgpu_nvlink_speed_default, | 131 | nvgpu_nvlink_speed_25G, |
132 | nvgpu_nvlink_speed_20G, | ||
132 | nvgpu_nvlink_speed__last, | 133 | nvgpu_nvlink_speed__last, |
133 | }; | 134 | }; |
134 | 135 | ||