diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2018-01-22 18:03:02 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-24 17:42:34 -0500 |
commit | 7bd1c4640ca37ef621a11b7bbabe2ead86dff87b (patch) | |
tree | 5b24957dd7c8fef1187047c35b4a1d775eebe3d1 /drivers/gpu/nvgpu/include | |
parent | fb0a23ea168fd0947d9bc1064f91f15ef8a0c057 (diff) |
gpu: nvgpu: gv11b: disable idle clock slowdown
Updated thermal settings as per hw POR update:
- Disabled idle clock slowdown
- Updated therm_grad_stepping1_pdiv_duration as per updated
hw por value.
Bug 200365110
Change-Id: I0c67366ecebd5681343746e9badb57fa74dfaeaa
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1643895
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_therm_gv11b.h | 34 |
1 files changed, 33 insertions, 1 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 3afe7501..0050083c 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 | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -332,6 +332,38 @@ static inline u32 therm_clk_slowdown_idle_factor_disabled_f(void) | |||
332 | { | 332 | { |
333 | return 0x0U; | 333 | return 0x0U; |
334 | } | 334 | } |
335 | static inline u32 therm_clk_slowdown_2_r(u32 i) | ||
336 | { | ||
337 | return 0x000201a0U + i*4U; | ||
338 | } | ||
339 | static inline u32 therm_clk_slowdown_2_idle_condition_a_select_f(u32 v) | ||
340 | { | ||
341 | return (v & 0xfU) << 0U; | ||
342 | } | ||
343 | static inline u32 therm_clk_slowdown_2_idle_condition_a_type_f(u32 v) | ||
344 | { | ||
345 | return (v & 0x7U) << 4U; | ||
346 | } | ||
347 | static inline u32 therm_clk_slowdown_2_idle_condition_a_type_v(u32 r) | ||
348 | { | ||
349 | return (r >> 4U) & 0x7U; | ||
350 | } | ||
351 | static inline u32 therm_clk_slowdown_2_idle_condition_a_type_never_f(void) | ||
352 | { | ||
353 | return 0x40U; | ||
354 | } | ||
355 | static inline u32 therm_clk_slowdown_2_idle_condition_b_type_f(u32 v) | ||
356 | { | ||
357 | return (v & 0x7U) << 12U; | ||
358 | } | ||
359 | static inline u32 therm_clk_slowdown_2_idle_condition_b_type_v(u32 r) | ||
360 | { | ||
361 | return (r >> 12U) & 0x7U; | ||
362 | } | ||
363 | static inline u32 therm_clk_slowdown_2_idle_condition_b_type_never_f(void) | ||
364 | { | ||
365 | return 0x4000U; | ||
366 | } | ||
335 | static inline u32 therm_grad_stepping_table_r(u32 i) | 367 | static inline u32 therm_grad_stepping_table_r(u32 i) |
336 | { | 368 | { |
337 | return 0x000202c8U + i*4U; | 369 | return 0x000202c8U + i*4U; |