Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2009 03:31:24 +0300
From:      "Marat N.Afanasyev" <amarat@ksu.ru>
To:        freebsd-stable@freebsd.org
Subject:   interrupt storm and usb issue on ati ixp600 based board
Message-ID:  <496D325C.2020702@ksu.ru>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------060902040207000504050602
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit

I have two troubles with my freshly upgraded system. There are interrupt 
storm and usb issues on MSI K9A2 CF motherboard. it made of on amd 790X 
north-bridge and and SB600 south-bridge.

As stated in [1] there is a problem with storms on re or atapci devices,
but my experience shows that this storms are not bound to re or ixp600 
atapci only. I can say that i have such storms on almost any of my 
devices. whether it sound-card, ata-device, scsi or network. any device 
  that is used intensively can trigger this storm issue, e.g. playing 
music via audacious can trigger storm in about random() hours after 
fresh boot either cold or warm (i tried both built in hda that shares 
irq with ohci0 and standalone sblive! with its own interrupt), moving 
large files from one physical drive to another, etc.

I've tried to turn off msi and msix setting

hw.pci.enable_msix="0"
hw.pci.enable_msi="0"

in /boot/loader.conf

interrupt storm arrived in about 27 hours. and it was on pcm0 (snd_hda)

So, can this be hardware or software problem? can it be fixed by some
workaround?

and finally I've updated to 7.1-S. the same story.

temporary workaround for interrupt storm issue is to wait until storm 
arrive on any device (emu10kx0 in this case, because of its own high 
interrupt rate) and work pretending to believe that nothing is wrong.

second issue is neither 7.0 nor 7.1 refuse to detect in run-time any usb 
device that plugged into external USB HUB, I have two of them, first is 
on card-reader, second is in my monitor. devices plugged to these hubs 
before system boot are detected, but device plugged after boot -- they 
never appear in system, they silently ignored.

so, what should i do? :)

[1]
http://lists.freebsd.org/pipermail/freebsd-stable/2008-December/047010.html

[2] fresh boot vmstat:

% vmstat -i
interrupt                          total       rate
irq1: atkbd0                       12524          1
irq9: acpi0                            1          0
irq12: psm0                      1173440        107
irq14: ata0                          143          0
irq16: hdac0 ohci0                541673         49
irq17: ohci1 ohci3                     1          0
irq18: ohci2 ohci+                    45          0
irq19: ehci0                         259          0
irq21: emu10kx0               1137863753     103762
irq22: atapci0                    210431         19
cpu0: timer                     21929877       1999
irq256: re0                        94789          8
cpu1: timer                     21927861       1999
Total                         1183754797     107947

[3] % uptime
  3:15  up  3:03, 2 users, load averages: 0,60 0,47 0,63

[4] dmesg attached

-- 
SY, Marat

--------------060902040207000504050602
Content-Type: text/plain;
 name="dmesg.boot"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="dmesg.boot"

