[Intel-gfx] [PATCH v2 08/22] drm/i915/lmem: support kernel mapping

Chris Wilson chris at chris-wilson.co.uk
Thu Oct 3 19:48:33 UTC 2019


Quoting Matthew Auld (2019-10-03 20:24:30)
> +void __iomem *i915_gem_object_lmem_io_map(struct drm_i915_gem_object *obj,
> +                                         unsigned long n,
> +                                         unsigned long size)
> +{
> +       resource_size_t offset;
> +
> +       GEM_BUG_ON(!(obj->flags & I915_BO_ALLOC_CONTIGUOUS));

	GEM_BUG_ON(!i915_gem_object_is_contiguous(obj));

Just reads more clearly for me. Might just be me.
-Chris


More information about the Intel-gfx mailing list