From 4f41ce769667a22027a343c49479cf3bca60785e Mon Sep 17 00:00:00 2001 From: Tejal Kudav Date: Sat, 15 Jan 2022 08:22:57 +0000 Subject: [PATCH] gpu: nvgpu: Disable frequency scaling for AV+L NVGPU does not support frequency scaling on hypervisor based embedded environments.Disable frequency scaling on AV+L using the nvgpu_is_hypervisor_mode(). JIRA NVGPU-7283 Change-Id: If8fbcc0c5e2f11b9e8895825bb3b3022e7bd3005 Signed-off-by: Tejal Kudav Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2654969 Reviewed-by: Deepak Nibade Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: Kasinadha Dendukuri Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/driver_common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/nvgpu/os/linux/driver_common.c b/drivers/gpu/nvgpu/os/linux/driver_common.c index 83e672270..43f67a097 100644 --- a/drivers/gpu/nvgpu/os/linux/driver_common.c +++ b/drivers/gpu/nvgpu/os/linux/driver_common.c @@ -215,6 +215,9 @@ static void nvgpu_init_pm_vars(struct gk20a *g) if (nvgpu_is_hypervisor_mode(g)) { nvgpu_set_enabled(g, NVGPU_CAN_RAILGATE, false); platform->can_railgate_init = false; + /* Disable frequency scaling for hypervisor platforms */ + platform->devfreq_governor = NULL; + platform->qos_notify = NULL; } else { nvgpu_set_enabled(g, NVGPU_CAN_RAILGATE, nvgpu_platform_is_simulation(g) ? true : platform->can_railgate_init);