From patchwork Wed Dec 10 23:53:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todd Previte X-Patchwork-Id: 5473331 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D2BF99F1D4 for ; Wed, 10 Dec 2014 23:54:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1B244201B9 for ; Wed, 10 Dec 2014 23:54:12 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 4A440200DF for ; Wed, 10 Dec 2014 23:54:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C289C6E706; Wed, 10 Dec 2014 15:54:10 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pd0-f173.google.com (mail-pd0-f173.google.com [209.85.192.173]) by gabe.freedesktop.org (Postfix) with ESMTP id A02E56E712 for ; Wed, 10 Dec 2014 15:54:09 -0800 (PST) Received: by mail-pd0-f173.google.com with SMTP id ft15so3766355pdb.4 for ; Wed, 10 Dec 2014 15:54:09 -0800 (PST) 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=+x9S7N0B+iRYYazzOZtCxyFdYeCD27Y9AVgMWRDzcMU=; b=m98qjwcVLBnqiU/E2Tu2QT9tgQelg5y18DivFGGNak4t/cyuGGFs5Gdl8d50O2PjUI GIzkyfYV86TS5/Mis8DVkeQLgpYWlTK7rF49VnOnp/p6VFcc+YWBZ2kWwFI7e5fqjWpS AwzvG2N+uT86fWkneOBDMVq2EdA1IhDefEly1gaW/18oIK6YMBAg6cY8sHYAGTbXRP4+ w0kB3gb4mIP1GCtWj6iGRVpcAqzZFeavZSRggMXxMZVdDZITuhxFQh7bSyPpZD9c/Vei u8Dl9jS9Is4LbDdQwIaB/dIaWQmlVFvzN84ngpXzVlNuUEF6+FsO4XizeHMY2QgIdUNG 9hlA== X-Received: by 10.70.5.68 with SMTP id q4mr11866984pdq.116.1418255649466; Wed, 10 Dec 2014 15:54:09 -0800 (PST) Received: from localhost.localdomain (ip68-3-234-27.ph.ph.cox.net. [68.3.234.27]) by mx.google.com with ESMTPSA id gy10sm5164958pbd.67.2014.12.10.15.54.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Dec 2014 15:54:08 -0800 (PST) From: Todd Previte To: intel-gfx@lists.freedesktop.org Date: Wed, 10 Dec 2014 16:53:08 -0700 Message-Id: <1418255597-4716-9-git-send-email-tprevite@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418255597-4716-1-git-send-email-tprevite@gmail.com> References: <1418255597-4716-1-git-send-email-tprevite@gmail.com> Subject: [Intel-gfx] [PATCH 08/17] drm/i915: Add Displayport link configuration structure 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 This patch was previously part of "[PATCH 07/10] drm/i915: Add structures for Displayport compliance testing parameters". Adds a struct to maintain link configuration data for Displayport compliance testing. The members added to the intel_dp struct are for compliance testing purposes only and should not be used during normal operations. Signed-off-by: Todd Previte --- drivers/gpu/drm/i915/intel_drv.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index d1a807a..5a8b1d6 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -577,6 +577,18 @@ enum edp_drrs_refresh_rate_type { DRRS_MAX_RR, /* RR count */ }; +struct intel_dp_link_config { + uint8_t lane_count; + uint8_t link_rate; + uint8_t vswing_level; + uint8_t preemp_level; + uint32_t hres; + uint32_t vres; + uint8_t bits_per_pixel; + struct drm_display_mode *compliance_mode; + char connector_name[12]; +}; + struct intel_dp { uint32_t output_reg; uint32_t aux_ch_ctl_reg; @@ -641,6 +653,8 @@ struct intel_dp { /* Displayport compliance testing */ unsigned long compliance_test_data; bool compliance_testing_active; + struct intel_dp_link_config compliance_config; + struct intel_dp_link_config saved_config; };