Date: Fri, 28 Dec 2007 17:40:20 -0500 From: Mike Tancsa <mike@sentex.net> To: freebsd-questions@freebsd.org Subject: mixing uart and sio Message-ID: <200712282242.lBSMgJEh076376@lava.sentex.ca>
next in thread | raw e-mail | index | archive | help
I am in a rather annoying situation of having one serial application not work well with the uart driver (null modem cable connects onboard serial ports to a machine I have no control over) and a GPRS device where the sio driver causes a constant stream of interrupt overflows sio4: 109 more interrupt-level buffer overflows (total 109) sio4: 109 more interrupt-level buffer overflows (total 218) sio4: 109 more interrupt-level buffer overflows (total 327) sio4: 109 more interrupt-level buffer overflows (total 436) sio4: 109 more interrupt-level buffer overflows (total 545) sio4: 109 more interrupt-level buffer overflows (total 654) sio4: 109 more interrupt-level buffer overflows (total 763) dev.sio.4.%desc: Sierra Wireless AC860 dev.sio.4.%driver: sio dev.sio.4.%location: function=1 dev.sio.4.%pnpinfo: manufacturer=0x0192 product=0x0710 cisvendor="Sierra Wireless" cisproduct="AC860" function_type=2 Attaching even at 9600 on this card, shows half of the chars are missed. However, with the uart driver, it works. The one small problem is that until I open the device, there is an interrupt storm on it. But after that, it works perfectly. e.g. attaching with sio shows the output of ati3 cut off # cu -l /dev/cuad4 Connected atz OK ati3 Manufacturer: Sierra Wireless, Inc. Model: AC860 Revision: U1_1_29ACAP G:/WORKSPACES/FIRMWARE/U1_1_29ACAP/MSM6275/SRC 2006/02/20 20:16:52 IMEI: 357806002095833 FSN: X172096078612 3GPP Release 5 +GCAP:atz OK ati3 Manufacturer: Sierra Wireless, Inc. Model: AC860 Revision: U1_1_29ACAP G:/WORKSPACES/FIRMWARE/U1_1_29ACAP/MSM6275/SRC 2006/ vs # cu -l /dev/cuau0 Connected atz OK ati3 Manufacturer: Sierra Wireless, Inc. Model: AC860 Revision: U1_1_29ACAP G:/WORKSPACES/FIRMWARE/U1_1_29ACAP/MSM6275/SRC 2006/02/20 20:16:52 IMEI: 357806002095833 FSN: X172096078612 3GPP Release 5 +GCAP: +CGSM,+FCLASS,+DS # vmstat -i interrupt total rate irq0: clk 287563 995 irq3: sio1 1 0 irq4: sio0 307 1 irq5: vr1 1 0 irq7: 2 0 stray irq7 2 0 irq8: rtc 36840 127 irq10: cbb0 sio4 59 0 irq11: vr0 3822 13 irq14: ata0 34495 119 irq15: ata1 ohci0+ 2 0 Total 363094 1256 # vmstat -i interrupt total rate irq0: clk 89881 987 irq5: vr1 1 0 irq7: 1 0 stray irq7 1 0 irq8: rtc 11504 126 irq10: cbb0 uart0 44275 486 irq11: vr0 695 7 irq14: ata0 21145 232 irq15: ata1 ohci0+ 2 0 Total 167505 1840 cbb0: <PCI-CardBus Bridge> mem 0xa0005000-0xa0005fff irq 10 at device 14.0 on pci0 cardbus0: <CardBus bus> on cbb0 pccard0: <16-bit PCCard bus> on cbb0 isab0: <PCI-ISA bridge> at device 20.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <AMD CS5536 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 20.2 on pci0 ata0: <ATA channel 0> on atapci0 ata1: <ATA channel 1> on atapci0 ohci0: <OHCI (generic) USB controller> mem 0xa0006000-0xa0006fff irq 15 at device 21.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: <OHCI (generic) USB controller> on ohci0 usb0: USB revision 1.0 uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered ehci0: <EHCI (generic) USB 2.0 controller> mem 0xa0007000-0xa0007fff irq 15 at device 21.1 on pci0 ehci0: [GIANT-LOCKED] usb1: EHCI version 1.0 usb1: companion controller, 4 ports each: usb0 usb1: <EHCI (generic) USB 2.0 controller> on ehci0 usb1: USB revision 2.0 uhub1: AMD EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub1: 4 ports with 4 removable, self powered uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0 Timecounter "TSC" frequency 433250425 Hz quality 800 Timecounters tick every 1.000 msec Fast IPsec: Initialized Security Association Processing. uart0: <Sierra Wireless AC860> at port 0x3e8-0x3ef irq 10 function 1 config 34 on pccard0 interrupt storm detected on "irq10:"; throttling interrupt source ---Mike -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712282242.lBSMgJEh076376>