mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: add platform support for Static PG
- Add support for taking static PG config values from DT nodes - Check those values against valid set of values for GPC, TPC and FBP - Store valid values in g->gpc_pg_mask, g->fbp_pg_mask and g->tpc_pg_mask[] array. Bug 200768322 JIRA NVGPU-6433 Change-Id: Ifc87e7d369034b1daa13866bc16a970602514bf6 Signed-off-by: Divya <dsinghatwari@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2594802 Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -436,7 +436,6 @@ static int nvgpu_init_fbpa_ecc(struct gk20a *g)
|
||||
static int nvgpu_init_power_gate(struct gk20a *g)
|
||||
{
|
||||
int err;
|
||||
u32 fuse_status = 0x0;
|
||||
|
||||
/*
|
||||
* Pre-Silicon - Static pg feature related settings
|
||||
@@ -478,12 +477,8 @@ static int nvgpu_init_power_gate(struct gk20a *g)
|
||||
* halt the GPU poweron.
|
||||
*/
|
||||
g->can_tpc_pg = false;
|
||||
if (g->ops.fuse.fuse_status_opt_tpc_gpc != NULL) {
|
||||
fuse_status = g->ops.fuse.fuse_status_opt_tpc_gpc(g, 0);
|
||||
}
|
||||
|
||||
if (g->ops.tpc_pg.init_tpc_pg != NULL) {
|
||||
err = g->ops.tpc_pg.init_tpc_pg(g, fuse_status);
|
||||
err = g->ops.tpc_pg.init_tpc_pg(g, &g->can_tpc_pg);
|
||||
if (err != 0) {
|
||||
return err;
|
||||
}
|
||||
@@ -518,7 +513,7 @@ static int nvgpu_init_power_gate_gr(struct gk20a *g)
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
#endif /* CONFIG_NVGPU_STATIC_POWERGATE */
|
||||
|
||||
static int nvgpu_init_boot_clk_or_clk_arb(struct gk20a *g)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user