gpu: nvgpu: ga10b: disable frequency scaling

To disable frequency scaling for gpc clocks,
set both devfreq_governor and qos_notify to NULL
in platform data.

Jira NVGPU-7059

Change-Id: I2142195d89758d21f2c6e070196645aca9bc0a24
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2573476
Tested-by: Mark Mendez <mmendez@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Seshendra Gadagottu
2021-08-09 20:31:57 -07:00
committed by mobile promotions
parent 78d7a7fdde
commit 342da8158a
2 changed files with 6 additions and 3 deletions

View File

@@ -290,9 +290,9 @@ struct gk20a_platform ga10b_tegra_platform = {
.prescale = gp10b_tegra_prescale, .prescale = gp10b_tegra_prescale,
.postscale = gp10b_tegra_postscale, .postscale = gp10b_tegra_postscale,
/* Enable ga10b frequency scaling - JIRA NVGPU-4683 */ /* Enable ga10b frequency scaling - JIRA NVGPU-4683 */
/* Disable frequency scaling */
.devfreq_governor = NULL, .devfreq_governor = NULL,
.qos_notify = NULL,
.qos_notify = gk20a_scale_qos_notify,
.dump_platform_dependencies = gk20a_tegra_debug_dump, .dump_platform_dependencies = gk20a_tegra_debug_dump,

View File

@@ -1,7 +1,7 @@
/* /*
* gk20a clock scaling profile * gk20a clock scaling profile
* *
* Copyright (c) 2013-2020, NVIDIA Corporation. All rights reserved. * Copyright (c) 2013-2021, NVIDIA Corporation. All rights reserved.
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License, * under the terms and conditions of the GNU General Public License,
@@ -473,6 +473,9 @@ void gk20a_scale_exit(struct device *dev)
struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g); struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
int err; int err;
if (!platform->devfreq_governor && !platform->qos_notify)
return;
#ifdef CONFIG_GK20A_PM_QOS #ifdef CONFIG_GK20A_PM_QOS
if (platform->qos_notify) { if (platform->qos_notify) {
pm_qos_remove_min_notifier(PM_QOS_GPU_FREQ_BOUNDS, pm_qos_remove_min_notifier(PM_QOS_GPU_FREQ_BOUNDS,