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 <[email protected]>
> Cc: Joonas Lahtinen <[email protected]>
> Cc: Chris Wilson <[email protected]>
> Cc: Paulo Zanoni <[email protected]>
> ---
>  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 <[email protected]>
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to