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.a...@intel.com>
> Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com>
> Cc: Chris Wilson <ch...@chris-wilson.co.uk>
> Cc: Paulo Zanoni <paulo.r.zan...@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 <ch...@chris-wilson.co.uk>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to