From owner-freebsd-x11@FreeBSD.ORG Sat Apr 28 11:48:02 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D40C106566C for ; Sat, 28 Apr 2012 11:48:02 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id D7C238FC0A for ; Sat, 28 Apr 2012 11:48:01 +0000 (UTC) Received: by wibhj6 with SMTP id hj6so1127432wib.13 for ; Sat, 28 Apr 2012 04:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-operating-system :user-agent; bh=g8waI82Aj8+IywtfFdbYhpL38bpir2OWysdaHZB+FxM=; b=iQxyA41+ksC5SzuKZnYbX1Nr3yt+fNqFgdmjGVQlzCnjRfwMTNW62aZgTfv1dxMsqx X3VMW8i2sp3Wi3nBrPwFYq7ywXzomaoM5lKw0fu4oiW9dfOb5rohA83QHI+HVdSqwDDJ FVpX03cytSYYnJ6XxiS7UiTPdnkJtUFq4YhHH936tA3jovgnWkhsODY0MohTmqw5tRN3 vS/1WO7mffC0caiCUmuujukSlJS1JmyIAedDltAE7ggx12UfyZYVx7pZ9HY7xpr5uNgU wfgVcZuXWlxH4Q/e+bJ6bvlKslyx158VKkdGvYv9/8wFa7+KwLgEql6lvYreYGwVww7a J7bA== Received: by 10.180.95.74 with SMTP id di10mr9101763wib.1.1335613680752; Sat, 28 Apr 2012 04:48:00 -0700 (PDT) Received: from banach (69.Red-79-153-176.dynamicIP.rima-tde.net. [79.153.176.69]) by mx.google.com with ESMTPS id n20sm19187495wiw.5.2012.04.28.04.47.59 (version=SSLv3 cipher=OTHER); Sat, 28 Apr 2012 04:48:00 -0700 (PDT) Date: Sat, 28 Apr 2012 13:47:54 +0200 From: Jose Garcia Juanino To: Konstantin Belousov Message-ID: <20120428114752.GA2060@banach> 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline In-Reply-To: <20120428092320.GD2358@deviant.kiev.zoral.com.ua> X-Operating-System: FreeBSD 9.0-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) 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 11:48:02 -0000 --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable El s=E1bado 28 de abril a las 11:23:20 CEST, Konstantin Belousov escribi=F3: > 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 100%: > >=20 > > Apr 27 21:33:36 riemann kernel: [drm:KMS:pid0:output_poll_execute] [CON= NECTOR: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 wether > > 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 poor > > 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. 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: 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] cur= sor off I can contribute some additional data related to this issue: CPU issue appears when: 1- switching between windows 2- changing the focus (with the mouse or keyboard) 3- open a new window 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. 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. http://www.mipaginapersonal.movistar.es/web3/jjuanino/kdump.txt Regards --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk+b2OgACgkQFOo0zaS9RnISmgCcCaZNIXoPF2hEpJLAANHQDYaL W9AAn0zXvrarg2uQ3ej/IWwh04HyGoKZ =l4UR -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY--