diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 679b8492..628b6823 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -4067,6 +4067,9 @@ void gr_gk20a_init_blcg_mode(struct gk20a *g, u32 mode, u32 engine) | |||
4067 | { | 4067 | { |
4068 | u32 gate_ctrl; | 4068 | u32 gate_ctrl; |
4069 | 4069 | ||
4070 | if (!nvgpu_is_enabled(g, NVGPU_GPU_CAN_BLCG)) | ||
4071 | return; | ||
4072 | |||
4070 | gate_ctrl = gk20a_readl(g, therm_gate_ctrl_r(engine)); | 4073 | gate_ctrl = gk20a_readl(g, therm_gate_ctrl_r(engine)); |
4071 | 4074 | ||
4072 | switch (mode) { | 4075 | switch (mode) { |
@@ -4095,6 +4098,9 @@ void gr_gk20a_init_elcg_mode(struct gk20a *g, u32 mode, u32 engine) | |||
4095 | 4098 | ||
4096 | gate_ctrl = gk20a_readl(g, therm_gate_ctrl_r(engine)); | 4099 | gate_ctrl = gk20a_readl(g, therm_gate_ctrl_r(engine)); |
4097 | 4100 | ||
4101 | if (!nvgpu_is_enabled(g, NVGPU_GPU_CAN_ELCG)) | ||
4102 | return; | ||
4103 | |||
4098 | switch (mode) { | 4104 | switch (mode) { |
4099 | case ELCG_RUN: | 4105 | case ELCG_RUN: |
4100 | gate_ctrl = set_field(gate_ctrl, | 4106 | gate_ctrl = set_field(gate_ctrl, |