[Intel-gfx] [PATCH 23/23] drm/i915: die, i915_probe_agp, die

Chris Wilson chris at chris-wilson.co.uk
Sun Sep 5 18:10:58 CEST 2010


On Wed,  1 Sep 2010 22:30:10 +0200, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
> Use the detection from intel-gtt.ko instead. Hooray!
> 
> Also move the stolen mem allocator to the other gtt stuff in dev_priv->mem.
> 
> Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
> ---
> @@ -2106,15 +1940,12 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
>  			 "performance may suffer.\n");
>  	}
>  
> -	ret = i915_probe_agp(dev, &agp_size, &prealloc_size, &prealloc_start);
> -	if (ret)
> +	dev_priv->mm.gtt = intel_gtt_get();
> +	if (!dev_priv->mm.gtt)
DRM_ERROR("Failed to initialize GTT\n");
ret = -ENODEV;
>  		goto out_iomapfree;

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list