From patchwork Wed Jun 10 00:22:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todd Previte X-Patchwork-Id: 6575971 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 B397DC0020 for ; Wed, 10 Jun 2015 00:22:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DFB77204D2 for ; Wed, 10 Jun 2015 00:22:35 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 1163C204D6 for ; Wed, 10 Jun 2015 00:22:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 958886E293; Tue, 9 Jun 2015 17:22:34 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by gabe.freedesktop.org (Postfix) with ESMTP id 01B5C6E2AC for ; Tue, 9 Jun 2015 17:22:33 -0700 (PDT) Received: by pdjm12 with SMTP id m12so24886399pdj.3 for ; Tue, 09 Jun 2015 17:22:32 -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=MA7v4RjesKajlMf8RACY8ZJi9JOZHldoufCd/w9kdMA=; b=Ub2vd2n8/D7A60ElwdIbrvHVKSAJ9M/dFnYolSCE+560oxSxrlRNRUVadmtFif+O+j fZEiR+3vikGTOBVcr0WNQX41zIm7pvJjIPWn+Mqs7x3dtq+MqwU4Sej5f9WHj0Ievp1u JFhHWP4MhEEnhzWlHgyMIOwbG8/oa3IvQc3K4lHIfvWSl+sMQ2rPlntw1X10XuGJIvAA 1MDTPGFA6/QrZHFbdRstIT+ODWwSXKUEO5iVll6p7V1ZKB8Upt63RHCcfhLXV2J5hivI 9MBclZCV80BE1RMVMv0JTP2l6EBfFprUifOvjZ2+fINRcdSDYutholsVT3pI/hcSxtK5 KsZA== X-Received: by 10.66.230.168 with SMTP id sz8mr666818pac.4.1433895752797; Tue, 09 Jun 2015 17:22:32 -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 f4sm6677230pdc.95.2015.06.09.17.22.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Jun 2015 17:22:32 -0700 (PDT) From: Todd Previte To: intel-gfx@lists.freedesktop.org Date: Tue, 9 Jun 2015 17:22:20 -0700 Message-Id: <1433895740-13698-4-git-send-email-tprevite@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433895740-13698-1-git-send-email-tprevite@gmail.com> References: <1433895740-13698-1-git-send-email-tprevite@gmail.com> Subject: [Intel-gfx] [PATCH 3/3] drm/i915: Displayport compliance test 4.2.2.8 support 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. 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 Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang.he@intel.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",