summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100/hal_gv100.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gv100/hal_gv100.c')
-rw-r--r--drivers/gpu/nvgpu/gv100/hal_gv100.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c
index 9d90d1d4..589f6adf 100644
--- a/drivers/gpu/nvgpu/gv100/hal_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c
@@ -44,6 +44,7 @@
44#include "common/fuse/fuse_gm20b.h" 44#include "common/fuse/fuse_gm20b.h"
45#include "common/fuse/fuse_gp10b.h" 45#include "common/fuse/fuse_gp10b.h"
46#include "common/fuse/fuse_gp106.h" 46#include "common/fuse/fuse_gp106.h"
47#include "common/top/top_gv100.h"
47 48
48#include "gk20a/gk20a.h" 49#include "gk20a/gk20a.h"
49#include "gk20a/fifo_gk20a.h" 50#include "gk20a/fifo_gk20a.h"
@@ -926,6 +927,16 @@ static const struct gpu_ops gv100_ops = {
926 .early_init = gv100_nvlink_early_init, 927 .early_init = gv100_nvlink_early_init,
927 }, 928 },
928#endif 929#endif
930 .top = {
931 .get_nvhsclk_ctrl_e_clk_nvl =
932 gv100_top_get_nvhsclk_ctrl_e_clk_nvl,
933 .set_nvhsclk_ctrl_e_clk_nvl =
934 gv100_top_set_nvhsclk_ctrl_e_clk_nvl,
935 .get_nvhsclk_ctrl_swap_clk_nvl =
936 gv100_top_get_nvhsclk_ctrl_swap_clk_nvl,
937 .set_nvhsclk_ctrl_swap_clk_nvl =
938 gv100_top_set_nvhsclk_ctrl_swap_clk_nvl,
939 },
929 .chip_init_gpu_characteristics = gv100_init_gpu_characteristics, 940 .chip_init_gpu_characteristics = gv100_init_gpu_characteristics,
930 .get_litter_value = gv100_get_litter_value, 941 .get_litter_value = gv100_get_litter_value,
931}; 942};
@@ -964,6 +975,7 @@ int gv100_init_hal(struct gk20a *g)
964 gops->priv_ring = gv100_ops.priv_ring; 975 gops->priv_ring = gv100_ops.priv_ring;
965 gops->fuse = gv100_ops.fuse; 976 gops->fuse = gv100_ops.fuse;
966 gops->nvlink = gv100_ops.nvlink; 977 gops->nvlink = gv100_ops.nvlink;
978 gops->top = gv100_ops.top;
967 979
968 /* clocks */ 980 /* clocks */
969 gops->clk.init_clk_support = gv100_ops.clk.init_clk_support; 981 gops->clk.init_clk_support = gv100_ops.clk.init_clk_support;