From patchwork Wed Apr 1 18:06:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todd Previte X-Patchwork-Id: 6141691 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 42A7EBF4A6 for ; Wed, 1 Apr 2015 18:07:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8727A20361 for ; Wed, 1 Apr 2015 18:07:06 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id B3015202C8 for ; Wed, 1 Apr 2015 18:07:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 247F56E8E9; Wed, 1 Apr 2015 11:07:05 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by gabe.freedesktop.org (Postfix) with ESMTP id C32E86E8F0 for ; Wed, 1 Apr 2015 11:07:03 -0700 (PDT) Received: by patj18 with SMTP id j18so59072449pat.2 for ; Wed, 01 Apr 2015 11:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RyqJALChPR0EbGeOFJ5O0rRVuHlHCOxy+GIW5N8AhMs=; b=hDYwTWS6tuqdQzKYB+2SaoexCIpzdCkE5aqGgsLpdCCL5q4MWg2ukvwZQB84ZJmtje y0vSFFApHKrDlT2uf1UkSOWm+SqFx2C6r3YE7f+T+vQYgJRJuefwgAkPAc/0Eg2Ay2wx 8dXJ2pzJg2/oc20z7byUBH7GccZ3YVMRWyOrJzmVFOCrT0PSVxVRhyOCbDl18paDUvfK wnDe7NQbwv0fWpDJMSnqZWzVzhLCkD4CZNhX9kDH3ltg4Uw+PwAYTcZwgInXfOpGPJ89 syD+XniZdvIP9xiXb9McdeDlkzbq0R5lI3PbXiS/1YAvO4quRcu7fuozeok2Bt4b+zRP Mvjg== X-Received: by 10.66.184.48 with SMTP id er16mr48966461pac.91.1427911623567; Wed, 01 Apr 2015 11:07:03 -0700 (PDT) Received: from localhost.localdomain (ip70-162-72-208.ph.ph.cox.net. [70.162.72.208]) by mx.google.com with ESMTPSA id pr1sm2763428pbc.66.2015.04.01.11.07.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 11:07:03 -0700 (PDT) From: Todd Previte To: intel-gfx@lists.freedesktop.org Date: Wed, 1 Apr 2015 11:06:51 -0700 Message-Id: <1427911611-19952-3-git-send-email-tprevite@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427911611-19952-1-git-send-email-tprevite@gmail.com> References: <1427911611-19952-1-git-send-email-tprevite@gmail.com> Subject: [Intel-gfx] [PATCH 2/2] drm/i915: Add support for Displayport compliance test 4.2.2.8 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Signed-off-by: Todd Previte --- 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 7e0d3a8..c27c30a 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -4015,6 +4015,14 @@ intel_dp_check_link_status(struct intel_dp *intel_dp) return; } + /* Check for downstream port status changes + Displayport Link CTS 1.2a rev1.1 4.2.2.8 + */ + if (link_status[2] & DP_DOWNSTREAM_PORT_STATUS_CHANGED) { + /* Read EDID as required by 4.2.2.8 */ + edid_read = drm_get_edid(connector, adapter); + } + if (!drm_dp_channel_eq_ok(link_status, intel_dp->lane_count)) { DRM_DEBUG_KMS("%s: channel EQ not ok, retraining\n", intel_encoder->base.name);