diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-09-26 18:29:33 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-10-04 19:57:35 -0400 |
commit | fe224bb7e12f1ea9a785ec942bc5d59950543888 (patch) | |
tree | 74fa83938db3f0727ecd241c236fdf5513b905a6 /drivers/gpu/drm/nouveau/nouveau_dp.c | |
parent | 7760fcb020b41352af4e675ce65a6aa0e93c170f (diff) |
drm/nouveau: enable enhanced framing only if DP display supports it
Reported-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_dp.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_dp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_dp.c b/drivers/gpu/drm/nouveau/nouveau_dp.c index 89ca1f6851a0..6bf3f714f84d 100644 --- a/drivers/gpu/drm/nouveau/nouveau_dp.c +++ b/drivers/gpu/drm/nouveau/nouveau_dp.c | |||
@@ -317,7 +317,8 @@ train: | |||
317 | return false; | 317 | return false; |
318 | 318 | ||
319 | config[0] = nv_encoder->dp.link_nr; | 319 | config[0] = nv_encoder->dp.link_nr; |
320 | if (nv_encoder->dp.dpcd_version >= 0x11) | 320 | if (nv_encoder->dp.dpcd_version >= 0x11 && |
321 | nv_encoder->dp.enhanced_frame) | ||
321 | config[0] |= DP_LANE_COUNT_ENHANCED_FRAME_EN; | 322 | config[0] |= DP_LANE_COUNT_ENHANCED_FRAME_EN; |
322 | 323 | ||
323 | ret = nouveau_dp_lane_count_set(encoder, config[0]); | 324 | ret = nouveau_dp_lane_count_set(encoder, config[0]); |
@@ -468,10 +469,12 @@ nouveau_dp_detect(struct drm_encoder *encoder) | |||
468 | !nv_encoder->dcb->dpconf.link_bw) | 469 | !nv_encoder->dcb->dpconf.link_bw) |
469 | nv_encoder->dp.link_bw = DP_LINK_BW_1_62; | 470 | nv_encoder->dp.link_bw = DP_LINK_BW_1_62; |
470 | 471 | ||
471 | nv_encoder->dp.link_nr = dpcd[2] & 0xf; | 472 | nv_encoder->dp.link_nr = dpcd[2] & DP_MAX_LANE_COUNT; |
472 | if (nv_encoder->dp.link_nr > nv_encoder->dcb->dpconf.link_nr) | 473 | if (nv_encoder->dp.link_nr > nv_encoder->dcb->dpconf.link_nr) |
473 | nv_encoder->dp.link_nr = nv_encoder->dcb->dpconf.link_nr; | 474 | nv_encoder->dp.link_nr = nv_encoder->dcb->dpconf.link_nr; |
474 | 475 | ||
476 | nv_encoder->dp.enhanced_frame = (dpcd[2] & DP_ENHANCED_FRAME_CAP); | ||
477 | |||
475 | return true; | 478 | return true; |
476 | } | 479 | } |
477 | 480 | ||