tegra: dc: change EMC efficiency for bandwidth

BUG 835372

Change-Id: I571ca8785893df339175306f548daa31158721fd
Reviewed-on: http://git-master/r/39277
Reviewed-by: Xin Xie <xxie@nvidia.com>
Tested-by: Xin Xie <xxie@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
This commit is contained in:
Xin Xie 2011-06-30 16:06:57 -07:00 committed by Chris Trotman
parent c055ab5767
commit a8f136a3fe

View File

@ -529,11 +529,6 @@ static unsigned int tegra_dc_find_max_bandwidth(struct tegra_dc_win *wins[],
/* 8 bits per byte (1 << 3) */
#define BIT_TO_BYTE_SHIFT 3
/*
* Assuming 50% (X >> 1) efficiency: i.e. if we calculate we need 70MBps, we
* will request 140MBps from EMC.
*/
#define MEM_EFFICIENCY_SHIFT 1
static unsigned long tegra_dc_get_emc_rate(struct tegra_dc_win *wins[], int n)
{
int i;
@ -569,7 +564,9 @@ static unsigned long tegra_dc_get_emc_rate(struct tegra_dc_win *wins[], int n)
(WIN_IS_TILED(w) ? TILED_WINDOWS_BW_MULTIPLIER : 1);
}
max = tegra_dc_find_max_bandwidth(wins, bw, n) << MEM_EFFICIENCY_SHIFT;
max = tegra_dc_find_max_bandwidth(wins, bw, n);
/* multiply bandwidth by 2.5 assuming 40% memory efficiency */
max = (max << 1) + (max >> 1);
ret = EMC_BW_TO_FREQ(max);
@ -583,7 +580,6 @@ static unsigned long tegra_dc_get_emc_rate(struct tegra_dc_win *wins[], int n)
return ret;
}
#undef BIT_TO_BYTE_SHIFT
#undef MEM_EFFICIENCY_SHIFT
static void tegra_dc_change_emc(struct tegra_dc *dc)
{