[Intel-gfx] [PATCH 6/9] drm/i915: [sparse] __iomem fixes for ringbuffer

Chris Wilson chris at chris-wilson.co.uk
Mon Apr 16 23:28:11 CEST 2012


On Mon, 16 Apr 2012 14:07:45 -0700, Ben Widawsky <ben at bwidawsk.net> wrote:
>  	rem /= 8;
>  	while (rem--) {
> -		*virt++ = MI_NOOP;
> -		*virt++ = MI_NOOP;
> +		iowrite32(MI_NOOP, virt);
> +		virt+=4;
> +		iowrite32(MI_NOOP, virt);
> +		virt+=4;
Might as well use memset_io().
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list