From nobody Tue Jul 26 01:18:23 2022 X-Original-To: x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LsJvN75Hsz4Wbcc for ; Tue, 26 Jul 2022 01:18:24 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LsJvN657yz462p for ; Tue, 26 Jul 2022 01:18:24 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LsJvN4wz6zJkY for ; Tue, 26 Jul 2022 01:18:24 +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 26Q1IOis099136 for ; Tue, 26 Jul 2022 01:18:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26Q1IOcs099135 for x11@FreeBSD.org; Tue, 26 Jul 2022 01:18:24 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: x11@FreeBSD.org Subject: [Bug 244877] graphics/mesa-dri: Fix vulkan by switching to unsynchronized userptr ioctls Date: Tue, 26 Jul 2022 01:18:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None 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: jbeich@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658798304; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/0lK6uCwfjIS+uM/HHSYIXKauKRSw30I4yDXruffGCE=; b=paascuiMAwPk51uqLn4E2d7ZNIptnHpzQrGsWgAf5PfXie0Ohq4LqhqvUFK4CFh29f+uZL TUjs7OPa0JxUX+Ev9br5OLxvugrDxkFF7jM7ZgDDPcFtxLkQDq20wzTNP87sORXisYMEXx yGQah3vnPbx5dNAerCE5Wxtr1AIOTJKPWIu6nweCLRwJ05yaSue7P0tFZI74cBMxE+vKrG DIhDHc1/p8fBj7hSwxFJE9MmgJgP7OwzFJwNpE0P+lFMRmKJMtQa7g5uqqN/gq8WLZPRc5 B5EcUK57q4Z7wA/aagf+f3s540mtwhrPz64m6RDAWUbmxqk7Xbs9De3gzblrrA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658798304; a=rsa-sha256; cv=none; b=Ym4M+3dOYP1ts+DgzDXzKd7qBMBlbQmo2qvkIX4tzOIuWDLTH5RTUTGoAvLn53b3Qt2pOu 3SWVZ5P3IbYrOlix72Qxd1ObNCVqSgTGqYM5kou+tOgk9E5X3pcW02UViktZi/2ks2wgIH /4GbovDEivwVzgi8jmN+LeWTPrJ7eoul+ZpqBl64pVi1hiSV5nEfytn39bsvNyAqtqJTh4 hFC+fx3Ez9l4Z4M6TaEsRc91Q73x7jb+7B3iCs8xSymE/xIwsm8pL6CN606eFfLUi/jwGB lunVVFVxHCXrzwszwajHQ69eQ+KVdHbO5EYJw2krG2+tikTNMPUQHloXUd4fAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244877 --- Comment #12 from Jan Beich --- (In reply to Ivan from comment #11) > ioctl(I915_GEM_USERPTR) failed. Try running as root but expect poor stabi= lity. Did you follow this advice (run the app as root)? The workaround in lang/intel-compute-runtime/files/patch-userptr implements a fallback via a feature that requires root. Without it running as root would have made no difference i.e., still failed. There's no workaround to avoid root. drm-kmod needs to implement CONFIG_MMU_NOTIFIER but that would be a "fix", not a "workaround". > Can you enlighten me, should I apply this patch or try something else? No. attachment 212502 is for Vulkan on Haswell, not OpenCL. Besides, intel-compute-runtime doesn't support Haswell. > Workstation uses Skylake CPU, which is rather modern (compared to Broadwe= ll), > so I suppose it shouldn't use userptr at all, isn't it? Applies to Vulkan except VK_EXT_external_memory_host. OpenCL in Intel NEO (compute-runtime) requires userptr, unlike Beignet where userptr was option= al for OpenCL 2.0. --=20 You are receiving this mail because: You are the assignee for the bug.=