[Intel-gfx] [PATCH v2 3/7] drm/i915/lmem: support kernel mapping
Chris Wilson
chris at chris-wilson.co.uk
Mon Oct 21 19:39:09 UTC 2019
Quoting Chris Wilson (2019-10-21 20:37:46)
> Quoting Matthew Auld (2019-10-21 20:27:43)
> > @@ -244,6 +247,13 @@ static void *i915_gem_object_map(const struct drm_i915_gem_object *obj,
> > pgprot_t pgprot;
> > void *addr;
> >
> > + if (i915_gem_object_is_lmem(obj)) {
> > + if (type != I915_MAP_WC)
> > + return NULL;
>
> return ERR_PTR(-EINVAL) or ERR_PTR(-ENODEV);
Belay that, wrong level. Slightly obnoxious though.
-Chris
More information about the Intel-gfx
mailing list