diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2013-10-31 19:36:42 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-11-08 00:39:55 -0500 |
commit | 687d8f66b1849a1da515bcbc791f84d7d6dcfa1c (patch) | |
tree | d29da034aebade9fd60306ae9a7a5a6a9696fc1e | |
parent | 9e2b734f1cc43e94558bfd2b779d8e493abea0f4 (diff) |
drm/nouveau/disp: log if DP link training fails
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/core/engine/disp/dport.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/engine/disp/dport.c b/drivers/gpu/drm/nouveau/core/engine/disp/dport.c index 054d9cff4f53..15448b9abac8 100644 --- a/drivers/gpu/drm/nouveau/core/engine/disp/dport.c +++ b/drivers/gpu/drm/nouveau/core/engine/disp/dport.c | |||
@@ -308,7 +308,7 @@ nouveau_dp_train(struct nouveau_disp *disp, const struct nouveau_dp_func *func, | |||
308 | while (*link_bw > (dp->dpcd[1] * 27000)) | 308 | while (*link_bw > (dp->dpcd[1] * 27000)) |
309 | link_bw++; | 309 | link_bw++; |
310 | 310 | ||
311 | while (link_bw[0]) { | 311 | while ((ret = -EIO) && link_bw[0]) { |
312 | /* find minimum required lane count at this link rate */ | 312 | /* find minimum required lane count at this link rate */ |
313 | dp->link_nr = dp->dpcd[2] & DPCD_RC02_MAX_LANE_COUNT; | 313 | dp->link_nr = dp->dpcd[2] & DPCD_RC02_MAX_LANE_COUNT; |
314 | while ((dp->link_nr >> 1) * link_bw[0] > datarate) | 314 | while ((dp->link_nr >> 1) * link_bw[0] > datarate) |
@@ -339,6 +339,8 @@ nouveau_dp_train(struct nouveau_disp *disp, const struct nouveau_dp_func *func, | |||
339 | 339 | ||
340 | /* finish link training */ | 340 | /* finish link training */ |
341 | dp_set_training_pattern(dp, 0); | 341 | dp_set_training_pattern(dp, 0); |
342 | if (ret < 0) | ||
343 | ERR("link training failed\n"); | ||
342 | 344 | ||
343 | /* execute post-train script from vbios */ | 345 | /* execute post-train script from vbios */ |
344 | dp_link_train_fini(dp); | 346 | dp_link_train_fini(dp); |