mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: gp10b: update prod setiings
Add/update following prod settings: blcg ce slcg ce2 Change-Id: I10a62d980479ad23efd7033d29e269c4aac08834 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/1030986 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Deepak Nibade
parent
eada66b2a9
commit
57a75c3ba6
@@ -163,6 +163,11 @@ static const struct gating_desc gp10b_blcg_bus[] = {
|
||||
{.addr = 0x00001c00, .prod = 0x00000042, .disable = 0x00000000},
|
||||
};
|
||||
|
||||
/* blcg ce */
|
||||
static const struct gating_desc gp10b_blcg_ce[] = {
|
||||
{.addr = 0x00104200, .prod = 0x00008242, .disable = 0x00000000},
|
||||
};
|
||||
|
||||
/* blcg ctxsw prog */
|
||||
static const struct gating_desc gp10b_blcg_ctxsw_prog[] = {
|
||||
};
|
||||
@@ -483,6 +488,21 @@ void gp10b_blcg_bus_load_gating_prod(struct gk20a *g,
|
||||
}
|
||||
}
|
||||
|
||||
void gp10b_blcg_ce_load_gating_prod(struct gk20a *g,
|
||||
bool prod)
|
||||
{
|
||||
u32 i;
|
||||
u32 size = sizeof(gp10b_blcg_ce) / sizeof(struct gating_desc);
|
||||
for (i = 0; i < size; i++) {
|
||||
if (prod)
|
||||
gk20a_writel(g, gp10b_blcg_ce[i].addr,
|
||||
gp10b_blcg_ce[i].prod);
|
||||
else
|
||||
gk20a_writel(g, gp10b_blcg_ce[i].addr,
|
||||
gp10b_blcg_ce[i].disable);
|
||||
}
|
||||
}
|
||||
|
||||
void gp10b_blcg_ctxsw_firmware_load_gating_prod(struct gk20a *g,
|
||||
bool prod)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, NVIDIA Corporation. All rights reserved.
|
||||
* Copyright (c) 2015-2016, NVIDIA Corporation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -19,6 +19,9 @@
|
||||
void gp10b_slcg_bus_load_gating_prod(struct gk20a *g,
|
||||
bool prod);
|
||||
|
||||
void gp10b_slcg_ce2_load_gating_prod(struct gk20a *g,
|
||||
bool prod);
|
||||
|
||||
void gp10b_slcg_chiplet_load_gating_prod(struct gk20a *g,
|
||||
bool prod);
|
||||
|
||||
@@ -58,6 +61,9 @@ void gp10b_slcg_xbar_load_gating_prod(struct gk20a *g,
|
||||
void gp10b_blcg_bus_load_gating_prod(struct gk20a *g,
|
||||
bool prod);
|
||||
|
||||
void gp10b_blcg_ce_load_gating_prod(struct gk20a *g,
|
||||
bool prod);
|
||||
|
||||
void gp10b_blcg_ctxsw_firmware_load_gating_prod(struct gk20a *g,
|
||||
bool prod);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* GP10B Tegra HAL interface
|
||||
*
|
||||
* Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -47,6 +47,8 @@ static struct gpu_ops gp10b_ops = {
|
||||
.clock_gating = {
|
||||
.slcg_bus_load_gating_prod =
|
||||
gp10b_slcg_bus_load_gating_prod,
|
||||
.slcg_ce2_load_gating_prod =
|
||||
gp10b_slcg_ce2_load_gating_prod,
|
||||
.slcg_chiplet_load_gating_prod =
|
||||
gp10b_slcg_chiplet_load_gating_prod,
|
||||
.slcg_ctxsw_firmware_load_gating_prod =
|
||||
@@ -71,6 +73,8 @@ static struct gpu_ops gp10b_ops = {
|
||||
gp10b_slcg_xbar_load_gating_prod,
|
||||
.blcg_bus_load_gating_prod =
|
||||
gp10b_blcg_bus_load_gating_prod,
|
||||
.blcg_ce_load_gating_prod =
|
||||
gp10b_blcg_ce_load_gating_prod,
|
||||
.blcg_ctxsw_firmware_load_gating_prod =
|
||||
gp10b_blcg_ctxsw_firmware_load_gating_prod,
|
||||
.blcg_fb_load_gating_prod =
|
||||
|
||||
Reference in New Issue
Block a user