From patchwork Tue Apr 5 12:34:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Manna, Animesh" X-Patchwork-Id: 8751221 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 A84CCC0553 for ; Tue, 5 Apr 2016 12:37:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DDA16203A5 for ; Tue, 5 Apr 2016 12:37:03 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 0ECD22038E for ; Tue, 5 Apr 2016 12:37:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D5B36E778; Tue, 5 Apr 2016 12:37:02 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id AA4DD6E778 for ; Tue, 5 Apr 2016 12:37:01 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 05 Apr 2016 05:37:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,444,1455004800"; d="scan'208";a="948403151" Received: from unknown (HELO amanna-desktop.iind.intel.com) ([10.223.25.127]) by orsmga002.jf.intel.com with ESMTP; 05 Apr 2016 05:37:00 -0700 From: Animesh Manna To: intel-gfx@lists.freedesktop.org Date: Tue, 5 Apr 2016 18:04:38 +0530 Message-Id: <1459859678-16343-7-git-send-email-animesh.manna@intel.com> X-Mailer: git-send-email 2.0.2 In-Reply-To: <1459859678-16343-1-git-send-email-animesh.manna@intel.com> References: <1459859678-16343-1-git-send-email-animesh.manna@intel.com> Subject: [Intel-gfx] [PATCH 6/6] drm/i915/bxt: Enable HPD during suspend. 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=-5.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Based on vbt entry enabling i915 driver to act on hpd support during suspend. Signed-off-by: Animesh Manna --- drivers/gpu/drm/i915/intel_bios.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c index 9c406b0..8ed084a 100644 --- a/drivers/gpu/drm/i915/intel_bios.c +++ b/drivers/gpu/drm/i915/intel_bios.c @@ -529,6 +529,13 @@ parse_driver_features(struct drm_i915_private *dev_priv, if (driver->lvds_config == BDB_DRIVER_FEATURE_EDP) dev_priv->vbt.edp.support = 1; + if (driver->hpd_wakeup_source) { + dev_priv->vbt.hpd_wakeup_enabled = + ENABLE_HOT_PLUG_AS_WAKE_EVENT; + DRM_DEBUG_KMS("HPD as wakeup feature is enabled\n"); + } else + DRM_DEBUG_KMS("HPD wakeup source feature is disabled in VBT\n"); + DRM_DEBUG_KMS("DRRS State Enabled:%d\n", driver->drrs_enabled); /* * If DRRS is not supported, drrs_type has to be set to 0.