From patchwork Mon Jul 14 19:10:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todd Previte X-Patchwork-Id: 4548701 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BCBC0C0514 for ; Mon, 14 Jul 2014 19:11:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0EC7A2011E for ; Mon, 14 Jul 2014 19:11:26 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 40EF22015E for ; Mon, 14 Jul 2014 19:11:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C81836E466; Mon, 14 Jul 2014 12:11:24 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by gabe.freedesktop.org (Postfix) with ESMTP id 2197F6E466 for ; Mon, 14 Jul 2014 12:11:24 -0700 (PDT) Received: by mail-pa0-f50.google.com with SMTP id et14so400708pad.37 for ; Mon, 14 Jul 2014 12:11:23 -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=Bupbq0hOf7iJ6UqxOhoIApiWFg2iKirzgl+2hkS2h34=; b=ubiSBmk1290tINVIcIzGaAeVV6nW8GTjpXCiRnhJzXCQcKd6Aq8Qz4VBAS3GaDGMLx C4dbWWQ1vmRE+Gus5a7N0CLnLyujtO0FuXr0CzmuypgYjsmOZ4yW7lNmetLmThCEIOqi b4xAX/MaswowqjZJwIGtkT6aqY6374BYSaa1vtd+rkQq3WlQjKw/9WQbram3Jx503jKI YPdlD45OMrZJS9lEgNIZVcD3Evhs9qcB+e/2c6zmbayo0btT03LJoIKbgR4i1j84DF4u eozQQ40qERvXkt04V6oyeYpa9GvCD4D5ou5MhEDeIPOEwQxp2I+l3qzMrnYxC1eGKnQ2 eDqA== X-Received: by 10.70.102.206 with SMTP id fq14mr18282483pdb.62.1405365083888; Mon, 14 Jul 2014 12:11:23 -0700 (PDT) Received: from localhost.localdomain (ip72-201-95-47.ph.ph.cox.net. [72.201.95.47]) by mx.google.com with ESMTPSA id z5sm8049888pbt.81.2014.07.14.12.11.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Jul 2014 12:11:23 -0700 (PDT) From: Todd Previte To: intel-gfx@lists.freedesktop.org Date: Mon, 14 Jul 2014 12:10:39 -0700 Message-Id: <1405365047-6866-5-git-send-email-tprevite@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1405365047-6866-1-git-send-email-tprevite@gmail.com> References: <1405365047-6866-1-git-send-email-tprevite@gmail.com> Subject: [Intel-gfx] [PATCH 04/12] drm/i915: Add wrapper function for intel_crtc_set_config() X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 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, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Add a wrapper around intel_crtc_set_config() to allow it to be called from the DP compliance test functions. This is necessary to perform the internal mode set operations required for compliance testing. Signed-off-by: Todd Previte --- drivers/gpu/drm/i915/intel_display.c | 6 ++++++ drivers/gpu/drm/i915/intel_drv.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index fa77557..77ab4f3 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -11249,6 +11249,12 @@ out_config: return ret; } +/* Wrapper function for setting a configuration for DP compliance testing */ +int intel_dp_set_config(struct drm_mode_set *set) +{ + return intel_crtc_set_config(set); +} + static const struct drm_crtc_funcs intel_crtc_funcs = { .gamma_set = intel_crtc_gamma_set, .set_config = intel_crtc_set_config, diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 5f7c7bd..d2ae54f 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -836,6 +836,8 @@ void intel_mode_from_pipe_config(struct drm_display_mode *mode, struct intel_crtc_config *pipe_config); int intel_format_to_fourcc(int format); void intel_crtc_wait_for_pending_flips(struct drm_crtc *crtc); +/* Wrapper function for setting a configuration for DP compliance testing */ +int intel_dp_set_config(struct drm_mode_set *set); /* intel_dp.c */