diff options
author | Seshendra Gadagottu <sgadagottu@nvidia.com> | 2014-10-13 22:38:19 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:43 -0400 |
commit | c414d4128d9766b4934023028669a83389c406fc (patch) | |
tree | 7612cfcc552dc676acc9629f453457ff6d95b42d /drivers | |
parent | 17ce09bb0537bd21b8b64ea9f963fc6b420563f9 (diff) |
gpu: nvgpu: gm20b: fix issue with rail gating ref count
gpu rail gating reference count is going wrong because
"can_railgate" is set to false during probe(). For rail-gating
to work no gpu re-work is needed and by default rail-gating
is enabled with INT_MAX delay.
Bug 200044987
Change-Id: I9367275cd18c34cb19a51193353585789ba44c03
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/556568
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c index 59c83686..5c80294a 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | |||
@@ -450,9 +450,8 @@ static int gk20a_tegra_probe(struct platform_device *dev) | |||
450 | if (tegra_get_chipid() == TEGRA_CHIPID_TEGRA21) { | 450 | if (tegra_get_chipid() == TEGRA_CHIPID_TEGRA21) { |
451 | np = of_find_node_by_path("/gpu-dvfs-rework"); | 451 | np = of_find_node_by_path("/gpu-dvfs-rework"); |
452 | if (!(np && of_device_is_available(np))) { | 452 | if (!(np && of_device_is_available(np))) { |
453 | platform->can_railgate = false; | ||
454 | platform->devfreq_governor = ""; | 453 | platform->devfreq_governor = ""; |
455 | dev_warn(&dev->dev, "board does not support scaling or powergating"); | 454 | dev_warn(&dev->dev, "board does not support scaling"); |
456 | } | 455 | } |
457 | } | 456 | } |
458 | 457 | ||