[Intel-gfx] [PATCH 08/12] drm/i915: HWSTAM is only 16-bit on gen3

Jesse Barnes jbarnes at virtuousgeek.org
Wed Apr 25 22:50:35 CEST 2012


On Tue, 24 Apr 2012 22:59:48 +0100
Chris Wilson <chris at chris-wilson.co.uk> wrote:

> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
>  drivers/gpu/drm/i915/i915_irq.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
> index 878f1c3..a4e074e 100644
> --- a/drivers/gpu/drm/i915/i915_irq.c
> +++ b/drivers/gpu/drm/i915/i915_irq.c
> @@ -2307,7 +2307,7 @@ static void i915_irq_preinstall(struct drm_device * dev)
>  		I915_WRITE(PORT_HOTPLUG_STAT, I915_READ(PORT_HOTPLUG_STAT));
>  	}
>  
> -	I915_WRITE(HWSTAM, 0xeffe);
> +	I915_WRITE16(HWSTAM, 0xeffe);
>  	for_each_pipe(pipe)
>  		I915_WRITE(PIPESTAT(pipe), 0);
>  	I915_WRITE(IMR, 0xffffffff);
> @@ -2505,7 +2505,7 @@ static void i915_irq_uninstall(struct drm_device * dev)
>  		I915_WRITE(PORT_HOTPLUG_STAT, I915_READ(PORT_HOTPLUG_STAT));
>  	}
>  
> -	I915_WRITE(HWSTAM, 0xffffffff);
> +	I915_WRITE16(HWSTAM, 0xffff);
>  	for_each_pipe(pipe)
>  		I915_WRITE(PIPESTAT(pipe), 0);
>  	I915_WRITE(IMR, 0xffffffff);

Reviewed-by: Jesse Barnes <jbarnes at virtuousgeek.org>

-- 
Jesse Barnes, Intel Open Source Technology Center



More information about the Intel-gfx mailing list