[Intel-gfx] [PATCH] drm/i915: BIOS and power context stolen mem handling for VLV v3

Chris Wilson chris at chris-wilson.co.uk
Tue May 7 21:45:43 CEST 2013


On Tue, May 07, 2013 at 11:50:47AM -0700, Jesse Barnes wrote:
> @@ -62,7 +62,10 @@ static unsigned long i915_stolen_to_physical(struct drm_device *dev)
>  	 * its value of TOLUD.
>  	 */
>  	base = 0;
> -	if (INTEL_INFO(dev)->gen >= 6) {
> +	if (IS_VALLEYVIEW(dev)) {
> +		pci_read_config_dword(pdev, 0x5c, &base);
> +		base &= ((1<<20) - 1);

Woah, only the low 1 MiB of the physical address is valid?
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list