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 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx