[Intel-gfx] [PATCH 4/5] drm/i915: cpu-map based dumb buffers
Chris Wilson
chris at chris-wilson.co.uk
Tue Oct 22 10:37:17 UTC 2019
Quoting Abdiel Janulgue (2019-10-22 08:52:55)
>
>
> On 21/10/2019 16.35, Chris Wilson wrote:
> > Quoting Abdiel Janulgue (2019-10-21 11:48:10)
> >> +int
> >> +i915_gem_mmap_dumb(struct drm_file *file,
> >> + struct drm_device *dev,
> >> + u32 handle,
> >> + u64 *offset)
> >> +{
> >> + return __assign_gem_object_mmap_data(file, handle, I915_MMAP_TYPE_WC,
> >
> > It still needs to do boot_cpu_has(PAT),
>
> So we probably need a special use-case for GTT mmaps in those kind of
> hw, no?
enum type = boot_cpu_has(PAT) ? I915_MMAP_TYPE_WC : I915_MMAP_TYPE_GTT;
Of course the machines without PAT are also the ones with tiny GGTT.
-Chris
More information about the Intel-gfx
mailing list