mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: ga10b: enable frequency scaling
Enable GPU frequency scaling for t234 silicon. Bug 3315239 Change-Id: I0b581283d4c9558fb9f7c3b553ea8bee71ba22af Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2617544 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
fc27aab523
commit
616a885079
@@ -191,6 +191,12 @@ static void nvgpu_init_pm_vars(struct gk20a *g)
|
|||||||
g->elcg_enabled =
|
g->elcg_enabled =
|
||||||
nvgpu_platform_is_silicon(g) ? platform->enable_elcg : false;
|
nvgpu_platform_is_silicon(g) ? platform->enable_elcg : false;
|
||||||
|
|
||||||
|
/* disable devfreq for pre-silicon */
|
||||||
|
if (!nvgpu_platform_is_silicon(g)) {
|
||||||
|
platform->devfreq_governor = NULL;
|
||||||
|
platform->qos_notify = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
nvgpu_set_enabled(g, NVGPU_GPU_CAN_ELCG,
|
nvgpu_set_enabled(g, NVGPU_GPU_CAN_ELCG,
|
||||||
nvgpu_platform_is_silicon(g) ? platform->can_elcg : false);
|
nvgpu_platform_is_silicon(g) ? platform->can_elcg : false);
|
||||||
nvgpu_set_enabled(g, NVGPU_GPU_CAN_SLCG,
|
nvgpu_set_enabled(g, NVGPU_GPU_CAN_SLCG,
|
||||||
|
|||||||
@@ -676,10 +676,9 @@ struct gk20a_platform ga10b_tegra_platform = {
|
|||||||
.initscale = ga10b_tegra_scale_init,
|
.initscale = ga10b_tegra_scale_init,
|
||||||
.prescale = gp10b_tegra_prescale,
|
.prescale = gp10b_tegra_prescale,
|
||||||
.postscale = gp10b_tegra_postscale,
|
.postscale = gp10b_tegra_postscale,
|
||||||
/* Enable ga10b frequency scaling - JIRA NVGPU-4683 */
|
.devfreq_governor = "nvhost_podgov",
|
||||||
/* Disable frequency scaling */
|
|
||||||
.devfreq_governor = NULL,
|
.qos_notify = gk20a_scale_qos_notify,
|
||||||
.qos_notify = NULL,
|
|
||||||
|
|
||||||
.dump_platform_dependencies = gk20a_tegra_debug_dump,
|
.dump_platform_dependencies = gk20a_tegra_debug_dump,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user