diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2016-09-19 01:37:46 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:56:50 -0500 |
commit | 173bdefc92e2e4ef8f1e7e6ead7f86e746bee935 (patch) | |
tree | 69d9a43a453e988c54927ade2f5ce04457eaf312 /drivers/gpu/nvgpu/perf | |
parent | db529935a5f50e9e683d44d2eb01d0d76a915792 (diff) |
gpu: nvgpu: add support for voltage config
- changes to read voltage tables from VBIOS
& create boardobj then send to pmu
- Rail, Device & Policy objects are read from VBIOS & created boardobjs
- RPC support to load, Set & get voltage.
JIRA DNVGPU-122
Change-Id: I61621a514eef9c081a64c4ab066f01dfc28f8402
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/1222774
(cherry picked from commit 9da86d8c2c547623cf5f38c89afeb3f5bb1667ac)
Reviewed-on: http://git-master/r/1244656
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/perf')
-rw-r--r-- | drivers/gpu/nvgpu/perf/perf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/perf/perf.h b/drivers/gpu/nvgpu/perf/perf.h index 3ffaf4e1..c03bf2ae 100644 --- a/drivers/gpu/nvgpu/perf/perf.h +++ b/drivers/gpu/nvgpu/perf/perf.h | |||
@@ -17,6 +17,7 @@ | |||
17 | #include "vfe_var.h" | 17 | #include "vfe_var.h" |
18 | #include "pstate/pstate.h" | 18 | #include "pstate/pstate.h" |
19 | #include "gk20a/gk20a.h" | 19 | #include "gk20a/gk20a.h" |
20 | #include "volt/volt.h" | ||
20 | 21 | ||
21 | #define CTRL_PERF_VFE_VAR_TYPE_INVALID 0x00 | 22 | #define CTRL_PERF_VFE_VAR_TYPE_INVALID 0x00 |
22 | #define CTRL_PERF_VFE_VAR_TYPE_DERIVED 0x01 | 23 | #define CTRL_PERF_VFE_VAR_TYPE_DERIVED 0x01 |
@@ -55,6 +56,7 @@ struct perf_pmupstate { | |||
55 | struct vfe_vars vfe_varobjs; | 56 | struct vfe_vars vfe_varobjs; |
56 | struct vfe_equs vfe_equobjs; | 57 | struct vfe_equs vfe_equobjs; |
57 | struct pstates pstatesobjs; | 58 | struct pstates pstatesobjs; |
59 | struct obj_volt volt; | ||
58 | }; | 60 | }; |
59 | 61 | ||
60 | u32 perf_pmu_vfe_load(struct gk20a *g); | 62 | u32 perf_pmu_vfe_load(struct gk20a *g); |