From: Ben Skeggs Date: Mon, 12 Mar 2012 01:16:55 +0000 (+1000) Subject: drm/nouveau/dp: account for channel coding overhead in link training X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6860dc8251eacd1672fa660b85bb59a45350aa70;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/nouveau/dp: account for channel coding overhead in link training Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_dp.c b/drivers/gpu/drm/nouveau/nouveau_dp.c index b3644651d89b..302b2f7d0678 100644 --- a/drivers/gpu/drm/nouveau/nouveau_dp.c +++ b/drivers/gpu/drm/nouveau/nouveau_dp.c @@ -422,6 +422,9 @@ nouveau_dp_link_train(struct drm_encoder *encoder, u32 datarate, dp.auxch = auxch->drive; dp.dpcd = nv_encoder->dp.dpcd; + /* adjust required bandwidth for 8B/10B coding overhead */ + datarate = (datarate / 8) * 10; + /* some sinks toggle hotplug in response to some of the actions * we take during link training (DP_SET_POWER is one), we need * to ignore them for the moment to avoid races.