From owner-freebsd-stable@FreeBSD.ORG Fri Apr 21 09:53:52 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB19D16A401 for ; Fri, 21 Apr 2006 09:53:52 +0000 (UTC) (envelope-from hk@alogis.com) Received: from alogis.com (firewall.solit-ag.de [212.184.102.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82B4543D69 for ; Fri, 21 Apr 2006 09:53:43 +0000 (GMT) (envelope-from hk@alogis.com) Received: from alogis.com (localhost [127.0.0.1]) by alogis.com (8.13.1/8.13.1) with ESMTP id k3L9rfc5036285; Fri, 21 Apr 2006 11:53:41 +0200 (CEST) (envelope-from hk@alogis.com) Received: (from hk@localhost) by alogis.com (8.13.1/8.13.1/Submit) id k3L9rfZ1036284; Fri, 21 Apr 2006 11:53:41 +0200 (CEST) (envelope-from hk) Date: Fri, 21 Apr 2006 11:53:41 +0200 From: Holger Kipp To: Helge Oldach Message-ID: <20060421095341.GA35481@intserv.int1.b.intern> References: <20060420165605.GA15688@intserv.int1.b.intern> <200604210852.KAA22533@galaxy.hbg.de.ao-srv.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200604210852.KAA22533@galaxy.hbg.de.ao-srv.com> User-Agent: Mutt/1.4.2.1i Cc: stable@freebsd.org Subject: Re: swi4: clock sio uses 10% cpu X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 09:53:52 -0000 On Fri, Apr 21, 2006 at 10:52:00AM +0200, Helge Oldach wrote: > Holger, > > >puc0: port 0xa400-0xa41f,0xa000-0xa01f mem 0xdf800000-0xdf800fff,0xdf000000-0xdf000fff irq 10 at device 11.0 on pci0 > >puc1: port 0x9800-0x981f,0x9400-0x941f mem 0xde800000-0xde800fff,0xde000000-0xde000fff irq 10 at device 11.1 on pci0 > > The Titan device shows up as two PCI devices with shared interrupt. > Shared interrupts are supported by the puc(4) driver, but not in fast > interrupt mode. This eats a lot of CPU, causes silo overflows and > character loss. This is what the kernel tells you: > > >sio12: unable to activate interrupt in fast mode - using normal mode > > If possible try to make these two different irqs, or disable "half of > the board". No, that is not possible :-( I have recompiled the kernel with option PUC_FASTINTR, so now I don't have 'unable to activate interrupt in fast mode' any more, but I am not sure if this is good or not. I only see a neglegible amount of irqs on puc (irq 10), which is far less than 1 per second - usually zero. Oh, and mgetty gives me on some modems (only on PCI-800H): 04/21 11:41:33 add mgetty: interim release 1.1.34-Nov30 04/21 11:41:33 add check for lockfiles 04/21 11:41:33 add locking the line 04/21 11:41:34 add lowering DTR to reset Modem 04/21 11:41:34 add send: \dATQ0V1H0[0d] 04/21 11:41:35 add waiting for ``OK'' 04/21 11:41:55 add timeout in chat script, waiting for `OK' 04/21 11:41:55 add init chat timed out, trying force-init-chat 04/21 11:41:55 add send: \d[10][03]\d\d\d+++\d\d\d[0d]\dATQ0V1H0[0d] 04/21 11:41:59 add waiting for ``OK'' 04/21 11:42:19 add timeout in chat script, waiting for `OK' 04/21 11:42:19 add init chat failed, exiting...: Interrupted system call 04/21 11:42:19 ##### failed in mg_init_data, dev=cuadd, pid=10057 So modem does not want to reset... Might this be related? Is it possible to find out if characters are not transmitted correctly - without any messages in /var/log/messages and no silo overflows? I have reduced HZ (from 1000 to 100) and increased cp4ticks in sio.c which got rid of silo overflows. This crappy PC irq-handling is really annoying. I hate this. Hmm, should have taken a VScom PCI-800 without the 'H', maybe. Regards, Holger Anyway, here is the current dmesg from /var/run: --- dmesg (options PUC_FASTINTR) --------------------------------------------- Copyright (c) 1992-2006 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 6.1-PRERELEASE #5: Thu Apr 20 22:11:42 CEST 2006 root@dialout.dout1.b.intern:/usr/obj/usr/src/sys/B-DIALOUT Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium III/Pentium III Xeon/Celeron (501.14-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x673 Stepping = 3 Features=0x383f9ff real memory = 134205440 (127 MB) avail memory = 121810944 (116 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: pcibus 0 on motherboard pir0: on motherboard $PIR: Using invalid BIOS IRQ 15 from 0.10.INTA for link 0x62 $PIR: Using invalid BIOS IRQ 14 from 0.6.INTA for link 0x63 pci0: on pcib0 agp0: mem 0xe4000000-0xe7ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xb800-0xb80f at device 4.1 on pci0 ata0: on atapci0 ata1: on atapci0 pci0: at device 4.2 (no driver attached) pci0: at device 4.3 (no driver attached) ahc0: port 0xb000-0xb0ff mem 0xe1000000-0xe1000fff irq 14 at device 6.0 on pci0 ahc0: [GIANT-LOCKED] aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs fxp0: port 0xa800-0xa83f mem 0xe0800000-0xe0800fff,0xe0000000-0xe00fffff irq 15 at device 10.0 on pci0 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:d0:b7:16:53:60 puc0: port 0xa400-0xa41f,0xa000-0xa01f mem 0xdf800000-0xdf800fff,0xdf000000-0xdf000fff irq 10 at device 11.0 on pci0 sio12: on puc0 sio12: type 16550A sio13: on puc0 sio13: type 16550A sio14: on puc0 sio14: type 16550A sio15: on puc0 sio15: type 16550A puc1: port 0x9800-0x981f,0x9400-0x941f mem 0xde800000-0xde800fff,0xde000000-0xde000fff irq 10 at device 11.1 on pci0 sio16: on puc1 sio16: type 16550A sio17: on puc1 sio17: type 16550A sio18: on puc1 sio18: type 16550A sio19: on puc1 sio19: type 16550A pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc7fff,0xc8000-0xcd7ff,0xd0000-0xd0fff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sc0: at flags 0x100 on isa0 sc0: VGA <32 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A sio10 at port 0x130-0x137 flags 0xb05 on isa0 sio10: type 16550A (multiport) sio11 at port 0x138-0x13f irq 12 flags 0xb05 on isa0 sio11: type 16550A (multiport master) sio4 at port 0x100-0x107 flags 0xb05 on isa0 sio4: type 16550A (multiport) sio5 at port 0x108-0x10f flags 0xb05 on isa0 sio5: type 16550A (multiport) sio6 at port 0x110-0x117 flags 0xb05 on isa0 sio6: type 16550A (multiport) sio7 at port 0x118-0x11f flags 0xb05 on isa0 sio7: type 16550A (multiport) sio8 at port 0x120-0x127 flags 0xb05 on isa0 sio8: type 16550A (multiport) sio9 at port 0x128-0x12f flags 0xb05 on isa0 sio9: type 16550A (multiport) vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (memory) fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sc0: at flags 0x100 on isa0 sc0: VGA <32 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A sio10 at port 0x130-0x137 flags 0xb05 on isa0 sio10: type 16550A (multiport) sio11 at port 0x138-0x13f irq 12 flags 0xb05 on isa0 sio11: type 16550A (multiport master) sio4 at port 0x100-0x107 flags 0xb05 on isa0 sio4: type 16550A (multiport) sio5 at port 0x108-0x10f flags 0xb05 on isa0 sio5: type 16550A (multiport) sio6 at port 0x110-0x117 flags 0xb05 on isa0 sio6: type 16550A (multiport) sio7 at port 0x118-0x11f flags 0xb05 on isa0 sio7: type 16550A (multiport) sio8 at port 0x120-0x127 flags 0xb05 on isa0 sio8: type 16550A (multiport) sio9 at port 0x128-0x12f flags 0xb05 on isa0 sio9: type 16550A (multiport) vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (memory) unknown: can't assign resources (port) unknown: can't assign resources (port) Timecounter "TSC" frequency 501138569 Hz quality 800 Timecounters tick every 10.000 msec IP Filter: v4.1.8 initialized. Default = pass all, Logging = enabled da0 at ahc0 bus 0 target 6 lun 0 da0: Fixed Direct Access SCSI-3 device da0: 40.000MB/s transfers (20.000MHz, offset 31, 16bit), Tagged Queueing Enabled da0: 8748MB (17916240 512 byte sectors: 255H 63S/T 1115C) cd0 at ahc0 bus 0 target 4 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 20.000MB/s transfers (20.000MHz, offset 15) cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed Trying to mount root from ufs:/dev/da0s1a