From owner-freebsd-current@FreeBSD.ORG Mon May 4 22:32:04 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CBC2106564A; Mon, 4 May 2009 22:32:04 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (mailrelay.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id B5DB48FC1B; Mon, 4 May 2009 22:32:03 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 874161990E3; Tue, 5 May 2009 00:31:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 7B91B1990D4; Tue, 5 May 2009 00:31:49 +0200 (CEST) Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 66FB61990D2; Tue, 5 May 2009 00:31:49 +0200 (CEST) Received: from wep4035 ([132.187.37.35]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.0.2HF443) with ESMTP id 2009050500314851-2141 ; Tue, 5 May 2009 00:31:48 +0200 Received: by wep4035 (sSMTP sendmail emulation); Tue, 5 May 2009 00:31:48 +0200 Date: Tue, 5 May 2009 00:31:48 +0200 From: Alexey Shuvaev To: Robert Noland Message-ID: <20090504223148.GA1659@wep4035.physik.uni-wuerzburg.de> References: <20090504184027.GA19125@wep4035.physik.uni-wuerzburg.de> <1241463941.1788.31.camel@balrog.2hip.net> MIME-Version: 1.0 In-Reply-To: <1241463941.1788.31.camel@balrog.2hip.net> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.19 (2009-01-05) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.0.2HF443 | November 25, 2008) at 05/05/2009 12:31:48 AM, Serialize by Router on domino1/uni-wuerzburg(Release 8.0.2HF443 | November 25, 2008) at 05/05/2009 12:31:49 AM, Serialize complete at 05/05/2009 12:31:49 AM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Cc: freebsd-current@freebsd.org Subject: Re: intel graphics loosing msi interrupt on subsequent starts X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2009 22:32:04 -0000 On Mon, May 04, 2009 at 02:05:41PM -0500, Robert Noland wrote: > On Mon, 2009-05-04 at 20:40 +0200, Alexey Shuvaev wrote: > > Hello all! > > > > Sorry if it is already reported... > > > > I have recently upgaded X server from 1.4 to 1.6 > > (ports from ~23.01.2009 -> 03.05.2009). > > On the first start everything works ok (including [glx]gears). > > On the second and subsequent starts everything looks working but jerky, > > I need to move mouse around to get some windows redrawn, > > [glx]gears print warning message about not getting vblank interrupts > > and outputs something about 1-2 frames per 5 seconds. > > > > The inspectation with vmstat -i has shown that the card generates > > interrupts only during the first start of X server. > > > > If I set hw.pci.enable_msi="0" everything is working fine (start X server > > multiple times, switch consoles, [glx]gears, number of irq16-s > > is increasing, ...). > > irq16 is likely shared, so this may or may not be true... At least in > some cases, I was seeing the interrupt handler processing events when > some other device on the shared interrupt fired. Interrupts on Intel > have been a real pain. There is a drm specific tuneable for disabling > msi hw.drm.msi=0. I have a patch which I'm currently using on my g45 > that overhauls the way that we handle interrupts. > > http://people.freebsd.org/~rnoland/drm-intel-050209.patch > > Reports have been mixed with this, but it is working for me... > So far works for me too... irq256: vgapci0 7759 21 Thanks! :) Alexey.