From owner-freebsd-x11@freebsd.org Tue Oct 20 01:21:58 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 B40F843BC5F for ; Tue, 20 Oct 2020 01:21:58 +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 4CFbSk4QSmz4SFl for ; Tue, 20 Oct 2020 01:21:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 97BAA43B7EC; Tue, 20 Oct 2020 01:21:58 +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 9784043BC5C for ; Tue, 20 Oct 2020 01:21:58 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CFbSk3Ywxz4S4S for ; Tue, 20 Oct 2020 01:21:58 +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 5DBC3CE4C for ; Tue, 20 Oct 2020 01:21:58 +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 09K1Lw4w035034 for ; Tue, 20 Oct 2020 01:21:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 09K1Lwtk035033 for x11@FreeBSD.org; Tue, 20 Oct 2020 01:21:58 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 250307] graphics/mesa-dri: iris_dri.so is missing Date: Tue, 20 Oct 2020 01:21:57 +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: needs-patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jkim@FreeBSD.org X-Bugzilla-Status: New 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 MIME-Version: 1.0 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2020 01:21:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250307 --- Comment #8 from Jung-uk Kim --- It's little off-topic but I was not able to use SNA with iris. It always failed with "(WW) intel(0): Detected unsupported/dysfunctional hardware, disabling acceleration." in the log file. I did some debugging and found it always failed at test_has_execbuffer2() function although we've been suppor= ting DRM_IOCTL_I915_GEM_EXECBUFFER2 ioctl for many years. IIRC, it was supported even in drm2 days. As a work-around, commenting out the test function let me enable SNA successfully, i.e., Index: x11-drivers/xf86-video-intel/files/patch-src_sna_kgem.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- x11-drivers/xf86-video-intel/files/patch-src_sna_kgem.c (nonexisten= t) +++ x11-drivers/xf86-video-intel/files/patch-src_sna_kgem.c (working co= py) @@ -0,0 +1,29 @@ +--- src/sna/kgem.c.orig 2020-05-15 16:56:58 UTC ++++ src/sna/kgem.c +@@ -1186,6 +1186,7 @@ static int gem_param(struct kgem *kgem, int name) + return v; + } +=20 ++#ifndef __FreeBSD__ + static bool test_has_execbuffer2(struct kgem *kgem) + { + struct drm_i915_gem_execbuffer2 execbuf; +@@ -1197,6 +1198,7 @@ static bool test_has_execbuffer2(struct kgem *kgem) + DRM_IOCTL_I915_GEM_EXECBUFFER2, + &execbuf) =3D=3D -EFAULT; + } ++#endif +=20 + static bool test_has_no_reloc(struct kgem *kgem) + { +@@ -1252,8 +1254,10 @@ static bool is_hw_supported(struct kgem *kgem, + if (DBG_NO_HW) + return false; +=20 ++#ifndef __FreeBSD__ + if (!test_has_execbuffer2(kgem)) + return false; ++#endif +=20 + if (kgem->gen =3D=3D (unsigned)-1) /* unknown chipset, assume futur= e gen */ + return kgem->has_blt; In fact, I've been using this for few weeks now without a problem. My gues= s is the ioctl wrapper do_ioctl() isn't working for our ioctl handler. --=20 You are receiving this mail because: You are the assignee for the bug.=