diff options
author | Xin Xie <xxie@nvidia.com> | 2011-07-05 19:20:06 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:47:27 -0800 |
commit | 22dc8ddddd5bda158e5648c780e5c31d9fcdfc44 (patch) | |
tree | 806a9d4a5cc7571db48bd72d26e8da9bc2aca6d8 /drivers/video/tegra/dc | |
parent | 3118e93179a38e8683d62f6515306084f34964ce (diff) |
video: tegra: dc: print bandwidth warning once
In some stress tests, calculated EMC bandwidth is more than allowed EMC
bandwidth and print out too many warning. Change to print the warning only
once.
BUG 847731
Original-Change-Id: Ia369d4295231e1db39532b0fc6ae8a29f9dbea65
Reviewed-on: http://git-master/r/39740
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: Re9f0b2b50f5bd2afc25564ad97396453e68f9e55
Diffstat (limited to 'drivers/video/tegra/dc')
-rw-r--r-- | drivers/video/tegra/dc/dc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c index 25814a5fa4a8..85297d46b567 100644 --- a/drivers/video/tegra/dc/dc.c +++ b/drivers/video/tegra/dc/dc.c @@ -697,7 +697,10 @@ static unsigned long tegra_dc_get_emc_rate(struct tegra_dc_win *wins[], int n) * either the above calculation is wrong, or board specified BW is * wrong. */ - WARN_ON(ret > tegra_dc_get_default_emc_clk_rate(dc)); + WARN_ONCE(ret > tegra_dc_get_default_emc_clk_rate(dc), + "Calculated EMC bandwidth is %luHz, " + "maximum allowed EMC bandwidth is %luHz\n", + ret, tegra_dc_get_default_emc_clk_rate(dc)); return ret; } |