diff options
author | Bharat Nihalani <bnihalani@nvidia.com> | 2012-06-26 18:06:42 +0530 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-07-12 08:35:36 -0700 |
commit | 8cf431fbd55a6a9fb0d3c89eafd15ddfab687beb (patch) | |
tree | 6f9e00055ed42f83e429c09b6e2388bdb87bb252 /drivers | |
parent | 328ca1a833b594b574b9f4f82a25ba8613bad3e5 (diff) |
video: tegra: dc: consider bandwidth efficiency for tegra2
This is similar to commit a62be5b5595ad86411ced81bceeb3d6a693426d2
pushed for rel-14 branch.
Bug 1004341
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/111227
(cherry-picked from fbfce3106da8dad18948103c812bdd9d45ffdd06)
Change-Id: Ib459094fd6499b3cc63bc534bf36e57dc98ce62b
Reviewed-on: http://git-master/r/114584
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/tegra/dc/bandwidth.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/bandwidth.c b/drivers/video/tegra/dc/bandwidth.c index c7e5072286f4..0b307f4bc4a2 100644 --- a/drivers/video/tegra/dc/bandwidth.c +++ b/drivers/video/tegra/dc/bandwidth.c @@ -181,6 +181,13 @@ static unsigned long tegra_dc_calc_win_bandwidth(struct tegra_dc *dc, dfixed_trunc(w->w) / w->out_w * (WIN_IS_TILED(w) ? tiled_windows_bw_multiplier : 1); +#ifdef CONFIG_ARCH_TEGRA_2x_SOC + /* + * Assuming 60% efficiency: i.e. if we calculate we need 70MBps, we + * will request 117MBps from EMC. + */ + ret = ret + (17 * ret / 25); +#endif return ret; } |