diff options
author | Seema Khowala <seemaj@nvidia.com> | 2017-09-28 19:57:16 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-03 16:35:48 -0400 |
commit | f63f96866dd3cd696e37cf7e83d419cca4f965fa (patch) | |
tree | 7d457855a5018e41fc6d3d53df003c506abf5cb3 /drivers/gpu/nvgpu/include | |
parent | 058485d28538b033636180c11592a9088878c807 (diff) |
gpu: nvgpu: gv11b: init therm regs for pwr/clk
init *eng_delay*, *eng_idle_filt*, *fecs_idle_filter*
and *hubmmu_idle_filter* in therm regs.
Change-Id: I4ab5374084e993cd96ef28ace87b6013b996178d
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1570556
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_therm_gv11b.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_therm_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_therm_gv11b.h index 64a7e292..b47e37f4 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_therm_gv11b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_therm_gv11b.h | |||
@@ -240,6 +240,10 @@ static inline u32 therm_gate_ctrl_eng_idle_filt_exp_m(void) | |||
240 | { | 240 | { |
241 | return 0x1f << 8; | 241 | return 0x1f << 8; |
242 | } | 242 | } |
243 | static inline u32 therm_gate_ctrl_eng_idle_filt_exp__prod_f(void) | ||
244 | { | ||
245 | return 0x200; | ||
246 | } | ||
243 | static inline u32 therm_gate_ctrl_eng_idle_filt_mant_f(u32 v) | 247 | static inline u32 therm_gate_ctrl_eng_idle_filt_mant_f(u32 v) |
244 | { | 248 | { |
245 | return (v & 0x7) << 13; | 249 | return (v & 0x7) << 13; |
@@ -248,6 +252,10 @@ static inline u32 therm_gate_ctrl_eng_idle_filt_mant_m(void) | |||
248 | { | 252 | { |
249 | return 0x7 << 13; | 253 | return 0x7 << 13; |
250 | } | 254 | } |
255 | static inline u32 therm_gate_ctrl_eng_idle_filt_mant__prod_f(void) | ||
256 | { | ||
257 | return 0x2000; | ||
258 | } | ||
251 | static inline u32 therm_gate_ctrl_eng_delay_before_f(u32 v) | 259 | static inline u32 therm_gate_ctrl_eng_delay_before_f(u32 v) |
252 | { | 260 | { |
253 | return (v & 0xf) << 16; | 261 | return (v & 0xf) << 16; |
@@ -256,6 +264,10 @@ static inline u32 therm_gate_ctrl_eng_delay_before_m(void) | |||
256 | { | 264 | { |
257 | return 0xf << 16; | 265 | return 0xf << 16; |
258 | } | 266 | } |
267 | static inline u32 therm_gate_ctrl_eng_delay_before__prod_f(void) | ||
268 | { | ||
269 | return 0x40000; | ||
270 | } | ||
259 | static inline u32 therm_gate_ctrl_eng_delay_after_f(u32 v) | 271 | static inline u32 therm_gate_ctrl_eng_delay_after_f(u32 v) |
260 | { | 272 | { |
261 | return (v & 0xf) << 20; | 273 | return (v & 0xf) << 20; |
@@ -264,6 +276,10 @@ static inline u32 therm_gate_ctrl_eng_delay_after_m(void) | |||
264 | { | 276 | { |
265 | return 0xf << 20; | 277 | return 0xf << 20; |
266 | } | 278 | } |
279 | static inline u32 therm_gate_ctrl_eng_delay_after__prod_f(void) | ||
280 | { | ||
281 | return 0x0; | ||
282 | } | ||
267 | static inline u32 therm_fecs_idle_filter_r(void) | 283 | static inline u32 therm_fecs_idle_filter_r(void) |
268 | { | 284 | { |
269 | return 0x00020288; | 285 | return 0x00020288; |
@@ -272,6 +288,10 @@ static inline u32 therm_fecs_idle_filter_value_m(void) | |||
272 | { | 288 | { |
273 | return 0xffffffff << 0; | 289 | return 0xffffffff << 0; |
274 | } | 290 | } |
291 | static inline u32 therm_fecs_idle_filter_value__prod_f(void) | ||
292 | { | ||
293 | return 0x0; | ||
294 | } | ||
275 | static inline u32 therm_hubmmu_idle_filter_r(void) | 295 | static inline u32 therm_hubmmu_idle_filter_r(void) |
276 | { | 296 | { |
277 | return 0x0002028c; | 297 | return 0x0002028c; |
@@ -280,6 +300,10 @@ static inline u32 therm_hubmmu_idle_filter_value_m(void) | |||
280 | { | 300 | { |
281 | return 0xffffffff << 0; | 301 | return 0xffffffff << 0; |
282 | } | 302 | } |
303 | static inline u32 therm_hubmmu_idle_filter_value__prod_f(void) | ||
304 | { | ||
305 | return 0x0; | ||
306 | } | ||
283 | static inline u32 therm_clk_slowdown_r(u32 i) | 307 | static inline u32 therm_clk_slowdown_r(u32 i) |
284 | { | 308 | { |
285 | return 0x00020160 + i*4; | 309 | return 0x00020160 + i*4; |