[Intel-gfx] [PATCH 01/18] drm/i915: Support not having an init clock gating function defined

Nick Hoath nicholas.hoath at intel.com
Wed Feb 11 06:44:58 PST 2015


On 09/02/2015 19:33, Damien Lespiau wrote:
> When enabling new platforms, we may not have any W/A to apply,
> especially that, now, a bunch of them have to be done from the ring.
>
> Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>

Reviewed-by: Nick Hoath <nicholas.hoath at intel.com>

> ---
>   drivers/gpu/drm/i915/intel_pm.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 3c64810..a3b979d 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -6386,7 +6386,8 @@ void intel_init_clock_gating(struct drm_device *dev)
>   {
>   	struct drm_i915_private *dev_priv = dev->dev_private;
>
> -	dev_priv->display.init_clock_gating(dev);
> +	if (dev_priv->display.init_clock_gating)
> +		dev_priv->display.init_clock_gating(dev);
>   }
>
>   void intel_suspend_hw(struct drm_device *dev)
>



More information about the Intel-gfx mailing list