diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-04-18 07:02:27 -0400 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-04-19 07:42:57 -0400 |
commit | 465ac0c6b619843f72e36c280cdfa6abf79b7a09 (patch) | |
tree | afeefa975f32bccb59676f8413ef11e3bd025cf8 /drivers/gpu/drm/i915/intel_runtime_pm.c | |
parent | 998bd66a9dd9e260ad850bb0a9f303e2dd5aa87a (diff) |
drm/i915: Define VLV/CHV display power well domains properly
Currently we're using POWER_DOMAIN_MASK as the power domains for the
display power well on VLV/CHV. That includes all power domains even
though the disp2d/pipe-a power well is not needed for a lot of things.
Let's reduce these to what we actually need.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1460977348-32260-3-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_runtime_pm.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_runtime_pm.c | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c index 4e1e398acab1..aae8545d75df 100644 --- a/drivers/gpu/drm/i915/intel_runtime_pm.c +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c | |||
@@ -1618,7 +1618,23 @@ void intel_display_power_put(struct drm_i915_private *dev_priv, | |||
1618 | (POWER_DOMAIN_MASK & ~BDW_ALWAYS_ON_POWER_DOMAINS) | \ | 1618 | (POWER_DOMAIN_MASK & ~BDW_ALWAYS_ON_POWER_DOMAINS) | \ |
1619 | BIT(POWER_DOMAIN_INIT)) | 1619 | BIT(POWER_DOMAIN_INIT)) |
1620 | 1620 | ||
1621 | #define VLV_DISPLAY_POWER_DOMAINS POWER_DOMAIN_MASK | 1621 | #define VLV_DISPLAY_POWER_DOMAINS ( \ |
1622 | BIT(POWER_DOMAIN_PIPE_A) | \ | ||
1623 | BIT(POWER_DOMAIN_PIPE_B) | \ | ||
1624 | BIT(POWER_DOMAIN_PIPE_A_PANEL_FITTER) | \ | ||
1625 | BIT(POWER_DOMAIN_PIPE_B_PANEL_FITTER) | \ | ||
1626 | BIT(POWER_DOMAIN_TRANSCODER_A) | \ | ||
1627 | BIT(POWER_DOMAIN_TRANSCODER_B) | \ | ||
1628 | BIT(POWER_DOMAIN_PORT_DDI_B_LANES) | \ | ||
1629 | BIT(POWER_DOMAIN_PORT_DDI_C_LANES) | \ | ||
1630 | BIT(POWER_DOMAIN_PORT_DSI) | \ | ||
1631 | BIT(POWER_DOMAIN_PORT_CRT) | \ | ||
1632 | BIT(POWER_DOMAIN_VGA) | \ | ||
1633 | BIT(POWER_DOMAIN_AUDIO) | \ | ||
1634 | BIT(POWER_DOMAIN_AUX_B) | \ | ||
1635 | BIT(POWER_DOMAIN_AUX_C) | \ | ||
1636 | BIT(POWER_DOMAIN_GMBUS) | \ | ||
1637 | BIT(POWER_DOMAIN_INIT)) | ||
1622 | 1638 | ||
1623 | #define VLV_DPIO_CMN_BC_POWER_DOMAINS ( \ | 1639 | #define VLV_DPIO_CMN_BC_POWER_DOMAINS ( \ |
1624 | BIT(POWER_DOMAIN_PORT_DDI_B_LANES) | \ | 1640 | BIT(POWER_DOMAIN_PORT_DDI_B_LANES) | \ |
@@ -1648,6 +1664,28 @@ void intel_display_power_put(struct drm_i915_private *dev_priv, | |||
1648 | BIT(POWER_DOMAIN_AUX_C) | \ | 1664 | BIT(POWER_DOMAIN_AUX_C) | \ |
1649 | BIT(POWER_DOMAIN_INIT)) | 1665 | BIT(POWER_DOMAIN_INIT)) |
1650 | 1666 | ||
1667 | #define CHV_DISPLAY_POWER_DOMAINS ( \ | ||
1668 | BIT(POWER_DOMAIN_PIPE_A) | \ | ||
1669 | BIT(POWER_DOMAIN_PIPE_B) | \ | ||
1670 | BIT(POWER_DOMAIN_PIPE_C) | \ | ||
1671 | BIT(POWER_DOMAIN_PIPE_A_PANEL_FITTER) | \ | ||
1672 | BIT(POWER_DOMAIN_PIPE_B_PANEL_FITTER) | \ | ||
1673 | BIT(POWER_DOMAIN_PIPE_C_PANEL_FITTER) | \ | ||
1674 | BIT(POWER_DOMAIN_TRANSCODER_A) | \ | ||
1675 | BIT(POWER_DOMAIN_TRANSCODER_B) | \ | ||
1676 | BIT(POWER_DOMAIN_TRANSCODER_C) | \ | ||
1677 | BIT(POWER_DOMAIN_PORT_DDI_B_LANES) | \ | ||
1678 | BIT(POWER_DOMAIN_PORT_DDI_C_LANES) | \ | ||
1679 | BIT(POWER_DOMAIN_PORT_DDI_D_LANES) | \ | ||
1680 | BIT(POWER_DOMAIN_PORT_DSI) | \ | ||
1681 | BIT(POWER_DOMAIN_VGA) | \ | ||
1682 | BIT(POWER_DOMAIN_AUDIO) | \ | ||
1683 | BIT(POWER_DOMAIN_AUX_B) | \ | ||
1684 | BIT(POWER_DOMAIN_AUX_C) | \ | ||
1685 | BIT(POWER_DOMAIN_AUX_D) | \ | ||
1686 | BIT(POWER_DOMAIN_GMBUS) | \ | ||
1687 | BIT(POWER_DOMAIN_INIT)) | ||
1688 | |||
1651 | #define CHV_DPIO_CMN_BC_POWER_DOMAINS ( \ | 1689 | #define CHV_DPIO_CMN_BC_POWER_DOMAINS ( \ |
1652 | BIT(POWER_DOMAIN_PORT_DDI_B_LANES) | \ | 1690 | BIT(POWER_DOMAIN_PORT_DDI_B_LANES) | \ |
1653 | BIT(POWER_DOMAIN_PORT_DDI_C_LANES) | \ | 1691 | BIT(POWER_DOMAIN_PORT_DDI_C_LANES) | \ |
@@ -1832,7 +1870,7 @@ static struct i915_power_well chv_power_wells[] = { | |||
1832 | * power wells don't actually exist. Pipe A power well is | 1870 | * power wells don't actually exist. Pipe A power well is |
1833 | * required for any pipe to work. | 1871 | * required for any pipe to work. |
1834 | */ | 1872 | */ |
1835 | .domains = VLV_DISPLAY_POWER_DOMAINS, | 1873 | .domains = CHV_DISPLAY_POWER_DOMAINS, |
1836 | .data = PIPE_A, | 1874 | .data = PIPE_A, |
1837 | .ops = &chv_pipe_power_well_ops, | 1875 | .ops = &chv_pipe_power_well_ops, |
1838 | }, | 1876 | }, |