[Intel-gfx] [PATCH 3/5] drm/i915: Add POWER_DOMAIN_VGA

Paulo Zanoni przanoni at gmail.com
Fri Sep 13 22:16:46 CEST 2013


2013/9/12  <ville.syrjala at linux.intel.com>:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> VGA registers/memory live inside the the display power well. Add a power
> domain for VGA.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

(see comments in patch 1/5)

Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>

> ---
>  drivers/gpu/drm/i915/i915_drv.h | 1 +
>  drivers/gpu/drm/i915/intel_pm.c | 3 +++
>  2 files changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index 152291c..54b1966 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -99,6 +99,7 @@ enum intel_display_power_domain {
>         POWER_DOMAIN_TRANSCODER_B,
>         POWER_DOMAIN_TRANSCODER_C,
>         POWER_DOMAIN_TRANSCODER_EDP = POWER_DOMAIN_TRANSCODER_A + 0xF,
> +       POWER_DOMAIN_VGA,
>  };
>
>  #define POWER_DOMAIN_PIPE(pipe) ((pipe) + POWER_DOMAIN_PIPE_A)
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 1aa604c..f08fe52 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -5271,6 +5271,7 @@ bool intel_display_power_enabled(struct drm_device *dev,
>         case POWER_DOMAIN_PIPE_A:
>         case POWER_DOMAIN_TRANSCODER_EDP:
>                 return true;
> +       case POWER_DOMAIN_VGA:
>         case POWER_DOMAIN_PIPE_B:
>         case POWER_DOMAIN_PIPE_C:
>         case POWER_DOMAIN_PIPE_A_PANEL_FITTER:
> @@ -5359,6 +5360,7 @@ void intel_display_power_get(struct drm_device *dev,
>         case POWER_DOMAIN_PIPE_A:
>         case POWER_DOMAIN_TRANSCODER_EDP:
>                 return;
> +       case POWER_DOMAIN_VGA:
>         case POWER_DOMAIN_PIPE_B:
>         case POWER_DOMAIN_PIPE_C:
>         case POWER_DOMAIN_PIPE_A_PANEL_FITTER:
> @@ -5389,6 +5391,7 @@ void intel_display_power_put(struct drm_device *dev,
>         case POWER_DOMAIN_PIPE_A:
>         case POWER_DOMAIN_TRANSCODER_EDP:
>                 return;
> +       case POWER_DOMAIN_VGA:
>         case POWER_DOMAIN_PIPE_B:
>         case POWER_DOMAIN_PIPE_C:
>         case POWER_DOMAIN_PIPE_A_PANEL_FITTER:
> --
> 1.8.1.5
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx



-- 
Paulo Zanoni



More information about the Intel-gfx mailing list