From owner-freebsd-current@FreeBSD.ORG Sat Feb 28 19:03:37 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 0332A1065670 for ; Sat, 28 Feb 2009 19:03:37 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id BB7058FC21 for ; Sat, 28 Feb 2009 19:03:36 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.1.2] (adsl-1-207-68.bna.bellsouth.net [65.1.207.68]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n1SJ2CXB036229 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Feb 2009 14:02:12 -0500 (EST) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Nasonov Sergey In-Reply-To: <597436B54F5FF74FA8EA7F3224FE251F12C69216@mail.bcc> 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> <597436B54F5FF74FA8EA7F3224FE251F12C69216@mail.bcc> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-BQg9PZICDBAYUJ5746kT" Organization: FreeBSD Date: Sat, 28 Feb 2009 13:03:26 -0600 Message-Id: <1235847806.1289.96.camel@widget.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.24.4 FreeBSD GNOME Team Port X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net 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 19:03:37 -0000 --=-BQg9PZICDBAYUJ5746kT Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2009-02-28 at 21:40 +0300, Nasonov Sergey wrote: >=20 > > -----Original Message----- > > From: Robert Noland [mailto:rnoland@FreeBSD.org] > > Sent: Saturday, February 28, 2009 8:50 PM > > To: Nasonov Sergey > > Cc: freebsd-current@freebsd.org > > Subject: RE: Interrupt stom on cardbus device > >=20 > > 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! > >=20 > > Can you confirm that: > >=20 > > 1. Interrupts are still working (the msi ones) >=20 > Yes, there is pciconf output: > > vmstat -i > interrupt total rate > irq1: atkbd0 1838 1 > irq9: acpi0 2117 1 > irq12: psm0 74850 58 > irq14: ata0 10143 7 > irq16: cbb0 uhci2+ 34852 27 > irq19: ehci1 2 0 > irq20: uhci0 13 0 > irq22: ehci0 2 0 > cpu0: timer 2570905 1999 > irq256: em0 19 0 > irq257: hdac0 28 0 > cpu1: timer 2569860 1998 > irq258: vgapci0 2523 1 > Total 5267152 4095 Ok, I'll wait for John to review this, but hopefully we can commit something like this next week. I think this is a case of a loose interpretation of the pci spec. It states that a device using MSI is prohibited from using INTx, but I'm guessing that at least some of the hardware guys felt that it was the drivers job to enforce that, while others do it in hardware. > and pciconf -lvc:=20 > vgapci0@pci0:0:2:0: class=3D0x030000 card=3D0x20b517aa chip=3D0x2a028= 086 > rev=3D0x0c hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D 'Mobile 965 Express Integrated Graphics Controller' > class =3D display > subclass =3D VGA > cap 05[90] =3D MSI supports 1 message > cap 01[d0] =3D powerspec 3 supports D0 D3 current D0 >=20 > And from console (output after start X server): >=20 > drm0: on vgapci0 > [drm:pid1408:drm_attach] MSI count =3D 1 > info: [drm] MSI enabled 1 message(s) > [drm:pid1408:drm_load]=20 > [drm:pid1408:drm_addmap] offset =3D 0xf8100000, size =3D 0x00100000, type= =3D > 1 > [drm:pid1408:drm_addmap] Added map 1 0xf8100000/0x100000 > [drm:pid1408:i915_init_phys_hws] Enabled hardware status page > [drm:pid1408:drm_vblank_init]=20 > vgapci0: child drm0 requested pci_enable_busmaster > [drm:pid1408:drm_agp_init] agp_available =3D 1 > info: [drm] AGP at 0xe0000000 256MB > [drm:pid1408:drm_ctxbitmap_next] drm_ctxbitmap_next bit : 0 > [drm:pid1408:drm_ctxbitmap_init] drm_ctxbitmap_init : 0 > info: [drm] Initialized i915 1.6.0 20080730 >=20 > > 2. Interrupts are still working for other devices on the shared INTx >=20 > Hmm, How to determine which device need to be checked? > Em0, hdac0 and ubsa0 modem work fine. =46rom the above vmstat output, it looks like you are still seeing interrupts on irq 16, which is where the storm was, so I think things are good. robert. >=20 >=20 > >=20 > > robert. > >=20 > > > Sergey. > > > > > > > > > > > > > > robert. > > > > > > > > Robert Noland > > > > FreeBSD > > > _______________________________________________ > > > freebsd-current@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > > To unsubscribe, send any mail to "freebsd-current- > > unsubscribe@freebsd.org" > > -- > > Robert Noland > > FreeBSD --=20 Robert Noland FreeBSD --=-BQg9PZICDBAYUJ5746kT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEABECAAYFAkmpin4ACgkQM4TrQ4qfROMPywCfZBsk/c9LGDPbkZpn4+Nnd1In aucAnRjKP52M50PppSpRNLsr6GNInCH/ =sgFv -----END PGP SIGNATURE----- --=-BQg9PZICDBAYUJ5746kT--