[Intel-gfx] [PATCH 4/9] drm/i915: nuke the duplicated stolen discovery
Chris Wilson
chris at chris-wilson.co.uk
Fri Nov 24 22:08:22 UTC 2017
Quoting Matthew Auld (2017-11-24 21:29:25)
> We duplicate the stolen discovery code in early-quirks and in i915,
> however now the stolen region is exported as a resource from
> early-quirks we can nuke the duplication.
>
> Signed-off-by: Matthew Auld <matthew.auld at intel.com>
> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Paulo Zanoni <paulo.r.zanoni at intel.com>
> ---
> static dma_addr_t i915_stolen_to_dma(struct drm_i915_private *dev_priv)
> {
> - struct pci_dev *pdev = dev_priv->drm.pdev;
> struct i915_ggtt *ggtt = &dev_priv->ggtt;
> + dma_addr_t base = intel_graphics_stolen_res.start;
> struct resource *r;
> - dma_addr_t base;
GEM_BUG_ON(overflows_type(intel_graphics_stolen_res.start, base));
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris
More information about the Intel-gfx
mailing list