Based on vbt entry enabling i915 driver to act on
hpd support during suspend.

Signed-off-by: Animesh Manna <[email protected]>
---
 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.
-- 
2.0.2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to