diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2014-06-12 06:46:15 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:10:22 -0400 |
commit | 6dc277b783bca9170c43c725884878ba63ce64da (patch) | |
tree | 0ddfba648ff4cce95ec9a28dc297e42ccd73df9b /drivers/gpu/nvgpu/gk20a/pmu_gk20a.h | |
parent | 0f9bf924b2be88502c9920ace258c27e0172e3d5 (diff) |
gpu:nvgpu:sysfs node to update aelpg parameter
Added sysfs node to update aelpg parameter.
Pass parameter as below sequence,
SAMPLING_PERIOD_PG_DEFAULT_US, MINIMUM_IDLE_FILTER_DEFAULT_US,
MINIMUM_TARGET_SAVING_DEFAULT_US, POWER_BREAKEVEN_DEFAULT_US,
CYCLES_PER_SAMPLE_MAX_DEFAULT
Bug 1464737
Change-Id: I46873c463820f30f190c722d7ed038622cb2710f
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/422702
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/pmu_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/pmu_gk20a.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h index 5c8a3215..fec0a572 100644 --- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.h | |||
@@ -1066,6 +1066,7 @@ struct pmu_gk20a { | |||
1066 | bool perfmon_sampling_enabled; | 1066 | bool perfmon_sampling_enabled; |
1067 | u8 pmu_mode; /*Added for GM20b, and ACR*/ | 1067 | u8 pmu_mode; /*Added for GM20b, and ACR*/ |
1068 | u32 falcon_id; | 1068 | u32 falcon_id; |
1069 | u32 aelpg_param[5]; | ||
1069 | }; | 1070 | }; |
1070 | 1071 | ||
1071 | int gk20a_init_pmu_support(struct gk20a *g); | 1072 | int gk20a_init_pmu_support(struct gk20a *g); |
@@ -1109,4 +1110,9 @@ void pmu_seq_init(struct pmu_gk20a *pmu); | |||
1109 | 1110 | ||
1110 | int gk20a_init_pmu(struct pmu_gk20a *pmu); | 1111 | int gk20a_init_pmu(struct pmu_gk20a *pmu); |
1111 | 1112 | ||
1113 | int gk20a_pmu_ap_send_command(struct gk20a *g, | ||
1114 | union pmu_ap_cmd *p_ap_cmd, bool b_block); | ||
1115 | int gk20a_aelpg_init(struct gk20a *g); | ||
1116 | int gk20a_aelpg_init_and_enable(struct gk20a *g, u8 ctrl_id); | ||
1117 | |||
1112 | #endif /*__PMU_GK20A_H__*/ | 1118 | #endif /*__PMU_GK20A_H__*/ |