From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 21 23:00:24 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA1361065673 for ; Tue, 21 Dec 2010 23:00:24 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C124C8FC5F for ; Tue, 21 Dec 2010 23:00:21 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oBLN0L6m069396 for ; Tue, 21 Dec 2010 23:00:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oBLN0LXZ069371; Tue, 21 Dec 2010 23:00:21 GMT (envelope-from gnats) Resent-Date: Tue, 21 Dec 2010 23:00:21 GMT Resent-Message-Id: <201012212300.oBLN0LXZ069371@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Imanol Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 107BD1065670 for ; Tue, 21 Dec 2010 22:57:20 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 0040B8FC08 for ; Tue, 21 Dec 2010 22:57:20 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oBLMvJ1Y054235 for ; Tue, 21 Dec 2010 22:57:19 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id oBLMvJJo054234; Tue, 21 Dec 2010 22:57:19 GMT (envelope-from nobody) Message-Id: <201012212257.oBLMvJJo054234@red.freebsd.org> Date: Tue, 21 Dec 2010 22:57:19 GMT From: Imanol To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/153358: Intel driver freeze with Xorg 7.5 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Dec 2010 23:00:24 -0000 >Number: 153358 >Category: misc >Synopsis: Intel driver freeze with Xorg 7.5 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 21 23:00:21 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Imanol >Release: 8.1-CURRENT >Organization: >Environment: FreeBSD daemon 8.1-RELEASE FreeBSD 8.1-RELEASE #3: Fri Dec 10 19:40:42 CET 2010 root@daemon:/usr/obj/usr/src/sys/VESAKERN i386 >Description: Intel driver crashes whole system with new Xorg 7.5. I've tried the ports version, currently 2.7.1_3 and previous ones, even original, non-ported versions, and all of them crash the system. The computer just stops responding, keyboard is non-responsive, SSH connections are closed, and pretty much everything else. Xorg log is empty, adding an option in xorg.conf to sync the log makes some output on it, but no errors are shown. I do believe it only happens with 83X and 85X chipsets. Reason is explained in "How to fix the problem" >How-To-Repeat: Install Xorg and xf86-video-intel from ports or packages, or compile it manually Then try to start X server via: xinit,Xorg,xdm or anything Crash happens >Fix: There are 2 workarounds: Use vesa driver, which I find unnacceptable The other one, which was revealed to me after building Xorg with debug support, is to comment out the following part of one of the files in the intel driver port: the file is /usr/ports/x11-drivers/xf86-video-intel/work/xf86-video-intel-2.7.1/src/ LINE 1942: /*for (i = 0; i < 256; i++) { OUTREG(palreg + 4 * i, (intel_crtc->lut_r[i] << 16) | (intel_crtc->lut_g[i] << 8) | intel_crtc->lut_b[i]); }*/ that's the commented part, it fixes the issue, as it seems that when i=2, the whole system freezes. I'm running the driver with the patch applied and there are no issues at all >Release-Note: >Audit-Trail: >Unformatted: