Commit 5c79507b authored by Adam Jackson's avatar Adam Jackson Committed by Ben Skeggs
Browse files

drm/nouveau: Fix bandwidth calculation for DisplayPort

Ported from the equivalent fix in drm-intel-next:

http://cgit.freedesktop.org/~keithp/linux/commit/?h=drm-intel-next&id=cd9dde44f47501394b9f0715b6a36a92aa74c0d0

Signed-off-by: default avatarAdam Jackson <ajax@redhat.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 1e482f75
...@@ -710,7 +710,7 @@ nouveau_connector_mode_valid(struct drm_connector *connector, ...@@ -710,7 +710,7 @@ nouveau_connector_mode_valid(struct drm_connector *connector,
case OUTPUT_DP: case OUTPUT_DP:
max_clock = nv_encoder->dp.link_nr; max_clock = nv_encoder->dp.link_nr;
max_clock *= nv_encoder->dp.link_bw; max_clock *= nv_encoder->dp.link_bw;
clock = clock * nouveau_connector_bpp(connector) / 8; clock = clock * nouveau_connector_bpp(connector) / 10;
break; break;
default: default:
BUG_ON(1); BUG_ON(1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment