summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a
diff options
context:
space:
mode:
authorSrikar Srimath Tirumala <srikars@nvidia.com>2016-12-05 21:28:51 -0500
committerTejal Kudav <tkudav@nvidia.com>2016-12-20 19:17:33 -0500
commita918003694984b6fca9e6b6c07fd7cdf3503055e (patch)
tree81c2018fa8ac28898efb51634420508bdb678571 /drivers/gpu/nvgpu/gk20a
parent8ccfe2569c924c5f13f09baf54cedcc6d04fc18b (diff)
gpu: nvgpu: fix gpcclk for K4.4
Move the sw initialization of the gpcclk from gpu rail ungate path to the nvgpu probe path. This allows gpcclk to register itself successfully with CCF and makes it discoverable for other clients early on during boot. Bug 200233943 Bug 200259437 Change-Id: I88d94542092f92e68dc63c40444a70991d1f6129 Signed-off-by: Srikar Srimath Tirumala <srikars@nvidia.com> Reviewed-on: http://git-master/r/1265549 Reviewed-by: Tejal Kudav <tkudav@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c
index 1b4d2c07..978ad5aa 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c
@@ -18,12 +18,17 @@
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */ 19 */
20 20
21#include <linux/version.h>
21#include <linux/device.h> 22#include <linux/device.h>
22#include <linux/pm_runtime.h> 23#include <linux/pm_runtime.h>
23#include <linux/kernel.h> 24#include <linux/kernel.h>
24#include <linux/fb.h> 25#include <linux/fb.h>
25#include <linux/gk20a.h> 26#include <linux/gk20a.h>
27#include <mach/clk.h>
26#include <linux/clk/tegra.h> 28#include <linux/clk/tegra.h>
29#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0))
30#include <soc/tegra/tegra-dvfs.h>
31#endif
27 32
28#include "gk20a.h" 33#include "gk20a.h"
29#include "gr_gk20a.h" 34#include "gr_gk20a.h"