interrupt storm detected on "irq21::irq21: emu10kx0"; throttling interrupt source
interrupt storm detected on "irq21::irq21: emu10kx0"; throttling interrupt source
interrupt storm detected on "irq21::irq21: emu10kx0"; throttling interrupt source
interrupt storm detected on "irq21::irq21: emu10kx0"; throttling interrupt source
interrupt storm detected on "irq21::irq21: emu10kx0"; throttling interrupt source
interrupt storm detected on "irq21::irq21: emu10kx0"; throttling interrupt source
interrupt storm detected on "irq21::irq21: emu10kx0"; throttling interrupt source
interrupt storm detected on "irq21::irq21: emu10kx0"; throttling interrupt source
info: [drm] wait for fifo failed status : 0x9803C100 0x00050000
interrupt storm detected on "irq21::irq21: emu10kx0"; throttling interrupt source
interrupt storm detected on "irq21::irq21: emu10kx0"; throttling interrupt source
interrupt storm detected on "irq21::irq21: emu10kx0"; throttling interrupt source
interrupt storm detected on "irq21::irq21: emu10kx0"; throttling interrupt source
info: [drm] Num pipes: 1
Waiting (max 60 seconds) for system process `vnlru' to stop...done
Waiting (max 60 seconds) for system process `bufdaemon' to stop...done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining...6 3 6 6 0 1 1 0 0 0 done
All buffers synced.
Uptime: 3d22h21m34s
Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.1-STABLE #0: Tue Jan 13 23:43:59 MSK 2009
    root@zealot.ksu.ru:/usr/obj/usr/src/sys/ZEALOT
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) Dual Core Processor 4850e (2500.19-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x60fb2  Stepping = 2
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x11f<LAHF,CMP,SVM,ExtAPIC,CR8,Prefetch>
  Cores per package: 2
usable memory = 4285845504 (4087 MB)
avail memory  = 4124442624 (3933 MB)
ACPI APIC Table: <061208 APIC1106>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0 <Version 2.1> irqs 0-23 on motherboard
netsmb_dev: loaded
acpi0: <061208 RSDT1106> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of ffb80000, 80000 (3) failed
acpi0: reservation of fff00000, 100000 (3) failed
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, cff00000 (3) failed
ACPI HPET table warning: Sequence is non-zero (2)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 2.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xc000-0xc0ff mem 0xd0000000-0xdfffffff,0xfeaf0000-0xfeafffff irq 18 at device 0.0 on pci1
drm0: <ATI Radeon X1600> on vgapci0
vgapci0: child drm0 requested pci_enable_busmaster
info: [drm] Initialized radeon 1.29.0 20080613
vgapci1: <VGA-compatible display> mem 0xfeae0000-0xfeaeffff at device 0.1 on pci1
pcib2: <ACPI PCI-PCI bridge> at device 6.0 on pci0
pci2: <ACPI PCI bus> on pcib2
re0: <RealTek 8168/8168B/8168C/8168CP/8168D/8111B/8111C/8111CP PCIe Gigabit Ethernet> port 0xd800-0xd8ff mem 0xfebff000-0xfebfffff irq 18 at device 0.0 on pci2
re0: Using 2 MSI messages
re0: Chip rev. 0x38000000
re0: MAC rev. 0x00000000
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0
rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
re0: Ethernet address: 00:1d:92:da:0c:b0
re0: [FILTER]
re0: [FILTER]
atapci0: <ATI IXP600 SATA300 controller> port 0xb000-0xb007,0xa000-0xa003,0x9000-0x9007,0x8000-0x8003,0x7000-0x700f mem 0xfe9ff800-0xfe9ffbff irq 22 at device 18.0 on pci0
atapci0: [ITHREAD]
atapci0: AHCI Version 01.10 controller with 4 ports detected
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
ata4: <ATA channel 2> on atapci0
ata4: [ITHREAD]
ata5: <ATA channel 3> on atapci0
ata5: [ITHREAD]
ohci0: <OHCI (generic) USB controller> mem 0xfe9fe000-0xfe9fefff irq 16 at device 19.0 on pci0
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
ohci1: <OHCI (generic) USB controller> mem 0xfe9fd000-0xfe9fdfff irq 17 at device 19.1 on pci0
ohci1: [GIANT-LOCKED]
ohci1: [ITHREAD]
usb1: OHCI version 1.0, legacy support
usb1: SMM does not respond, resetting
usb1: <OHCI (generic) USB controller> on ohci1
usb1: USB revision 1.0
uhub1: <ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
ohci2: <OHCI (generic) USB controller> mem 0xfe9fc000-0xfe9fcfff irq 18 at device 19.2 on pci0
ohci2: [GIANT-LOCKED]
ohci2: [ITHREAD]
usb2: OHCI version 1.0, legacy support
usb2: SMM does not respond, resetting
usb2: <OHCI (generic) USB controller> on ohci2
usb2: USB revision 1.0
uhub2: <ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
ohci3: <OHCI (generic) USB controller> mem 0xfe9fb000-0xfe9fbfff irq 17 at device 19.3 on pci0
ohci3: [GIANT-LOCKED]
ohci3: [ITHREAD]
usb3: OHCI version 1.0, legacy support
usb3: SMM does not respond, resetting
usb3: <OHCI (generic) USB controller> on ohci3
usb3: USB revision 1.0
uhub3: <ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
uhub3: 2 ports with 2 removable, self powered
ohci4: <OHCI (generic) USB controller> mem 0xfe9fa000-0xfe9fafff irq 18 at device 19.4 on pci0
ohci4: [GIANT-LOCKED]
ohci4: [ITHREAD]
usb4: OHCI version 1.0, legacy support
usb4: SMM does not respond, resetting
usb4: <OHCI (generic) USB controller> on ohci4
usb4: USB revision 1.0
uhub4: <ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb4
uhub4: 2 ports with 2 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfe9ff000-0xfe9ff0ff irq 19 at device 19.5 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb5: EHCI version 1.0
usb5: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4
usb5: <EHCI (generic) USB 2.0 controller> on ehci0
usb5: USB revision 2.0
uhub5: <ATI EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb5
uhub5: 10 ports with 10 removable, self powered
uhub6: <vendor 0x03f0 product 0x2f24, class 9/0, rev 2.00/0.00, addr 2> on uhub5
uhub6: multiple transaction translators
uhub6: 6 ports with 6 removable, self powered
ucom0: <ArkMicroChips USB-UART Controller, class 0/0, rev 1.10/0.01, addr 3> on uhub6
uhub7: <vendor 0x0409 product 0x0059, class 9/0, rev 2.00/1.00, addr 4> on uhub5
uhub7: single transaction translator
uhub7: 4 ports with 4 removable, self powered
umass0: <Generic Mass Storage Device, class 0/0, rev 2.00/1.26, addr 5> on uhub7
pci0: <serial bus, SMBus> at device 20.0 (no driver attached)
atapci1: <ATI IXP600 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 20.1 on pci0
ata0: <ATA channel 0> on atapci1
ata0: [ITHREAD]
pci0: <multimedia, HDA> at device 20.2 (no driver attached)
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
pcib3: <ACPI PCI-PCI bridge> at device 20.4 on pci0
pci3: <ACPI PCI bus> on pcib3
pci3: <multimedia, audio> at device 3.0 (no driver attached)
pci3: <input device> at device 3.1 (no driver attached)
k8temp0: <AMD K8 Thermal Sensors> on hostb4
acpi_button0: <Power Button> on acpi0
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio0: [FILTER]
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse Explorer, device ID 4
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
acpi_throttle0: CLK_VAL field overlaps THT_EN bit
device_attach: acpi_throttle0 attach returned 6
powernow0: <PowerNow! K8> on cpu0
cpu1: <ACPI CPU> on acpi0
powernow1: <PowerNow! K8> on cpu1
orm0: <ISA Option ROM> at iomem 0xc0000-0xcf7ff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
uscanner0: <Canon CanoScan, class 255/0, rev 1.10/1.00, addr 2> on uhub2
ulpt0: <HewLett Packard HP LaserJet 1200, class 0/0, rev 1.10/1.00, addr 3> on uhub2
ulpt0: using bi-directional mode
Timecounters tick every 1.000 msec
ipfw2 initialized, divert enabled, nat loadable, rule-based forwarding enabled, default to accept, logging limited to 1000 packets/entry by default
acd0: DVDR <PIONEER DVD-RW DVR-111D/1.29> at ata0-master UDMA66
ad4: 238475MB <WDC WD2500JS-40MVB1 10.02E01> at ata2-master SATA300
ad6: 476940MB <Seagate ST3500320AS SD15> at ata3-master SATA150
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x48 0x00 0x01
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x48 0x00 0x01
SMP: AP CPU #1 Launched!
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Generic USB SD Reader 1.00> Removable Direct Access SCSI-0 device 
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
cd0 at ata0 bus 0 target 0 lun 0
cd0: <PIONEER DVD-RW  DVR-111D 1.29> Removable CD-ROM SCSI-0 device 
cd0: 66.000MB/s transfers
cd0: cd present [2288832 x 2048 byte records]
da1 at umass-sim0 bus 0 target 0 lun 1
da1: <Generic USB CF Reader 1.01> Removable Direct Access SCSI-0 device 
da1: 40.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present
da2 at umass-sim0 bus 0 target 0 lun 2
da2: <Generic USB SM Reader 1.02> Removable Direct Access SCSI-0 device 
da2: 40.000MB/s transfers
da2: Attempt to query device size failed: NOT READY, Medium not present
da3 at umass-sim0 bus 0 target 0 lun 3
da3: <Generic USB MS Reader 1.03> Removable Direct Access SCSI-0 device 
da3: 40.000MB/s transfers
da3: Attempt to query device size failed: NOT READY, Medium not present
Trying to mount root from ufs:/dev/ad4s1a
re0: link state changed to UP
vlan1: link state changed to UP
vlan3: link state changed to UP
vlan4: link state changed to UP
vlan11: link state changed to UP

--------------060902040207000504050602--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?496D325C.2020702>