Re: [PATCH v2] drm/i915: Add VM_DONTEXPAND to exported buffers

2025-02-11 Thread Rodrigo Vivi
On Tue, Feb 11, 2025 at 04:57:03PM +0100, Jacek Lawrynowicz wrote: > Hi, can I submit this to drm-misc or should someone commit this to drm-intel? This is drm-intel. More specifically drm-intel-gt-next. Since Joonas had some concerns on the v1, let's wait for him to check if the provided answers

Re: [PATCH v2] drm/i915: Add VM_DONTEXPAND to exported buffers

2025-02-11 Thread Jacek Lawrynowicz
Hi, can I submit this to drm-misc or should someone commit this to drm-intel? On 1/14/2025 9:23 AM, Jacek Lawrynowicz wrote: > drm_gem_mmap_obj() expects VM_DONTEXPAND flag to be set after mmap > callback is executed. Set this flag at the end of i915_gem_dmabuf_mmap() > to prevent WARN on mmap in

[PATCH v2] drm/i915: Add VM_DONTEXPAND to exported buffers

2025-01-14 Thread Jacek Lawrynowicz
drm_gem_mmap_obj() expects VM_DONTEXPAND flag to be set after mmap callback is executed. Set this flag at the end of i915_gem_dmabuf_mmap() to prevent WARN on mmap in buffers imported from i915 e.g., [ 283.623215] WARNING: CPU: 1 PID: 12693 at drivers/gpu/drm/drm_gem.c:1087 drm_gem_mmap_obj+0x19