public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Todd Previte <tprevite@gmail.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH 3/3] drm/i915: Displayport compliance test 4.2.2.8 support
Date: Tue,  9 Jun 2015 17:22:20 -0700	[thread overview]
Message-ID: <1433895740-13698-4-git-send-email-tprevite@gmail.com> (raw)
In-Reply-To: <1433895740-13698-1-git-send-email-tprevite@gmail.com>

Adds support for the test 4.2.2.8 EDID read on IRQ_HPD event after
Branch Device Detection in the Displayport Link CTS Core 1.2 rev1.1.
This test checks to see that the source device reads the EDID from
the attached sink device upon detection of a downstream port. A short
pulse is generated by the sink device to indicate a status change in
the downstream ports to which the source device must respond by
reading the EDID from the attached sink.

Since this is a test that occurs during a short pulse instead of a
long pulse, the normal EDID read that occurs during the call to
intel_dp_detect() does happen. Currently this read must be placed here
in order to pass the compliance tests. However, the EDID data from
this read is discarded at this time. In the future, this EDID read
may be used for other purposes and can be stored as necessary at that
time should be need arise.

Signed-off-by: Todd Previte <tprevite@gmail.com>
---
 drivers/gpu/drm/i915/intel_dp.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 697857a..99d2e81 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -4220,6 +4220,14 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)
 		if (sink_irq_vector & (DP_CP_IRQ | DP_SINK_SPECIFIC_IRQ))
 			DRM_DEBUG_DRIVER("CP or sink specific irq unhandled\n");
 	}
+	/* Displayport Link CTS 1.2a rev1.1
+	 *      4.2.2.8 : Check for downstream port status change
+	 */
+	if (link_status[2] & DP_DOWNSTREAM_PORT_STATUS_CHANGED) {
+		struct edid *edid_read = NULL;
+		edid_read = drm_get_edid(&intel_dp->attached_connector->base,
+					 &intel_dp->aux.ddc);
+	}
 
 	if (!drm_dp_channel_eq_ok(link_status, intel_dp->lane_count)) {
 		DRM_DEBUG_KMS("%s: channel EQ not ok, retraining\n",
-- 
1.9.1

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

  parent reply	other threads:[~2015-06-10  0:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-10  0:22 Add support for Displayport CTS 4.2.2.7, 4.2.2.8 and 4.2.2.9 Todd Previte
2015-06-10  0:22 ` [PATCH 1/3] drm/i915: Displayport compliance test 4.2.2.9 support Todd Previte
2015-06-15 15:37   ` Daniel Vetter
2015-06-15 15:50     ` Chris Wilson
2015-06-10  0:22 ` [PATCH 2/3] drm/i915: Displayport compliance test 4.2.2.7 support Todd Previte
2015-06-15 15:39   ` Daniel Vetter
2015-06-10  0:22 ` Todd Previte [this message]
2015-06-15 15:42   ` [PATCH 3/3] drm/i915: Displayport compliance test 4.2.2.8 support Daniel Vetter
2015-06-28 17:15   ` shuang.he

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1433895740-13698-4-git-send-email-tprevite@gmail.com \
    --to=tprevite@gmail.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox