summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/t30
diff options
context:
space:
mode:
authorDonghan Ryu <dryu@nvidia.com>2011-12-08 11:24:24 +0900
committerVarun Wadekar <vwadekar@nvidia.com>2011-12-15 13:56:13 +0530
commit0dc01f93873b8d3e6b4b5ca175035fe61121ddde (patch)
treebd96dc2397f3770a3cbb376b9729a6730dced6a5 /drivers/video/tegra/host/t30
parentbc9ae65ae8705f832af06708f911b776b2236a6f (diff)
video: tegra: host: max emc rate when 3d is on
Currently, EMC rate is mostly controlled by CPU frequency assuming that higher CPU freqeuncy requires more mem B/W. However, some of the 3d apps makes GPU very busy while CPU is mostly idle. This patch changes HOST_EMC_FLOOR to UINT_MAX allowing GPU to utilize full mem B/W when it is active. This may be re-visited when 3d scaling is enabled since we might be able to scale EMC rate dynamically based on 3d rate. Bug 911223 Change-Id: I8eb7b3991abe3bd664441bfc1f43075984dafcaa Signed-off-by: Donghan Ryu <dryu@nvidia.com> Reviewed-on: http://git-master/r/68650 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/host/t30')
-rw-r--r--drivers/video/tegra/host/t30/channel_t30.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/tegra/host/t30/channel_t30.c b/drivers/video/tegra/host/t30/channel_t30.c
index fbd0227ad513..0bd7e5246635 100644
--- a/drivers/video/tegra/host/t30/channel_t30.c
+++ b/drivers/video/tegra/host/t30/channel_t30.c
@@ -43,7 +43,6 @@
#define NVMODMUTEX_DSI (9)
#define NV_FIFO_READ_TIMEOUT 200000
-#define HOST_EMC_FLOOR 300000000
#ifndef TEGRA_POWERGATE_3D1
#define TEGRA_POWERGATE_3D1 -1
#endif
@@ -78,7 +77,7 @@ const struct nvhost_channeldesc nvhost_t30_channelmap[] = {
.suspend = nvhost_scale3d_suspend,
.clocks = {{"gr3d", UINT_MAX},
{"gr3d2", UINT_MAX},
- {"emc", HOST_EMC_FLOOR} },
+ {"emc", UINT_MAX} },
.powergate_ids = {TEGRA_POWERGATE_3D,
TEGRA_POWERGATE_3D1},
NVHOST_DEFAULT_CLOCKGATE_DELAY,
@@ -96,7 +95,7 @@ const struct nvhost_channeldesc nvhost_t30_channelmap[] = {
.module = {
.clocks = {{"gr2d", 0},
{"epp", 0},
- {"emc", HOST_EMC_FLOOR} },
+ {"emc", 300000000} },
NVHOST_MODULE_NO_POWERGATE_IDS,
.clockgate_delay = 0,
},