gpu: nvgpu: update static pg support for pre-si

- On pre-silicon platform, static pg will be
  done by nvgpu driver. For this, retain structs
  and HALs of static pg.
- Add the static pg support under pre-silicon code.
- On silicon, the static pg will be done by BPMP.
- Rename variables used in static pg for better
  readability and consistency

Bug 200768322
JIRA NVGPU-6433

Change-Id: Ib31c0f83b751c2b1563a36bd51af78a0bd12a117
Signed-off-by: Divya <dsinghatwari@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2594801
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Divya
2021-09-18 15:40:43 +00:00
committed by mobile promotions
parent 72c3bce602
commit 9266da636b
14 changed files with 126 additions and 105 deletions

View File

@@ -1056,19 +1056,19 @@ static const struct gops_top gm20b_ops_top = {
};
#ifdef CONFIG_NVGPU_STATIC_POWERGATE
static const struct gops_tpc gm20b_ops_tpc = {
.init_tpc_powergate = NULL,
.tpc_gr_pg = NULL,
static const struct gops_tpc_pg gm20b_ops_tpc_pg = {
.init_tpc_pg = NULL,
.tpc_pg = NULL,
};
static const struct gops_fbp_fs gm20b_ops_fbp_fs = {
.init_fbp_floorsweep = NULL,
.fbp_static_fs = NULL,
static const struct gops_fbp_pg gm20b_ops_fbp_pg = {
.init_fbp_pg = NULL,
.fbp_pg = NULL,
};
static const struct gops_gpc_pg gm20b_ops_gpc_pg = {
.init_gpc_powergate = NULL,
.gpc_static_pg = NULL,
.init_gpc_pg = NULL,
.gpc_pg = NULL,
};
#endif
@@ -1183,8 +1183,8 @@ int gm20b_init_hal(struct gk20a *g)
gops->fuse = gm20b_ops_fuse;
gops->top = gm20b_ops_top;
#ifdef CONFIG_NVGPU_STATIC_POWERGATE
gops->tpc = gm20b_ops_tpc;
gops->fbp_fs = gm20b_ops_fbp_fs;
gops->tpc_pg = gm20b_ops_tpc_pg;
gops->fbp_pg = gm20b_ops_fbp_pg;
gops->gpc_pg = gm20b_ops_gpc_pg;
#endif
gops->grmgr = gm20b_ops_grmgr;