From owner-freebsd-current@FreeBSD.ORG Sat Feb 28 21:55:39 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 C08A4106564A; Sat, 28 Feb 2009 21:55:39 +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 455928FC13; Sat, 28 Feb 2009 21:55:39 +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 BF772A07DB; Sat, 28 Feb 2009 22:55:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id B3682A07CE; Sat, 28 Feb 2009 22:55:37 +0100 (CET) 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 95852A0711; Sat, 28 Feb 2009 22:55:37 +0100 (CET) Received: from wep4035 ([132.187.37.35]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.0.2HF443) with ESMTP id 2009022822553669-32908 ; Sat, 28 Feb 2009 22:55:36 +0100 Received: by wep4035 (sSMTP sendmail emulation); Sat, 28 Feb 2009 22:55:36 +0100 From: "Alexey Shuvaev" Date: Sat, 28 Feb 2009 22:55:36 +0100 To: Robert Noland Message-ID: <20090228215536.GA1625@wep4035.physik.uni-wuerzburg.de> References: <200902271730.07660.snasonov@bcc.ru> <200902271208.48212.jhb@freebsd.org> <1235760629.1289.51.camel@widget.2hip.net> <200902271403.46828.jhb@freebsd.org> <597436B54F5FF74FA8EA7F3224FE251F12C69213@mail.bcc> <1235778229.1289.60.camel@widget.2hip.net> <597436B54F5FF74FA8EA7F3224FE251F12C69214@mail.bcc> <1235839108.1289.72.camel@widget.2hip.net> <597436B54F5FF74FA8EA7F3224FE251F12C69215@mail.bcc> <1235843413.1289.92.camel@widget.2hip.net> MIME-Version: 1.0 In-Reply-To: <1235843413.1289.92.camel@widget.2hip.net> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.18 (2008-05-17) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.0.2HF443 | November 25, 2008) at 02/28/2009 10:55:36 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.0.2HF443 | November 25, 2008) at 02/28/2009 10:55:37 PM, Serialize complete at 02/28/2009 10:55:37 PM 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: Interrupt stom on cardbus device 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: Sat, 28 Feb 2009 21:55:40 -0000 On Sat, Feb 28, 2009 at 11:50:13AM -0600, Robert Noland wrote: > On Sat, 2009-02-28 at 20:38 +0300, Nasonov Sergey wrote: > > > Hrm, the intel driver is very noisy. If the problem really is INTx, > > > then the drm debugging won't know anything about that. Could you try > > > that patch that I posted later, without this patch to i915. I've > > looked > > > over the linux pci code and they do disable INTx when enabling MSI. > > > > > > I stuck the patch up as > > > http://people.freebsd.org/~rnoland/pci_disable_intx.patch > > > > Great! After applying this patch the problem was resolved. Switch to VT > > an then back to X11 now work fine. Thanks! > > Can you confirm that: > > 1. Interrupts are still working (the msi ones) > 2. Interrupts are still working for other devices on the shared INTx > Yes (me too). I haven't noticed that (no console message 'interrupt storm', perhaps the system is too fast :). vgapci0@pci0:0:2:0: class=0x030000 card=0x82761043 chip=0x29c28086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '(Bearlake) Integrated Graphics Controller' class = display subclass = VGA vmstat -i with: ~> uname -a FreeBSD wep4035 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Sat Feb 28 22:23:23 CET 2009 root@wep4035:/usr/obj/usr/src/sys/GENERIC amd64 interrupt total rate irq1: atkbd0 35447 0 irq6: fdc0 1 0 irq16: uhci0+ 1286979669 13345 irq18: uhci2 ehci* 46833 0 irq20: fwohci0 2 0 irq22: atapci1 835480 8 cpu0: timer 192790855 1999 irq256: vgapci0 125358 1 irq257: hdac0 38 0 irq258: mskc0 1728607 17 cpu1: timer 192779996 1999 Total 1675322286 17372 vmstat -i with the same sources and your patch: interrupt total rate irq1: atkbd0 505 3 irq6: fdc0 1 0 irq16: uhci0+ 12191 72 irq18: uhci2 ehci* 837 4 irq20: fwohci0 2 0 irq22: atapci1 2410 14 cpu0: timer 334089 1988 irq256: vgapci0 2064 12 irq257: hdac0 39 0 irq258: mskc0 103 0 cpu1: timer 324595 1932 Total 676836 4028 Thanks! Alexey.