Skip to content

Commit

Permalink
drm/nouveau/dp: account for channel coding overhead in link training
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Mar 13, 2012
1 parent c674844 commit 6860dc8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/nouveau/nouveau_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6860dc8

Please sign in to comment.