From owner-freebsd-x11@freebsd.org Sun Jun 18 21:06:41 2017 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6A9BAD8E819 for ; Sun, 18 Jun 2017 21:06:41 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from mail.kapsi.fi (mail.kapsi.fi [IPv6:2001:1bc8:1004::1:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 22EB67CCD6 for ; Sun, 18 Jun 2017 21:06:41 +0000 (UTC) (envelope-from isoa@kapsi.fi) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject; bh=7KhSEtbAsW3Z6FKwfdw1fYOiTQTv0A+LOGLVxGO/47E=; b=BXXabGkjGBo/65HbHpJPLzPmC+ICHDu7sTPC5TPKMJGYwngkK/hI7fE3hSi3/IlBJMf/vnZ+VEWKipGrKUlX1MRb9Vh5MjmrIkJEMA7KIKb+9OqmkOHOscQ4sm+xK2dRoaxb8tbUcdx03zr7Chj6BVKBtCgYiChElhX/9e/NiD69WsAtcSkYQLZwLC+YX1JBLim/luoA/esviHL9xj2K7mVukfVpKuFthm7CAWdQnAkTH8SVsDKLXU7/L8rWQrjpQk61urWMdKkEFsVX5Zz1WxUcwlD+I7iPj+ppanuUS72l0qVm6jRHfZ3oy8MLcNPlu0GMht1uuigvHMeluESVsQ==; Received: from dsl-jklbng11-54fa5a-207.dhcp.inet.fi ([84.250.90.207] helo=[192.168.255.112]) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dMhP3-000179-Ow for freebsd-x11@freebsd.org; Mon, 19 Jun 2017 00:06:37 +0300 Subject: Re: Lost HW OpenGL on intel To: freebsd-x11@freebsd.org References: From: Arto Pekkanen Message-ID: <96c3793b-6c87-8acc-e196-504a3e422875@kapsi.fi> Date: Mon, 19 Jun 2017 00:06:31 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rd8adKwE9RSBKp7t1nTGcQg3pp9u9fvqD" X-SA-Exim-Connect-IP: 84.250.90.207 X-SA-Exim-Mail-From: isoa@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2017 21:06:41 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rd8adKwE9RSBKp7t1nTGcQg3pp9u9fvqD Content-Type: multipart/mixed; boundary="OTjLQhBnoxDHUg19DSk6hH9gBdiGDjqjf"; protected-headers="v1" From: Arto Pekkanen To: freebsd-x11@freebsd.org Message-ID: <96c3793b-6c87-8acc-e196-504a3e422875@kapsi.fi> Subject: Re: Lost HW OpenGL on intel References: In-Reply-To: --OTjLQhBnoxDHUg19DSk6hH9gBdiGDjqjf Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Okay, so you just gotta wait until the review has been done and Mesa updated to 17.1.2? On 17.6.2017 20:15, Bengt Ahlgren wrote: > For the record: applying the patch for intel_screen.c from > https://reviews.freebsd.org/D11148 to graphics/mesa-dri also works for > the current Mesa 17.1.1, i.e., restores HW OpenGL for intel graphics on= > 10.x. >=20 > Bengt >=20 > Bengt Ahlgren writes: >=20 >> Bengt Ahlgren writes: >> >>> Bengt Ahlgren writes: >>> >>>> HW OpenGL stopped working for me - I think it was after the last mes= a >>>> update (17.1.1). This is with 10.3-STABLE (r316723) and intel ironl= ake >>>> graphics. >>>> >>>> Xorg log says: >>>> >>>> [ 18.061] (II) intel(0): DRI2: Enabled >>>> [ 18.061] (II) intel(0): DRI3: Disabled >>>> [ 18.069] (--) RandR disabled >>>> [ 18.110] (EE) AIGLX error: Calling driver entry point failed >>>> [ 18.111] (EE) AIGLX: reverting to software rendering >>>> [ 18.470] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer >>>> [ 18.471] (II) AIGLX: Loaded and initialized swrast >>>> [ 18.471] (II) GLX: Initialized DRISWRAST GL provider for screen = 0 >>>> >>>> I have these packages: >>>> >>>> mesa-dri-17.1.1 OpenGL hardware acceleration drivers = for DRI2+ >>>> mesa-libs-17.1.1 OpenGL libraries that support GLX and EGL clients >>>> xf86-video-intel-2.99.917.20170228_1 Driver for Intel integrated >>>> graphics chipsets >>>> xorg-server-1.18.4_1,1 X.Org X server and related programs >>>> >>>> Any advice? >>> >>> Some more information about this system: >>> >>> * Lenovo X201 with Core i7 M620 >>> * "Intel(R) HD Graphics" (Ironlake - fifth gen): >>> >>> vgapci0@pci0:0:2:0: class=3D0x030000 card=3D0x215a17aa chip=3D0x0= 0468086 rev=3D0x02 hdr=3D0x00 >>> vendor =3D 'Intel Corporation' >>> device =3D 'Core Processor Integrated Graphics Controller' >>> class =3D display >>> subclass =3D VGA >>> bar [10] =3D type Memory, range 64, base 0xf2000000, size 41943= 04, enabled >>> bar [18] =3D type Prefetchable Memory, range 64, base 0xd000000= 0, size 268435456, enabled >>> bar [20] =3D type I/O Port, range 32, base 0x1800, size 8, enab= led >>> cap 05[90] =3D MSI supports 1 message enabled with 1 message >>> cap 01[d0] =3D powerspec 2 supports D0 D3 current D0 >>> cap 13[a4] =3D PCI Advanced Features: FLR TP >>> >>> * no xorg.conf - xorg selects intel driver >>> * i915kms.ko is loaded when Xorg starts (but it >>> does not make any difference if it's loaded from /boot/loader.conf)= >>> * VT console (kern.vty=3D"vt" in loader.conf) >>> >>> I'd be happy to provide more information and do some debugging, but w= ill >>> need instructions. >> >> I got a lead by running: >> >> $ LIBGL_DEBUG=3Dverbose glinfo|more >> libGL: OpenDriver: trying /usr/local/lib/dri/i965_dri.so >> [intel_init_bufmgr: 1317] Kernel 3.6 required. >> libGL error: failed to create dri screen >> libGL error: failed to load driver: i965 >> >> Looking into that function (intel_init_bufmgr() in port graphics/libdr= m, >> mesa-17.1.1/src/mesa/drivers/dri/i965/intel_screen.c) reveals that it >> tries this: >> >> if (!intel_get_boolean(screen, I915_PARAM_HAS_WAIT_TIMEOUT)) { >> fprintf(stderr, "[%s: %u] Kernel 3.6 required.\n", __func__, __L= INE__); >> return false; >> } >> >> But, I915_PARAM_HAS_WAIT_TIMEOUT does not exist on 10.x! >> >> It is missing in src/sys/dev/drm2/i915/i915_drm.h, so it fails, and >> resorts to sw rendering. >> >> Bengt > _______________________________________________ > freebsd-x11@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" >=20 --=20 Arto Pekkanen --OTjLQhBnoxDHUg19DSk6hH9gBdiGDjqjf-- --rd8adKwE9RSBKp7t1nTGcQg3pp9u9fvqD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAllG61oACgkQTBivhqtJa27qawD/WfvSwQ8wDJZKIi33ZUigFC/k 6Oipckkf0lzdlC4b5GUA/A8FdbsN8y18nDhJ0I9Tg4rJkeyEQAWJura3/ay9KKMS =9+au -----END PGP SIGNATURE----- --rd8adKwE9RSBKp7t1nTGcQg3pp9u9fvqD--