gpu:nvgpu: Restructure P-state unit

Description:
Present p-state unit handle both pstate boardobj and
initializing all the units. As part of restructuring,
the pstate unit is separated into two units:
1) Perf_pstate: This unit will handle pstate boardobjs.
2) Pmu_pstate: This unit will initialize all the units
which supoort performance states.

Changes:
1) Created pmu_pstate unit.
2) Pstate boardobjs are moved under perf_pstate which
is under perf unit.

NVGPU-1958

Change-Id: I2c428adfe6de4992c9eeda0d4356d30290f6e8a4
Signed-off-by: rmylavarapu <rmylavarapu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2096339
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
rmylavarapu
2019-04-23 11:43:49 +05:30
committed by mobile promotions
parent a91535e3a3
commit 6e67eec8d5
22 changed files with 606 additions and 398 deletions

View File

@@ -49,15 +49,16 @@
#include <nvgpu/engines.h>
#include <nvgpu/channel.h>
#include <nvgpu/gr/gr.h>
#include <nvgpu/pmu/pmu_pstate.h>
#include "common/gr/gr_priv.h"
#include "platform_gk20a.h"
#include "sysfs.h"
#include "vgpu/vgpu_linux.h"
#include "scale.h"
#include "pci.h"
#include "module.h"
#include "module_usermode.h"
#include "intr.h"
#include "ioctl.h"
@@ -751,7 +752,7 @@ void gk20a_remove_support(struct gk20a *g)
g->pmu.remove_support(&g->pmu);
if (nvgpu_is_enabled(g, NVGPU_PMU_PSTATE)) {
gk20a_deinit_pstate_support(g);
nvgpu_pmu_pstate_deinit(g);
}
if (g->sec2.remove_support != NULL) {