Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2015 02:55:27 -0500
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: i915 crash
Message-ID:  <54BE09EF.1010407@freebsd.org>
In-Reply-To: <20150107182314.GO42409@kib.kiev.ua>
References:  <54ACCBB3.1080906@freebsd.org> <20150107182314.GO42409@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <kib@freebsd.org>
> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54BE09EF.1010407>