Re: [PATCH 09/22] drm/i915/lmem: support kernel mapping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Matthew Auld (2019-09-27 18:33:56)
>  static const struct drm_i915_gem_object_ops i915_gem_object_internal_ops = {
>         .flags = I915_GEM_OBJECT_HAS_STRUCT_PAGE |
> -                I915_GEM_OBJECT_IS_SHRINKABLE,
> +                I915_GEM_OBJECT_IS_SHRINKABLE |
> +                I915_GEM_OBJECT_IS_MAPPABLE,
> +
>  const struct drm_i915_gem_object_ops i915_gem_shmem_ops = {
>         .flags = I915_GEM_OBJECT_HAS_STRUCT_PAGE |
> -                I915_GEM_OBJECT_IS_SHRINKABLE,
> +                I915_GEM_OBJECT_IS_SHRINKABLE |
> +                I915_GEM_OBJECT_IS_MAPPABLE,

>  static const struct drm_i915_gem_object_ops huge_ops = {
>         .flags = I915_GEM_OBJECT_HAS_STRUCT_PAGE |
> -                I915_GEM_OBJECT_IS_SHRINKABLE,
> +                I915_GEM_OBJECT_IS_SHRINKABLE |
> +                I915_GEM_OBJECT_IS_MAPPABLE,

Where's huge_pages and userptr?

In short any that HAS_STRUCT_PAGE is also mappable by your definition
(we can use kmap on them). I suggest maybe using HAS_IOMEM and then
	if (!(obj->ops->flags & (HAS_STRUCT_PAGE | HAS_IOMEM))
?
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux