diff options
author | Seshendra Gadagottu <sgadagottu@nvidia.com> | 2015-03-24 16:24:11 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 22:01:57 -0400 |
commit | d788d86e01b44262b10f7b4d96e0cc8aaf478f74 (patch) | |
tree | a75e9986c0ed1d5d2f33d446507881c63a0d04e9 /drivers/gpu/nvgpu | |
parent | 42d17018b442850f246696364d79a2ae11350a12 (diff) |
tegra: gpu: disable touch boost for gpu
Gpu boosting with input events is causing more gpu power consumption
than required. To avoid this, touch boot for gpu is disabled by not
registering gpu device for cfboost frame work. Current rail gate
entry/exit latencies are fast enough to give smooth user experience.
Bug 200087243
Change-Id: I18673d9c95a44ce9bee87e860b4edb29212dc766
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/721989
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 13 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 3 |
2 files changed, 0 insertions, 16 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 27fce8e0..a6f56763 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include <linux/kthread.h> | 41 | #include <linux/kthread.h> |
42 | 42 | ||
43 | #include <linux/sched.h> | 43 | #include <linux/sched.h> |
44 | #include <linux/input-cfboost.h> | ||
45 | 44 | ||
46 | #ifdef CONFIG_TEGRA_GK20A | 45 | #ifdef CONFIG_TEGRA_GK20A |
47 | #include <linux/nvhost.h> | 46 | #include <linux/nvhost.h> |
@@ -884,13 +883,6 @@ static int gk20a_pm_finalize_poweron(struct device *dev) | |||
884 | enable_irq(g->irq_stall); | 883 | enable_irq(g->irq_stall); |
885 | enable_irq(g->irq_nonstall); | 884 | enable_irq(g->irq_nonstall); |
886 | 885 | ||
887 | #ifdef CONFIG_INPUT_CFBOOST | ||
888 | if (!g->boost_added) { | ||
889 | gk20a_dbg_info("add touch boost"); | ||
890 | cfb_add_device(dev); | ||
891 | g->boost_added = true; | ||
892 | } | ||
893 | #endif | ||
894 | done: | 886 | done: |
895 | return err; | 887 | return err; |
896 | } | 888 | } |
@@ -1527,11 +1519,6 @@ static int __exit gk20a_remove(struct platform_device *dev) | |||
1527 | if (platform->has_cde) | 1519 | if (platform->has_cde) |
1528 | gk20a_cde_destroy(g); | 1520 | gk20a_cde_destroy(g); |
1529 | 1521 | ||
1530 | #ifdef CONFIG_INPUT_CFBOOST | ||
1531 | if (g->boost_added) | ||
1532 | cfb_remove_device(&dev->dev); | ||
1533 | #endif | ||
1534 | |||
1535 | if (IS_ENABLED(CONFIG_GK20A_DEVFREQ)) | 1522 | if (IS_ENABLED(CONFIG_GK20A_DEVFREQ)) |
1536 | gk20a_scale_exit(dev); | 1523 | gk20a_scale_exit(dev); |
1537 | 1524 | ||
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 0436c466..015c8274 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -412,9 +412,6 @@ struct gk20a { | |||
412 | void __iomem *bar1_saved; | 412 | void __iomem *bar1_saved; |
413 | 413 | ||
414 | bool power_on; | 414 | bool power_on; |
415 | #ifdef CONFIG_INPUT_CFBOOST | ||
416 | bool boost_added; | ||
417 | #endif | ||
418 | 415 | ||
419 | struct rw_semaphore busy_lock; | 416 | struct rw_semaphore busy_lock; |
420 | 417 | ||