]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: tegra: dc: Update next EMC freq computation
authorAlex Waterman <alexw@nvidia.com>
Mon, 17 Nov 2014 19:05:29 +0000 (11:05 -0800)
committerJon Mayo <jmayo@nvidia.com>
Tue, 18 Nov 2014 18:30:18 +0000 (10:30 -0800)
commit6933cd626ed97bab687e56e199c608ddb60ec992
tree3272071d78c1560d24ee36ae58ef58ee96f341d0
parentfcf4cfbe84b1ef13c8c28d40be18d69622e27e23
video: tegra: dc: Update next EMC freq computation

The display algorithm for determining the minimum necessary BW is to
start at a low EMC frequency and check. If the frequency is too slow
then the display adds 1 to that frequency and rounds. That was expected
to then round to the next highest frequency. However, actually, there
is a small window in which the clock frequency is rounded down.

This patch simply adds 1000000 Hz instead to avoid that small window
where the frequency is rounded down.

Bug 1576403

Change-Id: I32902a2b82bba6b53465f4f4d4dbbd9ea01b383d
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/604303
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Tested-by: Jon Mayo <jmayo@nvidia.com>
drivers/video/tegra/dc/bandwidth.c