From owner-freebsd-x11@freebsd.org Wed Mar 18 00:57:38 2020 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1DA9327773F for ; Wed, 18 Mar 2020 00:57:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48hs8K3sZHz4CJZ for ; Wed, 18 Mar 2020 00:57:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 5659E27773C; Wed, 18 Mar 2020 00:57:37 +0000 (UTC) Delivered-To: x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 48F1927773B for ; Wed, 18 Mar 2020 00:57:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48hs8J2nS5z4CGq for ; Wed, 18 Mar 2020 00:57:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 105EE19F58 for ; Wed, 18 Mar 2020 00:57:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 02I0vZtq029787 for ; Wed, 18 Mar 2020 00:57:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 02I0vZqj029785 for x11@FreeBSD.org; Wed, 18 Mar 2020 00:57:35 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: maintainer-feedback requested: [Bug 244877] graphics/mesa-dri: Fixing vulkan by switching to unsynchronized userptr ioctls Date: Wed, 18 Mar 2020 00:57:35 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Mar 2020 00:57:38 -0000 Bugzilla Automation has asked freebsd-x11 mailing li= st for maintainer-feedback: Bug 244877: graphics/mesa-dri: Fixing vulkan by switching to unsynchronized userptr ioctls https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244877 --- Description --- This is the userspace portion of a change which fixes the Vulkan graphics A= PI on older Intel machines: https://github.com/FreeBSDDesktop/kms-drm/pull/205 The above PR fixes the unsychronized DRM_IOCTL_I915_GEM_USERPTR which is us= ed by intel's vulkan code. For the fix to be used the ioctl needs to have the I915_USERPTR_UNSYNCHRONIZED flag enabled: struct drm_i915_gem_userptr userptr =3D { .user_ptr =3D (__u64)((unsigned long) mem), .user_size =3D size, - .flags =3D 0, + .flags =3D I915_USERPTR_UNSYNCHRONIZED, }; int ret =3D anv_ioctl(device->fd, DRM_IOCTL_I915_GEM_USERPTR, &userptr); I've needed both the PR and this change for some daily vulkan development to work. It seems that maybe all the mesa stuff is going to be overhauled soon? So m= aybe this isn't the ideal time to merge this. Please let me know if there is anything I can help with!