diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2016-11-03 03:46:42 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:56:52 -0500 |
commit | 476f44a0a4bea5ae8a9a22d7d6f05d48ee3096fd (patch) | |
tree | 1f13a873c5d6924e949b91140d624fc87f1d56fc /drivers | |
parent | fd2b0a48605b8019906650e829f45b6260edaae7 (diff) |
gpu: nvgpu: pstate interface update
lpwr_entry_idx member is required
to map pstate with lwpr tables
JIRA DNVGPU-71
Change-Id: I4cad54c61dec7ad7e3c1a60178938d0eeaf65e24
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/1247303
(cherry-picked from commit b1f6e0036922d2104b3d08548219e72a38f2e231)
Reviewed-on: http://git-master/r/1267403
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/pstate/pstate.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/pstate/pstate.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/pstate/pstate.c b/drivers/gpu/nvgpu/pstate/pstate.c index cca6c445..2e08ef01 100644 --- a/drivers/gpu/nvgpu/pstate/pstate.c +++ b/drivers/gpu/nvgpu/pstate/pstate.c | |||
@@ -177,6 +177,7 @@ int pstate_construct_super(struct gk20a *g, struct boardobj **ppboardobj, | |||
177 | 177 | ||
178 | pstate->num = ptmppstate->num; | 178 | pstate->num = ptmppstate->num; |
179 | pstate->clklist = ptmppstate->clklist; | 179 | pstate->clklist = ptmppstate->clklist; |
180 | pstate->lpwr_entry_idx = ptmppstate->lpwr_entry_idx; | ||
180 | 181 | ||
181 | return 0; | 182 | return 0; |
182 | } | 183 | } |
@@ -236,6 +237,7 @@ static int parse_pstate_entry_5x(struct gk20a *g, | |||
236 | pstate->super.type = CTRL_PERF_PSTATE_TYPE_3X; | 237 | pstate->super.type = CTRL_PERF_PSTATE_TYPE_3X; |
237 | pstate->num = 0x0F - entry->pstate_level; | 238 | pstate->num = 0x0F - entry->pstate_level; |
238 | pstate->clklist.num_info = hdr->clock_entry_count; | 239 | pstate->clklist.num_info = hdr->clock_entry_count; |
240 | pstate->lpwr_entry_idx = entry->lpwr_entry_idx; | ||
239 | 241 | ||
240 | gk20a_dbg_info("pstate P%u", pstate->num); | 242 | gk20a_dbg_info("pstate P%u", pstate->num); |
241 | 243 | ||
diff --git a/drivers/gpu/nvgpu/pstate/pstate.h b/drivers/gpu/nvgpu/pstate/pstate.h index 4ae72aa9..b6519c20 100644 --- a/drivers/gpu/nvgpu/pstate/pstate.h +++ b/drivers/gpu/nvgpu/pstate/pstate.h | |||
@@ -41,6 +41,7 @@ struct clk_set_info_list { | |||
41 | struct pstate { | 41 | struct pstate { |
42 | struct boardobj super; | 42 | struct boardobj super; |
43 | u32 num; | 43 | u32 num; |
44 | u8 lpwr_entry_idx; | ||
44 | struct clk_set_info_list clklist; | 45 | struct clk_set_info_list clklist; |
45 | }; | 46 | }; |
46 | 47 | ||