diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2016-11-03 11:40:24 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-12-26 01:20:09 -0500 |
commit | 71fbfdb2b84a4f778f19e44421a66e28e5aadf8d (patch) | |
tree | 5bbc2e22682e73b64fa6492bdab27301f254d362 /drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |
parent | 66ed536fb5e57ad73ffbaf24f9c02f0655e7d6cc (diff) |
gpu: nvgpu: MSCG support
- Added enable_mscg, mscg_enabled & mscg_stat flags,
mscg_enabled flag can be used to controll
mscg enable/disable at runtime along with mscg_stat flag.
- Added defines & interface to support ms/mclk-change/post-init-param
- Added defines for lpwr tables read from vbios.
- HAL to support post init param which is require
to setup clockgating interface in PMU & interfaces used during
mscg state machine.
- gk20a_pmu_pg_global_enable() can be called when pg support
required to enable/disable, this also checks & wait
if pstate switch is in progress till it complets
- pg_mutex to protect PG-RPPG/MSCG enable/disable
JIRA DNVGPU-71
Change-Id: If312cefc888a4de0a5c96898baeaac1a76e53e46
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/1247554
(cherry picked from commit e6c94948b8058ba642ea56677ad798fc56b8a28a)
Reviewed-on: http://git-master/r/1270971
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index 3d5cd1b2..2b17d32a 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |||
@@ -93,6 +93,9 @@ struct gk20a_platform { | |||
93 | /* Adaptative ELPG: true = enable flase = disable */ | 93 | /* Adaptative ELPG: true = enable flase = disable */ |
94 | bool enable_aelpg; | 94 | bool enable_aelpg; |
95 | 95 | ||
96 | /* Memory System Clock Gating: true = enable flase = disable*/ | ||
97 | bool enable_mscg; | ||
98 | |||
96 | /* Timeout for per-channel watchdog (in mS) */ | 99 | /* Timeout for per-channel watchdog (in mS) */ |
97 | u32 ch_wdt_timeout_ms; | 100 | u32 ch_wdt_timeout_ms; |
98 | 101 | ||