summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/driver_common.c
diff options
context:
space:
mode:
authorDeepak Goyal <dgoyal@nvidia.com>2018-05-07 02:12:33 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-05-09 07:40:28 -0400
commitf9e55fbaf66c024125a19e1a773a1a4f0e9648f4 (patch)
tree9df8d81c214e5208b5a9b3e4ddc45e345a2128d0 /drivers/gpu/nvgpu/common/linux/driver_common.c
parenta1a8ceca0c5cdc8484e4da66019c066be716f9c8 (diff)
gpu: nvgpu: Add LDIV slowdown factor in INIT cmd.
PMU ucode is updated to include LDIV slowdown factor in gr_init_param command. - Defined a new version gr_init_param_v2. - Updated the PMU FW version code. - Set the LDIV slowdown factor to 0x1e by default. - Added sysfs entry to program ldiv_slowdown factor at runtime. Bug 200391931 Change-Id: Ic66049588c3b20e934faff3f29283f66c30303e4 Signed-off-by: Deepak Goyal <dgoyal@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1674208 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/driver_common.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/driver_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/driver_common.c b/drivers/gpu/nvgpu/common/linux/driver_common.c
index c3663117..53789423 100644
--- a/drivers/gpu/nvgpu/common/linux/driver_common.c
+++ b/drivers/gpu/nvgpu/common/linux/driver_common.c
@@ -159,6 +159,7 @@ static void nvgpu_init_pm_vars(struct gk20a *g)
159 g->support_pmu = support_gk20a_pmu(dev_from_gk20a(g)); 159 g->support_pmu = support_gk20a_pmu(dev_from_gk20a(g));
160 g->can_railgate = platform->can_railgate_init; 160 g->can_railgate = platform->can_railgate_init;
161 g->railgate_delay = platform->railgate_delay_init; 161 g->railgate_delay = platform->railgate_delay_init;
162 g->ldiv_slowdown_factor = platform->ldiv_slowdown_factor_init;
162 __nvgpu_set_enabled(g, NVGPU_PMU_PERFMON, platform->enable_perfmon); 163 __nvgpu_set_enabled(g, NVGPU_PMU_PERFMON, platform->enable_perfmon);
163 164
164 /* set default values to aelpg parameters */ 165 /* set default values to aelpg parameters */