diff options
author | Deepak Goyal <dgoyal@nvidia.com> | 2017-09-22 06:06:36 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-04 05:27:12 -0400 |
commit | 192afccf7c9982ea47b46fd4b7ace4114ff7b45e (patch) | |
tree | 755137eb73ca1b70baf7ac6cf4fa540c57c6d459 /drivers/gpu/nvgpu/gv11b/gr_gv11b.c | |
parent | f63f96866dd3cd696e37cf7e83d419cca4f965fa (diff) |
gpu: nvgpu: gv11b: skip clk gating prog for pre-si
For pre-silicon platforms, clock gating
should be skipped as it is not supported.
Added new flags "can_"x"lcg" to check platform
capability before programming SLCG,BLCG and ELCG.
Bug 200314250
Change-Id: Iec7564b00b988cdd50a02f3130662727839c5047
Signed-off-by: Deepak Goyal <dgoyal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1566251
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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) { |