Commit 856ed888 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau/dp: link rate scripts are selected with a comparison table



Not hardcoded as originally thought.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 1262a206
...@@ -314,11 +314,10 @@ dp_set_link_config(struct drm_device *dev, struct dp_state *dp) ...@@ -314,11 +314,10 @@ dp_set_link_config(struct drm_device *dev, struct dp_state *dp)
*/ */
bios = nouveau_bios_dp_table(dev, dp->dcb, &headerlen); bios = nouveau_bios_dp_table(dev, dp->dcb, &headerlen);
if (bios && (bios = ROMPTR(&dev_priv->vbios, bios[10]))) { if (bios && (bios = ROMPTR(&dev_priv->vbios, bios[10]))) {
u16 script = ROM16(bios[2]); while (dp->link_bw < (ROM16(bios[0]) * 10))
if (dp->link_bw != 270000) bios += 4;
script = ROM16(bios[6]);
nouveau_bios_run_init_table(dev, script, dp->dcb, dp->crtc); nouveau_bios_run_init_table(dev, ROM16(bios[2]), dp->dcb, dp->crtc);
} }
/* configure lane count on the source */ /* configure lane count on the source */
......
Markdown is supported
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