Issue #3171 has been updated by tuxillo.
Hi, In Mesa commit a363bb2cd they enable unconditionally the soft-pinning feature[1] for all buffers in systems that report having support for both soft-pinning and full PPGTT [2]. DragonFly BSD reports supporting I915_PARAM_HAS_EXEC_SOFTPIN. For Graphics Gen 7 or higher, I915_PARAM_HAS_ALIASING_PPGTT is reported as supported. With this feature enabled, the condition in 'sys/dev/drm/i915/i915_gem_execbuffer.c:1025' is now checked and fails, that's why the EINVAL is returned to userland. According to ftigeot's comments in the IRC, PAGE_MASK is defined differently in Linux and in DragonFly: Linux: #define PAGE_MASK (~(PAGE_SIZE-1)) DragonFly: #define PAGE_MASK (PAGE_SIZE-1) ---- [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=506a8e87d8d2746b9e9d2433503fe237c54e4750 [2] https://bwidawsk.net/blog/index.php/2014/07/true-ppgtt-part-3/ ---------------------------------------- Bug #3171: mesa-libs 18.3.2 not working http://bugs.dragonflybsd.org/issues/3171#change-13602 * Author: tuxillo * Status: In Progress * Priority: Normal * Assignee: * Category: Driver * Target version: master ---------------------------------------- mesa-libs 18.3.2 from dports is not working as expected. This is the latest mesa-libs package in dports as of today. The latest known version to be working is mesa-libs 18.1.9_4. User is in 'video' group as to be expected. # uid=2000(antonioh) gid=2000(antonioh) groups=2000(antonioh), 0(wheel), 44(video), 85(vknet) The error can be triggered by running 'glxgears', 'glxinfo', ... # glxinfo name of display: :2 i965: Failed to submit batchbuffer: Invalid argument Further debugging: To enable FIOCTL and IOCTL debugging messages in DRM: # sysctl hw.drm.debug=0x0f0f hw.drm.debug: 3855 ---- dmesg exceprt ---- [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=0, DRM_IOCTL_GET_MAGIC [drm:pid117659:drm_getmagic] 67 [drm:pid1474:drm_ioctl] pid=1474, dev=0xfffff80076311bc8, auth=1, DRM_IOCTL_AUTH_MAGIC [drm:pid1474:drm_authmagic] 67 [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, DRM_IOCTL_VERSION [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, DRM_IOCTL_VERSION [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GETPARAM [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GEM_CONTEXT_GETPARAM [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GETPARAM [drm:pid117659:i915_getparam] Unknown parameter 30 [drm:pid117659:drm_ioctl] ret = 22 [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GETPARAM [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GETPARAM [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GETPARAM [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GETPARAM [drm:pid117659:i915_getparam] Unknown parameter 40 [drm:pid117659:drm_ioctl] ret = 22 [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GEM_GET_APERTURE [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GEM_CREATE [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GEM_SET_TILING [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GEM_SET_DOMAIN [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, DRM_IOCTL_GEM_CLOSE [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_REG_READ [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GETPARAM [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GETPARAM [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GETPARAM [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GETPARAM [drm:pid117659:i915_getparam] Unknown parameter 45 [drm:pid117659:drm_ioctl] ret = 22 [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GETPARAM [drm:pid117659:i915_getparam] Unknown parameter 48 [drm:pid117659:drm_ioctl] ret = 22 [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GETPARAM [drm:pid117659:i915_getparam] Unknown parameter 50 [drm:pid117659:drm_ioctl] ret = 22 [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GET_RESET_STATS [drm:pid117659:drm_ioctl] ret = 1 [drm:pid1474:drm_ioctl] pid=1474, dev=0xfffff80076311bc8, auth=1, I915_GEM_THROTTLE [drm:pid117659:drm_ioctl] pid=117659, dev=0xfffff80076311bc8, auth=1, I915_GETPARAM [drm:pid117659:i915_getparam] Unknown parameter 44 [drm:pid117659:drm_ioctl] ret = 22 Also attached the glxinfo.log which is the output of: # env INTEL_DEBUG=bat glxinfo [...] ---Files-------------------------------- glxinfo.log (13.3 KB) -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account