summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 4283e1ad..c07e7e4b 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -2142,6 +2142,17 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
2142 if (platform->clk_round_rate) 2142 if (platform->clk_round_rate)
2143 gpu->max_freq = platform->clk_round_rate(g->dev, UINT_MAX); 2143 gpu->max_freq = platform->clk_round_rate(g->dev, UINT_MAX);
2144 2144
2145 g->ops.gr.get_preemption_mode_flags(g, &g->gr.preemption_mode_rec);
2146 gpu->graphics_preemption_mode_flags =
2147 g->gr.preemption_mode_rec.graphics_preemption_mode_flags;
2148 gpu->compute_preemption_mode_flags =
2149 g->gr.preemption_mode_rec.compute_preemption_mode_flags;
2150 gpu->default_graphics_preempt_mode =
2151 g->gr.preemption_mode_rec.default_graphics_preempt_mode;
2152 gpu->default_compute_preempt_mode =
2153 g->gr.preemption_mode_rec.default_compute_preempt_mode;
2154
2155
2145 return 0; 2156 return 0;
2146} 2157}
2147 2158