• Anshuman Gupta's avatar
    drm/i915/dg1: Adjust the AUDIO power domain · 615a7724
    Anshuman Gupta authored
    DG1 and XE_PLD platforms has Audio MMIO/VERBS lies in PG0 power
    well. Adjusting the power domain accordingly to
    POWER_DOMAIN_AUDIO_MMIO for audio detection and
    POWER_DOMAIN_AUDIO_PLAYBACK for audio playback.
    
    While doing this it requires to use POWER_DOMAIN_AUDIO_MMIO
    power domain instead of POWER_DOMAIN_AUDIO in crtc power domain mask
    and POWER_DOMAIN_AUDIO_PLAYBACK with intel_display_power_{get, put}
    to enable/disable display audio codec power.
    
    It will save the power in use cases when DP/HDMI connectors
    configured with PIPE_A without any audio playback.
    
    v1: Changes since RFC
    - changed power domain names. [Imre]
    - Removed TC{3,6}, AUX_USBC{3,6} and TBT from DG1
      power well and PW_3 power domains. [Imre]
    - Fixed the order of powe wells , power domains and its
      registration. [Imre]
    
    v2:
    - Not allowe DC states when AUDIO_MMIO domain enabled. [Imre]
    
    v3:
    - Squashes the commits of series to avoid build failure.
    
    Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Cc: Kai Vehmanen <kai.vehmanen@linux.intel.com>
    Cc: Uma Shankar <uma.shankar@intel.com>
    Cc: Imre Deak <imre.deak@intel.com>
    Reviewed-by: default avatarImre Deak <imre.deak@intel.com>
    Signed-off-by: default avatarAnshuman Gupta <anshuman.gupta@intel.com>
    [Fix typo in commit message and in AUDIO_PLAYBACK domain name]
    Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210729121858.16897-2-anshuman.gupta@intel.com
    615a7724
intel_display_power.c 179 KB