All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH] drm/dp: Increase link status size
@ 2019-10-29 14:03 ` Thierry Reding
  0 siblings, 0 replies; 9+ messages in thread
From: Thierry Reding @ 2019-10-29 14:03 UTC (permalink / raw)
  To: dri-devel; +Cc: intel-gfx, coverity-bot, Philipp Zabel

From: Thierry Reding <treding@nvidia.com>

The current link status contains bytes 0x202 through 0x207, but we also
want to make sure to include the DP_ADJUST_REQUEST_POST_CURSOR2 (0x20c)
so that the post-cursor adjustment can be queried during link training.

Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
Addresses-Coverity-ID: 1487366 ("Memory - corruptions")
Fixes: 79465e0ffeb9 ("drm/dp: Add helper to get post-cursor adjustments")
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 include/drm/drm_dp_helper.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h
index 51ecb5112ef8..9581dec900ba 100644
--- a/include/drm/drm_dp_helper.h
+++ b/include/drm/drm_dp_helper.h
@@ -1121,7 +1121,7 @@
 #define DP_MST_PHYSICAL_PORT_0 0
 #define DP_MST_LOGICAL_PORT_0 8
 
-#define DP_LINK_STATUS_SIZE	   6
+#define DP_LINK_STATUS_SIZE	   11
 bool drm_dp_channel_eq_ok(const u8 link_status[DP_LINK_STATUS_SIZE],
 			  int lane_count);
 bool drm_dp_clock_recovery_ok(const u8 link_status[DP_LINK_STATUS_SIZE],
-- 
2.23.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-10-31 20:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-29 14:03 [RESEND PATCH] drm/dp: Increase link status size Thierry Reding
2019-10-29 14:03 ` [Intel-gfx] " Thierry Reding
2019-10-29 14:03 ` Thierry Reding
2019-10-29 16:52 ` ✓ Fi.CI.BAT: success for " Patchwork
2019-10-29 16:52   ` [Intel-gfx] " Patchwork
2019-10-30  7:08 ` ✓ Fi.CI.IGT: " Patchwork
2019-10-30  7:08   ` [Intel-gfx] " Patchwork
2019-10-31 20:41 ` [RESEND PATCH] " Lyude Paul
2019-10-31 20:41   ` [Intel-gfx] " Lyude Paul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.