drm/i915/dsc: Add a power domain for VDSC on eDP/MIPI DSI
authorManasi Navare <manasi.d.navare@intel.com>
Wed, 28 Nov 2018 20:26:18 +0000 (12:26 -0800)
committerManasi Navare <manasi.d.navare@intel.com>
Thu, 29 Nov 2018 20:23:54 +0000 (12:23 -0800)
On Icelake, a separate power well PG2 is created for
VDSC engine used for eDP/MIPI DSI. This patch adds a new
display power domain for Power well 2.

v3:
* Call it POWER_DOMAIN_TRANSCODER_EDP_VDSC (Ville)
* Move it around TRANSCODER power domain defs (Ville)

v2:
* Fix the power well mismatch CI error (Ville)
* Rename as VDSC_PIPE_A (Imre)
* Fix a whitespace (Anusha)
* Fix Comments (Imre)

Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Ville Syrjala <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181128202628.20238-7-manasi.d.navare@intel.com
drivers/gpu/drm/i915/intel_display.h
drivers/gpu/drm/i915/intel_runtime_pm.c

index 3ec704c93d6e41f7af09b76ebeb9392a935ea4d7..4262452963b31442363fe13ccf812c645a831fb7 100644 (file)
@@ -242,6 +242,7 @@ enum intel_display_power_domain {
        POWER_DOMAIN_TRANSCODER_B,
        POWER_DOMAIN_TRANSCODER_C,
        POWER_DOMAIN_TRANSCODER_EDP,
+       POWER_DOMAIN_TRANSCODER_EDP_VDSC,
        POWER_DOMAIN_TRANSCODER_DSI_A,
        POWER_DOMAIN_TRANSCODER_DSI_C,
        POWER_DOMAIN_PORT_DDI_A_LANES,
index 1c2de9b69a199c0534b1358a8e647bbb3a41dda0..4350a5270423c1b924a5e69a75ea0ff27b0ec31f 100644 (file)
@@ -76,6 +76,8 @@ intel_display_power_domain_str(enum intel_display_power_domain domain)
                return "TRANSCODER_C";
        case POWER_DOMAIN_TRANSCODER_EDP:
                return "TRANSCODER_EDP";
+       case POWER_DOMAIN_TRANSCODER_EDP_VDSC:
+               return "TRANSCODER_EDP_VDSC";
        case POWER_DOMAIN_TRANSCODER_DSI_A:
                return "TRANSCODER_DSI_A";
        case POWER_DOMAIN_TRANSCODER_DSI_C:
@@ -2028,9 +2030,9 @@ void intel_display_power_put(struct drm_i915_private *dev_priv,
         */
 #define ICL_PW_2_POWER_DOMAINS (                       \
        ICL_PW_3_POWER_DOMAINS |                        \
+       BIT_ULL(POWER_DOMAIN_TRANSCODER_EDP_VDSC) |             \
        BIT_ULL(POWER_DOMAIN_INIT))
        /*
-        * - eDP/DSI VDSC
         * - KVMR (HW control)
         */
 #define ICL_DISPLAY_DC_OFF_POWER_DOMAINS (             \