summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
index 40c75164..ad56167a 100644
--- a/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
+++ b/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
@@ -81,6 +81,10 @@ static int gv11b_tegra_probe(struct device *dev)
81 g->has_syncpoints = false; 81 g->has_syncpoints = false;
82#endif 82#endif
83 83
84 err = gk20a_tegra_init_secure_alloc(platform);
85 if (err)
86 return err;
87
84 platform->disable_bigpage = !device_is_iommuable(dev); 88 platform->disable_bigpage = !device_is_iommuable(dev);
85 89
86 platform->g->gr.ctx_vars.dump_ctxsw_stats_on_channel_close 90 platform->g->gr.ctx_vars.dump_ctxsw_stats_on_channel_close
@@ -93,15 +97,12 @@ static int gv11b_tegra_probe(struct device *dev)
93 97
94 gp10b_tegra_get_clocks(dev); 98 gp10b_tegra_get_clocks(dev);
95 nvgpu_linux_init_clk_support(platform->g); 99 nvgpu_linux_init_clk_support(platform->g);
96 gk20a_tegra_init_secure_alloc(platform->g);
97 100
98 return 0; 101 return 0;
99} 102}
100 103
101static int gv11b_tegra_late_probe(struct device *dev) 104static int gv11b_tegra_late_probe(struct device *dev)
102{ 105{
103 /* Cause early VPR resize */
104 gk20a_tegra_secure_page_alloc(dev);
105 return 0; 106 return 0;
106} 107}
107 108
@@ -263,6 +264,8 @@ struct gk20a_platform gv11b_tegra_platform = {
263 264
264 .reset_assert = gp10b_tegra_reset_assert, 265 .reset_assert = gp10b_tegra_reset_assert,
265 .reset_deassert = gp10b_tegra_reset_deassert, 266 .reset_deassert = gp10b_tegra_reset_deassert,
267
268 .secure_buffer_size = 667648,
266}; 269};
267 270
268static struct device_attribute *dev_attr_sm_l1_tag_ecc_corrected_err_count_array; 271static struct device_attribute *dev_attr_sm_l1_tag_ecc_corrected_err_count_array;