nvgpu: gpu: Add boot pstate index in Pstate boardobj

In the change_seq of latest ucode, the boot pstate
index was taken from pstate board_objs instead of the
value from change_input. This forces the need of
introducing boot index in pstate board_obj structure.
The index is the performance table entry index of
P0 pstate.

The ucode change is described in P4CL #27304645

NVGPU-4081

Change-Id: Id3f4a1da7015cd6b7efe555529f1fa13c9f3b391
Signed-off-by: rmylavarapu <rmylavarapu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2202363
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
rmylavarapu
2019-09-20 17:13:03 +05:30
committed by Alex Waterman
parent 65a7896987
commit bdee5d7a64
2 changed files with 3 additions and 0 deletions

View File

@@ -339,6 +339,8 @@ static int perf_pstate_pmudatainit(struct gk20a *g,
} }
pset->numClkDomains = pprogs->num_clk_domains; pset->numClkDomains = pprogs->num_clk_domains;
pset->boot_pstate_idx =
nvgpu_get_pstate_entry_idx(g, CTRL_PERF_PSTATE_P0);
done: done:
return status; return status;

View File

@@ -34,6 +34,7 @@ struct ctrl_perf_pstate_clk_entry;
struct nv_pmu_perf_pstate_boardobjgrp_set_header { struct nv_pmu_perf_pstate_boardobjgrp_set_header {
struct nv_pmu_boardobjgrp_e32 super; struct nv_pmu_boardobjgrp_e32 super;
u8 numClkDomains; u8 numClkDomains;
u8 boot_pstate_idx;
}; };
struct nv_pmu_perf_pstate { struct nv_pmu_perf_pstate {