From owner-freebsd-current@FreeBSD.ORG Tue Jan 20 07:55:22 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F0218909 for ; Tue, 20 Jan 2015 07:55:21 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id B325C3A4 for ; Tue, 20 Jan 2015 07:55:21 +0000 (UTC) Received: from [192.168.1.2] (Seawolf.HML3.ScaleEngine.net [209.51.186.28]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 2ACF48E3E4 for ; Tue, 20 Jan 2015 07:55:20 +0000 (UTC) Message-ID: <54BE09EF.1010407@freebsd.org> Date: Tue, 20 Jan 2015 02:55:27 -0500 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: i915 crash References: <54ACCBB3.1080906@freebsd.org> <20150107182314.GO42409@kib.kiev.ua> In-Reply-To: <20150107182314.GO42409@kib.kiev.ua> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ifvu7DGWNNPgxcE5ADRDAxO7lBKAqOvoJ" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2015 07:55:22 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Ifvu7DGWNNPgxcE5ADRDAxO7lBKAqOvoJ Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Very sorry, I didn't see your reply until Adrian's reply brought this thread back to the top of my email stack. On 2015-01-07 13:23, Konstantin Belousov wrote: > On Wed, Jan 07, 2015 at 01:01:23AM -0500, Allan Jude wrote: >> I grabbed the latest i915.8.patch from kib@'s website and compiled it >> against r276774 (today) >> >> Machine is a Lenovo T530, booted UEFI, with the nvidia GPU disabled. >> >> CPU: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz (2594.16-MHz K8-class CP= U) >> >> It is an Ivy-bridge CPU/GPU >> >> I installed xorg and kde, and when I try to start KDE, it loads, and >> gets so far as showing the FreeBSD wallpaper, then panics: >> >=20 > Is this reproducable ? Yes, every time I try to start KDE it panics. Verified 3 times in a row. >=20 > Try the following patch on top of i915.8. This patch fixes the panic. I can run KDE and enjoy all the graphical goodness. Thank you >=20 > commit 9af6c652745f551e2b6ce5218e350a5e47999feb > Author: Konstantin Belousov > Date: Wed Jan 7 20:21:46 2015 +0200 >=20 > Properly move object into gtt domain when needed. >=20 > diff --git a/sys/dev/drm2/i915/i915_gem.c b/sys/dev/drm2/i915/i915_gem.= c > index 0f72d08..58cbb59 100644 > --- a/sys/dev/drm2/i915/i915_gem.c > +++ b/sys/dev/drm2/i915/i915_gem.c > @@ -1251,7 +1251,7 @@ i915_gem_shmem_pread(struct drm_device *dev, > * optimizes for the case when the gpu will dirty the data > * anyway again before the next pread happens. */ > needs_clflush =3D !cpu_cache_is_coherent(dev, obj->cache_level); > - ret =3D i915_gem_object_wait_rendering(obj); > + ret =3D i915_gem_object_set_to_gtt_domain(obj, false); > if (ret) > return ret; > } > @@ -1579,7 +1579,7 @@ i915_gem_shmem_pwrite(struct drm_device *dev, > * optimizes for the case when the gpu will use the data > * right away and we therefore have to clflush anyway. */ > needs_clflush_after =3D cpu_write_needs_clflush(obj); > - ret =3D i915_gem_object_wait_rendering(obj); > + ret =3D i915_gem_object_set_to_gtt_domain(obj, true); > if (ret) > return ret; > } > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o= rg" >=20 --=20 Allan Jude --Ifvu7DGWNNPgxcE5ADRDAxO7lBKAqOvoJ 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.0.22 (MingW32) iQIcBAEBAgAGBQJUvgnyAAoJEJrBFpNRJZKftRIP/1I8qDHk+apB39/gnQrwdDb8 1u9SXyuSbcw1Gkq+sOxRb9tQVH+JGmqmob4eI9Qw2tCSY0ZtItWCt6pdkL/Y0ht+ EhlAnhE0X1t1u39yLBQeWs1OJ7m7CJBIhZ44qywyfR7NMPCMmvh3sZ23Cxe8SRu1 zQ0l5GtLa21zLmNHAzgM99GLkSCtgPVmi21GMwV+KbeM/wUwo2iKKkq+FapbWOJg Hkb9Vedjom0WkZOMj2d5wylA2ERBd4zeEkajmmIMnBm29utMgETHelZXLh5CkbWU Anl9OA82Xg+5oBlGTzyxlsfRIjcL4LAiy+lYdGVSa0AzyftT56/IOGNDiTuLh6si c7LTgc3ma7bz+U/Iaj2mnOf2F6L3fg3R3KIScNlTbVCh9sGaUnNyZ1jMnGX/IAd8 Su5ZPXu/58ruvyPbwG22Cipv7sf8PAHCM1pYtR3TlNht2HRMnapt+wM8HMlkV/80 c8DCbIBxEJQIsQlCf4WFKqgnye9t2Pr4P1QSitPl9lMRJ01AB+5OESoI4me3PAdx NROskvLy2GM3tEXjV1WCSxPqbsZtrowd0JH4dogTo+fmROAKHq7WjvZc+gKWiDxa rth8vXLEp18fzgwbpEG264eWcOWsC41gi7fi8H5jve/ljlks0nKqZDcem4u13W+q txQrFoAr1LKv2iFTLwNA =VkM2 -----END PGP SIGNATURE----- --Ifvu7DGWNNPgxcE5ADRDAxO7lBKAqOvoJ--