From: Stefan Roas Subject: i915 error hangcheck timer elapsed Date: Sun, 2 Dec 2012 16:34:05 +0100 Message-ID: <20121202153404.GA3290@alkes.roas.networks.roath.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0175880688==" Return-path: Received: from mail.roath.org (roath.org [178.63.99.198]) by gabe.freedesktop.org (Postfix) with ESMTP id 6B0C4E5CD2 for ; Sun, 2 Dec 2012 07:42:12 -0800 (PST) Received: from diphda.roas.networks.roath.org (p5B08917F.dip.t-dialin.net [91.8.145.127]) by mail.roath.org (Postfix) with ESMTPSA id 3904DE420 for ; Sun, 2 Dec 2012 16:34:10 +0100 (CET) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0175880688== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi there, I've been experiencing X.org hangups for a few month (cannot remember when = exactly it started) that are related to the i915 driver. demsg output when the hangup occurs is always the following: [drm:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung [drm:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung [drm:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung [drm:i915_reset] *ERROR* GPU hanging too fast, declaring wedged! [drm:i915_reset] *ERROR* Failed to reset chip. System Information: Dell Latitude E5500=20 Debian stable with vanilla 3.6.8 kernel lspci -vv output for the graphic card is: 00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipse= t Integrated Graphics Controller (rev 07) (prog-if 00 [VGA controller]) Subsystem: Dell Device 0263 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-= Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=3Dfast >TAbort- SERR- [disabled] Capabilities: [90] MSI: Enable+ Count=3D1/1 Maskable- 64bit- Address: fee0300c Data: 4122 Capabilities: [d0] Power Management version 3 Flags: PMEClk- DSI+ D1- D2- AuxCurrent=3D0mA PME(D0-,D1-,D2= -,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=3D0 DScale=3D0 PME- Kernel driver in use: i915 During the time I lived with the hangup happening, I realized a rather reli= able way of reproducing the problem. Which would be to boot up and log into a graphical session, then wait for a few minutes (could run pretty much every program except firefox or a movie player), finally firing up either firefox or mpla= yer and I got the hang. As I had some spare time on my hands this weekend and a pretty reliable way of reproducing the problem i gave git bisect a try nailing down the commit that broke i915 for me. It came up with commit dabdfe021ab1e985e6566009c774fb03f14b568e Author: Chris Wilson Date: Mon Mar 26 10:10:27 2012 +0200 drm/i915: Avoid using mappable space for relocation processing through = the CPU =20 We try to avoid writing the relocations through the uncached GTT, if the buffer is currently in the CPU write domain and so will be flushed out = to main memory afterwards anyway. Also on SandyBridge we can safely write to the pages in cacheable memory, so long as the buffer is LLC mapped. In either of these cases, we therefore do not need to force the reallocation of the buffer into the mappable region of the GTT, reducing the aperture pressure. =20 Signed-off-by: Chris Wilson Reviewed-by: Daniel Vetter Signed-off-by: Daniel Vetter as the culprit. I've undone that commit on 3.6.8 and couldn't reproduce the problem since t= hen. Unfortunately I know close to nothing about graphic cards or drm, so I'm not sure that just undoing those changes is the right thing to do, but I hope it helps you to come up with the right(tm) solution. If you need any additional information or me testing some more suitable fix, let me now. Best regards, Stefan --=20 Stefan Roas sroas@roath.org Joh.-Seb.-Bach-Str. 4 D-91083 Baiersdorf ------------------------------------------------------------------- Key fingerprint =3D 557C 99BE 865B 1463 2A44 7936 C662 8970 4DA5 50B8 --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCgAGBQJQu3TsAAoJEMZiiXBNpVC4b/QP/1A9JxFqD5L6Gp665p98B65B SjYC/CD0jUQGcNyJdsF+r/LZCQiETzLVyPkGs3wEK7cccmrQxHHgmIijd+gZnp4I 051RKwl+idXjpasQkqL0Oi2hQsfNa7wV7woMV3n0/WlXF84uRzgQbyuvyXR1iu2A 8qYdJ2wKCd2PRUoSSq+cpf938AnCsHnqrDU66Af6Z7ZHf5if0eaqQZZVIbn5eA95 uAjvzjh58peFcqtJUIm7kd7sxyt5DtkYg3TBBn8bx9wVuJ+QoOc5P9d+kGmgHCoQ 9ivuYm9CewPvauJ2/hRubXPhLXL2THMqJju2EjVO8Hy0oD8nzUQ2BNAyBjGTO+tV w85AF8qCO35sC4S2Hwi9QMlVG+ObfSqCvazT5hnp6sOpakh1M0PDzOrdbTMpS/6X gG2ROmKk5/vIrtD8/33x9+4M0W2LmUga+4qL2xUYys6j9ne7izP3UMETEfmCPC11 frcALmAf5DKX1FrFyo4DtN2nOgEktJB8ylQu44Zme3JhgG5FuE5BvqTKGwj2aQz/ qCi87Unl7H1/baFei1uqlIkqeo12ZfNIZmdGjnTApLA9OaBNTLZt9/LxWeSoLs6f soteZ0dUEYWhbQf9c8H0qj3X1z4oSuUfVEzxrssQe6PqlRwxstv8/IwrqLgKZ4+H IeAgZGWjAubAoLbevOfA =xd6P -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE-- --===============0175880688== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0175880688==--