From owner-freebsd-x11@FreeBSD.ORG Sat Apr 28 12:02:46 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C7FC4106566B for ; Sat, 28 Apr 2012 12:02:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 625698FC1F for ; Sat, 28 Apr 2012 12:02:46 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q3SC2fPS060820; Sat, 28 Apr 2012 15:02:41 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q3SC2ec5092759; Sat, 28 Apr 2012 15:02:40 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q3SC2eKl092758; Sat, 28 Apr 2012 15:02:40 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 28 Apr 2012 15:02:40 +0300 From: Konstantin Belousov To: Jose Garcia Juanino Message-ID: <20120428120240.GI2358@deviant.kiev.zoral.com.ua> References: <20120424184459.GB2455@banach> <20120424194123.GC2358@deviant.kiev.zoral.com.ua> <20120424201526.GA2045@banach> <20120425053243.GF2358@deviant.kiev.zoral.com.ua> <20120426184933.GA2328@banach> <20120426190219.GU2358@deviant.kiev.zoral.com.ua> <20120427202548.GA2177@banach> <20120428092320.GD2358@deviant.kiev.zoral.com.ua> <20120428114752.GA2060@banach> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wdLwPLKTqJfXf/Ws" Content-Disposition: inline In-Reply-To: <20120428114752.GA2060@banach> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-x11@freebsd.org Subject: Re: Loading i915 module panics my system after patching with Intel GPU patch 14.4 for stable/9 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2012 12:02:46 -0000 --wdLwPLKTqJfXf/Ws Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 28, 2012 at 01:47:54PM +0200, Jose Garcia Juanino wrote: > El s?bado 28 de abril a las 11:23:20 CEST, Konstantin Belousov escribi?: > > On Fri, Apr 27, 2012 at 10:25:49PM +0200, Jose Garcia Juanino wrote: > > >=20 > > > In the meantime, I can see the following in syslog when the cpu is 10= 0%: > > >=20 > > > Apr 27 21:33:36 riemann kernel: [drm:KMS:pid0:output_poll_execute] [C= ONNECTOR:11:VGA-1] status updated from 2 to 2 > > > Apr 27 21:34:16 riemann last message repeated 4 times > > > Apr 27 21:36:16 riemann last message repeated 12 times > > >=20 > > >=20 > > > Well, that is everything I can contribute. I am unable to decide weth= er > > > this "weird" behavior is Xorg related or i915 kernel module related, = but > > > the scenario final (i915 kernel with KSM support plus recent Xorg) is > > > not functional nor usable. > > >=20 > > > Best regards, I appreciate your time and efforts, and sorry for my po= or > > > english. > >=20 > > Try to comment out the call to drm_kms_helper_poll_init(dev); at > > line 1032 of i915_dma.c. It might be that ddc reading consumes lots of > > CPU, lets see. >=20 > I have done that, and the previous messages have gone out in syslog, but > the CPU problem persists. Now, I get a lot of messages as these: >=20 > Apr 28 13:04:19 riemann kernel: [drm:KMS:pid1957:intel_crtc_cursor_set] > Apr 28 13:04:54 riemann kernel: [drm:KMS:pid1957:intel_crtc_cursor_set] > Apr 28 13:04:54 riemann kernel: [drm:KMS:pid1957:intel_crtc_cursor_set] c= ursor off >=20 > I can contribute some additional data related to this issue: CPU issue > appears when: >=20 > 1- switching between windows > 2- changing the focus (with the mouse or keyboard) > 3- open a new window >=20 > Indeed, It seems to be that CPU time of Xorg increases to 100% only when > the system has to redraw some window. But when I am typing in a terminal > or doing a heavy scroll (for example, recompiling the kernel or viewing > quickly a trace file) the system does *not* eat the CPU, and Xorg > process only consume about 2-4% of CPU. >=20 > Here you can see a ktrace taken while I had two overlapping terminals > and I was changing the focus between them. The first one ran top -qS and > I could see how Xorg process took the 100% while Xorg was redrawn the > border of the other window. After that redrawn was done, CPU dropped at > 0% again. >=20 > http://www.mipaginapersonal.movistar.es/web3/jjuanino/kdump.txt You have kms debugging enabled. Try to set sysctl hw.dri.debug to 0, after the X server started. --wdLwPLKTqJfXf/Ws Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk+b3GAACgkQC3+MBN1Mb4hiDgCghr++hemtbCd/1YGAGgUinNbH ZVMAoJFKl3pN1IaJcTWWLp5GpuBDwNgx =Ch4z -----END PGP SIGNATURE----- --wdLwPLKTqJfXf/Ws--