diff options
author | Seshendra Gadagottu <sgadagottu@nvidia.com> | 2016-01-22 17:25:16 -0500 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-01-27 12:53:31 -0500 |
commit | c43053761b4c74c584f22f31c3d8585df8c6d233 (patch) | |
tree | 23614c0144acf8d1b594d86f3717fe7ca1c7fc5d /drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c | |
parent | 8fb33d92b03b9ee2db421c69252822d09477cce5 (diff) |
gpu: nvgpu: add support for therm gate ctrl
During gpu init, therm gate control is required to
add delay cycles before clock gating.
Bug 1717152
Change-Id: Ifabc428cf7b49e49964dc994eba2c38af4aa1a91
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/936443
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c b/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c index b35403a7..cad74359 100644 --- a/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/priv_ring_gk20a.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GK20A priv ring | 2 | * GK20A priv ring |
3 | * | 3 | * |
4 | * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -39,6 +39,10 @@ void gk20a_reset_priv_ring(struct gk20a *g) | |||
39 | 0x2); | 39 | 0x2); |
40 | 40 | ||
41 | gk20a_readl(g, pri_ringstation_sys_decode_config_r()); | 41 | gk20a_readl(g, pri_ringstation_sys_decode_config_r()); |
42 | |||
43 | if (g->ops.therm.update_therm_gate_ctrl) | ||
44 | g->ops.therm.update_therm_gate_ctrl(g); | ||
45 | |||
42 | } | 46 | } |
43 | 47 | ||
44 | void gk20a_priv_ring_isr(struct gk20a *g) | 48 | void gk20a_priv_ring_isr(struct gk20a *g) |