aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-03-11 21:16:55 -0400
committerBen Skeggs <bskeggs@redhat.com>2012-03-13 03:15:05 -0400
commit6860dc8251eacd1672fa660b85bb59a45350aa70 (patch)
treeca9b5de022f9b9db305d8f1fbdcf239749715e55 /drivers/gpu/drm
parentc674844bab6df084ef1c93d65925af6e1bfb06a0 (diff)
drm/nouveau/dp: account for channel coding overhead in link training
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_dp.c3
1 files changed, 3 insertions, 0 deletions
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,
422 dp.auxch = auxch->drive; 422 dp.auxch = auxch->drive;
423 dp.dpcd = nv_encoder->dp.dpcd; 423 dp.dpcd = nv_encoder->dp.dpcd;
424 424
425 /* adjust required bandwidth for 8B/10B coding overhead */
426 datarate = (datarate / 8) * 10;
427
425 /* some sinks toggle hotplug in response to some of the actions 428 /* some sinks toggle hotplug in response to some of the actions
426 * we take during link training (DP_SET_POWER is one), we need 429 * we take during link training (DP_SET_POWER is one), we need
427 * to ignore them for the moment to avoid races. 430 * to ignore them for the moment to avoid races.