diff --git a/drivers/gpu/nvgpu/common/pmu/perf/perf_pstate.c b/drivers/gpu/nvgpu/common/pmu/perf/perf_pstate.c index 666b50bcb..c90e8e2cc 100644 --- a/drivers/gpu/nvgpu/common/pmu/perf/perf_pstate.c +++ b/drivers/gpu/nvgpu/common/pmu/perf/perf_pstate.c @@ -339,6 +339,8 @@ static int perf_pstate_pmudatainit(struct gk20a *g, } pset->numClkDomains = pprogs->num_clk_domains; + pset->boot_pstate_idx = + nvgpu_get_pstate_entry_idx(g, CTRL_PERF_PSTATE_P0); done: return status; diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmu/pmuif/perfpstate.h b/drivers/gpu/nvgpu/include/nvgpu/pmu/pmuif/perfpstate.h index a0cef029a..311921863 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/pmu/pmuif/perfpstate.h +++ b/drivers/gpu/nvgpu/include/nvgpu/pmu/pmuif/perfpstate.h @@ -34,6 +34,7 @@ struct ctrl_perf_pstate_clk_entry; struct nv_pmu_perf_pstate_boardobjgrp_set_header { struct nv_pmu_boardobjgrp_e32 super; u8 numClkDomains; + u8 boot_pstate_idx; }; struct nv_pmu_perf_pstate {