mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
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:
committed by
mobile promotions
parent
78d7a7fdde
commit
342da8158a
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* 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
|
||||
* 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);
|
||||
int err;
|
||||
|
||||
if (!platform->devfreq_governor && !platform->qos_notify)
|
||||
return;
|
||||
|
||||
#ifdef CONFIG_GK20A_PM_QOS
|
||||
if (platform->qos_notify) {
|
||||
pm_qos_remove_min_notifier(PM_QOS_GPU_FREQ_BOUNDS,
|
||||
|
||||
Reference in New Issue
Block a user