From owner-freebsd-x11@freebsd.org Mon Oct 12 20:39:58 2015 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 221C4A11F19 for ; Mon, 12 Oct 2015 20:39:58 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from mail.kapsi.fi (mx1.kapsi.fi [IPv6:2001:1bc8:1004::1:25]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DAC9E947 for ; Mon, 12 Oct 2015 20:39:57 +0000 (UTC) (envelope-from isoa@kapsi.fi) Received: from karviainen.kapsi.fi ([217.30.184.182] helo=roundcube.kapsi.fi) by mail.kapsi.fi with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Zljsv-0003FS-VB for freebsd-x11@freebsd.org; Mon, 12 Oct 2015 23:39:54 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 12 Oct 2015 23:39:53 +0300 From: Arto Pekkanen To: freebsd-x11@freebsd.org Message-ID: X-Sender: isoa@kapsi.fi User-Agent: RoundCube Webmail/0.9.4 X-SA-Exim-Connect-IP: 217.30.184.182 X-SA-Exim-Mail-From: isoa@kapsi.fi X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 Subject: i915kms temporary hang and screen freeze while playing games/openarena X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mail.kapsi.fi) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Oct 2015 20:39:58 -0000 While playing games/openarena, sometimes the screen freezes for a few seconds, and I get the following error in dmesg: error: [drm:pid12:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed... blitter ring idle I wanted to make a PR with useful dmesg output, so I enabled DRM2 debug output with drm.debug=2 in /boot/loader.conf and rebooted. But after I enabled the drm.debug=2 the game does not seem freeze anymore, and there are no errors in dmesg. I cannot reproduce the issue with drm.debug=2. Perhaps the debug mode somehow keeps the "blitter ring" running so that the hangcheck timer never elapses. Anyway, I've no idea how this DRM2 stuff works. However, I assume that this "blitter ring" is some thread that feeds the GPU with data to render (blit) onto screen. If the hangcheck timer elapses, that would mean that the "blitter ring" thread was sleeping (ie. not feeding data to GPU) even if there was data queued, the timed hangcheck detected this and woke up the thread. This is just an assumption made merely with grammatical analysis and total ignorance of the actual facts. # uname -a FreeBSD leno 10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 Hardware: Thinkpad T430, dual-core Intel i5 (4 threads), Ivy Bridge, Intel HD4000 -GPU Is there anything I could do to help get this bug corrected? -- Arto Pekkanen