Re: [PATCH] drm/i915/gem: Fix the mman selftest

2021-08-31 Thread Thomas Hellström
On 8/31/21 11:45 AM, Maarten Lankhorst wrote: Op 26-08-2021 om 09:24 schreef Thomas Hellström: Using the I915_MMAP_TYPE_FIXED mmap type requires the TTM backend, so for that mmap type, use __i915_gem_object_create_user() instead of i915_gem_object_create_internal(), as we really want to tests

Re: [PATCH] drm/i915/gem: Fix the mman selftest

2021-08-31 Thread Maarten Lankhorst
Op 26-08-2021 om 09:24 schreef Thomas Hellström: > Using the I915_MMAP_TYPE_FIXED mmap type requires the TTM backend, so > for that mmap type, use __i915_gem_object_create_user() instead of > i915_gem_object_create_internal(), as we really want to tests objects > mmap-able by user-space. > > This

[PATCH] drm/i915/gem: Fix the mman selftest

2021-08-26 Thread Thomas Hellström
Using the I915_MMAP_TYPE_FIXED mmap type requires the TTM backend, so for that mmap type, use __i915_gem_object_create_user() instead of i915_gem_object_create_internal(), as we really want to tests objects mmap-able by user-space. This also means that the out-of-space error happens at object