[Intel-gfx] [PATCH 05/11] drm/i915: Pull intel_init_power_well() out of intel_modeset_init_hw()
Paulo Zanoni
przanoni at gmail.com
Fri Sep 20 00:07:04 CEST 2013
2013/9/16 <ville.syrjala at linux.intel.com>:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> The init and resume codepaths want to handel the power well in slightly
s/handel/handle/
Patches 1-5: Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
> different ways, so pull the power well init out from
> intel_modeset_init_hw() which gets called in both cases.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> ---
> drivers/gpu/drm/i915/i915_dma.c | 2 ++
> drivers/gpu/drm/i915/i915_drv.c | 2 ++
> drivers/gpu/drm/i915/intel_display.c | 2 --
> 3 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
> index 9b265a4..e5c7b10 100644
> --- a/drivers/gpu/drm/i915/i915_dma.c
> +++ b/drivers/gpu/drm/i915/i915_dma.c
> @@ -1324,6 +1324,8 @@ static int i915_load_modeset_init(struct drm_device *dev)
>
> INIT_WORK(&dev_priv->console_resume_work, intel_console_resume);
>
> + intel_init_power_well(dev);
> +
> intel_modeset_gem_init(dev);
>
> /* Always safe in the mode setting case. */
> diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
> index ec690ca..cd5a66d 100644
> --- a/drivers/gpu/drm/i915/i915_drv.c
> +++ b/drivers/gpu/drm/i915/i915_drv.c
> @@ -596,6 +596,8 @@ static int __i915_drm_thaw(struct drm_device *dev)
> /* We need working interrupts for modeset enabling ... */
> drm_irq_install(dev);
>
> + intel_init_power_well(dev);
> +
> intel_modeset_init_hw(dev);
>
> drm_modeset_lock_all(dev);
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 60284fc..8162cd1 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -10275,8 +10275,6 @@ void i915_disable_vga_mem(struct drm_device *dev)
>
> void intel_modeset_init_hw(struct drm_device *dev)
> {
> - intel_init_power_well(dev);
> -
> intel_prepare_ddi(dev);
>
> intel_init_clock_gating(dev);
> --
> 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