summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/driver_common.c
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2018-01-23 16:12:04 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-31 17:21:56 -0500
commit9afb084055e77622d1e3faa6099c340d00f94968 (patch)
treedc16c443755c00e6fead2c63a891452ab3d1fc04 /drivers/gpu/nvgpu/common/linux/driver_common.c
parent791ce6bd5480a8393c12be55e8afa459cb4dd1ff (diff)
gpu: nvgpu: enable devfreq after finalize poweron
Enabling gpu scaling driver after finalize poweron, will make gpu booting happen at initially set frequency(1GHz). Also doing platform specific init scale after enabling scaling driver. Bug 2049965 Bug 2039013 Bug 200377508 Change-Id: I633f8f5a25d9de18cbb3a022913b8b725ccd87e5 Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1644703 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/driver_common.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/driver_common.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/driver_common.c b/drivers/gpu/nvgpu/common/linux/driver_common.c
index b90574e0..948bb69f 100644
--- a/drivers/gpu/nvgpu/common/linux/driver_common.c
+++ b/drivers/gpu/nvgpu/common/linux/driver_common.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -27,7 +27,6 @@
27#include <nvgpu/debug.h> 27#include <nvgpu/debug.h>
28#include <nvgpu/sizes.h> 28#include <nvgpu/sizes.h>
29 29
30#include "scale.h"
31#include "gk20a/gk20a.h" 30#include "gk20a/gk20a.h"
32#include "platform_gk20a.h" 31#include "platform_gk20a.h"
33#include "module.h" 32#include "module.h"
@@ -226,11 +225,6 @@ int nvgpu_probe(struct gk20a *g,
226 if (err) 225 if (err)
227 return err; 226 return err;
228 227
229
230 /* Initialise scaling */
231 if (IS_ENABLED(CONFIG_GK20A_DEVFREQ))
232 gk20a_scale_init(dev);
233
234 if (platform->late_probe) { 228 if (platform->late_probe) {
235 err = platform->late_probe(dev); 229 err = platform->late_probe(dev);
236 if (err) { 230 if (err) {