Date: Sat, 28 Feb 2009 13:03:26 -0600 From: Robert Noland <rnoland@FreeBSD.org> To: Nasonov Sergey <SNasonov@BCC.RU> Cc: freebsd-current@freebsd.org Subject: RE: Interrupt stom on cardbus device Message-ID: <1235847806.1289.96.camel@widget.2hip.net> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-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: <Intel i965GM> 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 <rnoland@FreeBSD.org> > > > > 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 <rnoland@FreeBSD.org> > > FreeBSD --=20 Robert Noland <rnoland@FreeBSD.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1235847806.1289.96.camel>