diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/gr_gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c index f209012c..da632aac 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |||
@@ -2352,6 +2352,9 @@ void gr_gv11b_init_elcg_mode(struct gk20a *g, u32 mode, u32 engine) | |||
2352 | { | 2352 | { |
2353 | u32 gate_ctrl; | 2353 | u32 gate_ctrl; |
2354 | 2354 | ||
2355 | if (!nvgpu_is_enabled(g, NVGPU_GPU_CAN_ELCG)) | ||
2356 | return; | ||
2357 | |||
2355 | gate_ctrl = gk20a_readl(g, therm_gate_ctrl_r(engine)); | 2358 | gate_ctrl = gk20a_readl(g, therm_gate_ctrl_r(engine)); |
2356 | 2359 | ||
2357 | switch (mode) { | 2360 | switch (mode) { |