summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/os/linux/platform_gk20a.h
diff options
context:
space:
mode:
authorPeng Liu <pengliu@nvidia.com>2019-03-13 13:30:54 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2019-05-10 09:43:12 -0400
commit27625718c4b2e400650885f8c892860c6c7434fd (patch)
treef82dfe6e8ce494b5330e39270f829ccd05f0447d /drivers/gpu/nvgpu/os/linux/platform_gk20a.h
parentaf95d14bb08850ed449eebae227faca800747108 (diff)
Revert "gpu: nvgpu: cache gpu clk rate"
This reverts commit e9a6d179a42e ("gpu: nvgpu: cache gpu clk rate") - Real clock rate doesn't always equal clock rate requested by caller - call of clk_set_rate() and update of cached_rate are not atomic - Real root cause for Bug 2051688 is in bpmp and gboost design Bug 2538692 Change-Id: I9248e0c69e2271ed2d0070587db59afa6f8160f2 Signed-off-by: Peng Liu <pengliu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2109708 (cherry picked from commit cc70f89bb4efd106b81c2da5ecd6cbeb69c990d8) Reviewed-on: https://git-master.nvidia.com/r/2113647 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Aaron Tian <atian@nvidia.com> Tested-by: Aaron Tian <atian@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/platform_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/os/linux/platform_gk20a.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/platform_gk20a.h b/drivers/gpu/nvgpu/os/linux/platform_gk20a.h
index a19d0a7c..1331c941 100644
--- a/drivers/gpu/nvgpu/os/linux/platform_gk20a.h
+++ b/drivers/gpu/nvgpu/os/linux/platform_gk20a.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * GK20A Platform (SoC) Interface 2 * GK20A Platform (SoC) Interface
3 * 3 *
4 * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -271,9 +271,6 @@ struct gk20a_platform {
271 /* stream id to use */ 271 /* stream id to use */
272 u32 ltc_streamid; 272 u32 ltc_streamid;
273 273
274 /* scaling rate */
275 unsigned long cached_rate;
276
277 /* synchronized access to platform->clk_get_freqs */ 274 /* synchronized access to platform->clk_get_freqs */
278 struct nvgpu_mutex clk_get_freq_lock; 275 struct nvgpu_mutex clk_get_freq_lock;
279}; 276};