From owner-freebsd-mobile Tue May 4 19:18:28 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from dcarmich.xnet.com (dcarmich.xnet.com [205.243.153.129]) by hub.freebsd.org (Postfix) with ESMTP id C8F6315732 for ; Tue, 4 May 1999 19:18:19 -0700 (PDT) (envelope-from dcarmich@dcarmich.xnet.com) Received: from localhost (dcarmich@localhost) by dcarmich.xnet.com (8.9.2/8.9.2) with ESMTP id VAA01294; Tue, 4 May 1999 21:18:37 -0500 (CDT) (envelope-from dcarmich@dcarmich.xnet.com) Date: Tue, 4 May 1999 21:18:37 -0500 (CDT) From: Douglas Carmichael To: freebsd-mobile@freebsd.org Cc: iwasaki@jp.freebsd.org, hosokawa@jp.freebsd.org Subject: With the patch, I can see/use the modem, but it wedges after a while with PPP Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The patch that was posted on freebsd-mobile (against PAO3-beta-19990329) lets my laptop see the modem and use it. However, after a few minutes of modem activity, the PPP connection hangs, requiring me to either quit PPP or close PPP to reestablish it. After quitting/closing PPP, I do not need to reboot to see the modem again (I can do a term from the PPP session with success). Here's a sample of some of the ping times (this is with light Netscape+ NNTP activity): PING typhoon.xnet.com (198.147.221.70): 56 data bytes 64 bytes from 198.147.221.70: icmp_seq=0 ttl=253 time=169.550 ms 64 bytes from 198.147.221.70: icmp_seq=1 ttl=253 time=160.097 ms 64 bytes from 198.147.221.70: icmp_seq=2 ttl=253 time=150.263 ms 64 bytes from 198.147.221.70: icmp_seq=3 ttl=253 time=140.113 ms 64 bytes from 198.147.221.70: icmp_seq=4 ttl=253 time=140.116 ms 64 bytes from 198.147.221.70: icmp_seq=5 ttl=253 time=140.109 ms 64 bytes from 198.147.221.70: icmp_seq=6 ttl=253 time=130.137 ms 64 bytes from 198.147.221.70: icmp_seq=7 ttl=253 time=140.120 ms 64 bytes from 198.147.221.70: icmp_seq=8 ttl=253 time=260.181 ms 64 bytes from 198.147.221.70: icmp_seq=9 ttl=253 time=480.738 ms 64 bytes from 198.147.221.70: icmp_seq=10 ttl=253 time=234.024 ms 64 bytes from 198.147.221.70: icmp_seq=14 ttl=253 time=789.728 ms 64 bytes from 198.147.221.70: icmp_seq=15 ttl=253 time=620.209 ms 64 bytes from 198.147.221.70: icmp_seq=16 ttl=253 time=1400.156 ms 64 bytes from 198.147.221.70: icmp_seq=17 ttl=253 time=6260.257 ms 64 bytes from 198.147.221.70: icmp_seq=18 ttl=253 time=5280.222 ms 64 bytes from 198.147.221.70: icmp_seq=19 ttl=253 time=5900.146 ms 64 bytes from 198.147.221.70: icmp_seq=20 ttl=253 time=4900.181 ms 64 bytes from 198.147.221.70: icmp_seq=21 ttl=253 time=3920.428 ms 64 bytes from 198.147.221.70: icmp_seq=22 ttl=253 time=2950.206 ms 64 bytes from 198.147.221.70: icmp_seq=23 ttl=253 time=1940.375 ms 64 bytes from 198.147.221.70: icmp_seq=24 ttl=253 time=1102.698 ms When icmp_seq gets to about 194, it wedges. However, when I configure pccard.conf to use pio instead of IRQ 3, the wedging doesn't occur. But, it is significantly slower. BTW, Here's the output of dmesg: Copyright (c) 1992-1999 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.1-RELEASE #0: Tue May 4 06:55:20 CDT 1999 root@myname.my.domain:/usr/src/sys/compile/DCARMICH-TEST Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Xeon/Celeron (233.29-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x650 Stepping=0 Features=0x183f9ff> real memory = 100663296 (98304K bytes) avail memory = 95424512 (93188K bytes) Preloaded elf kernel "kernel" at 0xf0243000. Probing for devices on PCI bus 0: chip0: rev 0x02 on pci0.0.0 vga0: rev 0xdc int a irq 10 on pci0.2.0 pcic0: rev 0x02 int a irq 255 on pci0.3.0 RL5C4XX PCI Config Reg: pcic1: rev 0x02 int b irq 255 on pci0.3.1 RL5C4XX PCI Config Reg: chip1: rev 0x02 on pci0.7.0 ide_pci0: rev 0x01 on pci0.7.1 chip2: rev 0x02 on pci0.7.3 Probing for devices on the ISA bus: sc0 on isa sc0: VGA color <16 virtual consoles, flags=0x0> atkbdc0 at 0x60-0x6f on motherboard atkbd0 irq 1 on isa psm0 irq 12 on isa psm0: model Generic PS/2 mouse, device ID 0 sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): wd0: 2067MB (4233600 sectors), 4200 cyls, 16 heads, 63 S/T, 512 B/S wdc1 at 0x170-0x177 irq 15 on isa wdc1: unit 0 (atapi): , removable, accel, dma, iordis acd0: drive speed 4134KB/sec, 128KB cache acd0: supported read types: CD-R, CD-RW, CD-DA acd0: Audio: play, 255 volume levels acd0: Mechanism: ejectable tray acd0: Medium: no/blank disc inside, unlocked ppc0 at 0x378 irq 7 on isa ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold nlpt0: on ppbus 0 nlpt0: Interrupt-driven port ppi0: on ppbus 0 plip0: on ppbus 0 pcic0 at 0x3e0-0x3e1 irq 11 on isa PC-Card ctlr(0) Ricoh RL5C478 [CardBus bridge mode] (5 mem & 2 I/O windows) pcic0: slot 0 controller I/O address 0x3e0 pcic0: slot 1 controller I/O address 0x3e0 vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa npx0 on motherboard npx0: INT 16 interface apm0 on isa apm: found APM BIOS version 1.2 changing root device to wd0s1a Card inserted, slot 0 sio3: type 16550A pid 239 (Xaccel): trap 12 with interrupts disabled acd0: read_toc failed acd0: read_toc failed sio3: unload,gone Return IRQ=3 Card removed, slot 0 ******* Tried different interrupts (didn't work, couldn't be an IRQ conflict) ****** Card inserted, slot 0 sio3: configured irq 10 not in bitmap of probed irqs 0 sio3: type 16550A sio3: unload,gone Return IRQ=10 Card removed, slot 0 Card inserted, slot 0 crd: slot_ctrl IRQ mask mismatched.Card removed, slot 0 Card inserted, slot 0 sio3: configured irq 9 not in bitmap of probed irqs 0 sio3: type 16550A sio3: unload,gone Return IRQ=9 Card removed, slot 0 ******************************* Tried pio here (didn't wedge) ********* Card inserted, slot 0 sio3: type 16550A sio3: unload,gone Card removed, slot 0 ************************************************************************ ** Back to IRQ 3 (which *DOES* work) ** Card inserted, slot 0 Slot 0, unfielded interrupt (0) sio3: type 16550A sio3: unload,gone Return IRQ=3 Card removed, slot 0 Card inserted, slot 0 Slot 0, unfielded interrupt (0) sio3: type 16550A *********************************************************** Here's my kernel configuration: # # Sample Laptop Configuration # for lenlen.ntc.keio.ac.jp (Toshiba Libretto 50CT) # Tatsumi Hosokawa # machine "i386" cpu "I686_CPU" ident DCARMICH-TEST maxusers 48 options INET #InterNETworking options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options MFS #Memory Filesystem options MFS_ROOT #MFS usable as root device, "MFS" req'ed options MSDOSFS #MSDOS Filesystem options "CD9660" #ISO 9660 Filesystem options "CD9660_ROOT" #CD-ROM usable as root. "CD9660" req'ed options PROCFS #Process filesystem options "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!] options UCONSOLE #Allow users to grab the console # If your laptop have not had Windoze95-Ready BIOS, please update it. # Such old BIOS'es sometimes have critical bugs at 32-bit protected # mode APM BIOS interface (which have not used by Windoze 3.1). # PC-card suspend/resume support (experimental) #options APM_PCCARD_RESUME options PCIC_RESUME_RESET # Keep power for serial cards when the system suspends # (If your machine hangs up when you try to suspend the system with # FAX/Modem PCMCIA card, uncomment this option). #options SIO_SUSP_KEEP_PWR # Detach SCSI devices when the SCSI card is removed #options SCSI_DETACH # Detach ATAPI devices when the ATA card is removed options ATAPI_DETACH # Japanese version of WaveLAN PCMCIA uses 2.4GHz band instead of 915MHz # band that US version uses. If you want to use Japanese version of # WaveLAN, uncomment this line, or edit the corresponding config entry # of /etc/pccard.conf. #options "WAVELAN_PCMCIA_24" # Suspend the system when the battery status is "Low" #options "APM_BATT_LOW_SUSPEND" # If you want to use NTP on laptop machines, uncomment the following # option. Current APM implementation affects NTP client. #options "APM_NO_CLOCK_ADJUST" # Some X-servers cannot survive suspend/resume on laptop. # This option kicks her when the system is resumed from suspended mode. #options SYSCONS_VTY_RESUME config kernel root on wd0 controller isa0 controller pci0 # Dont remove these two lines! pseudo-device card 1 # You must use "flags 0x1" when you don't hear any negotiation noise(?) # if you use modem card, or pccardd doesn't read cis tuple, tell you # 'No card in database for"(null)"("(null)")' in case of Cirrus Logic's # pcic is your PC. #device pcic0 at isa? port 0x3e0 flags 0x1 irq 11 device pcic0 at isa? port 0x3e0 irq 11 #device pcic0 at isa? port 0x3e4 irq 11 #device pcic1 at isa? port 0x3e2 # for HiNote Ultra II #device pcic1 at isa? port 0x3e4 # for Chandra II controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 disk fd0 at fdc0 drive 0 options "CMD640" # work around CMD640 chip deficiency controller wdc0 at isa? port "IO_WD1" bio irq 14 disk wd0 at wdc0 drive 0 controller wdc1 at isa? port "IO_WD2" bio irq 15 options ATAPI #Enable ATAPI support for IDE bus options ATAPI_STATIC #Don't do it as an LKM device acd0 #IDE CD-ROM device wfd0 #IDE floppy (LS-120) # A single entry for any of these controllers (ncr, ahb, ahc) is # sufficient for any number of installed devices. # atkbdc0 controlls both the keyboard and the PS/2 mouse controller atkbdc0 at isa? port IO_KBD tty device atkbd0 at isa? tty irq 1 device psm0 at isa? tty irq 12 device vga0 at isa? port ? conflicts # splash screen/screen saver pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? tty # Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver #device vt0 at isa? tty #options XSERVER # support for X server #options FAT_CURSOR # start with block cursor # If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines #options PCVT_SCANSET=2 # IBM keyboards are non-std # Mandatory, don't remove device npx0 at isa? port IO_NPX irq 13 # # Laptop support (see LINT for more options) # device apm0 at isa? # Advanced Power Management #options APM_BROKEN_STATCLOCK # Workaround some buggy APM BIOS device sio0 at isa? port "IO_COM1" tty irq 4 device sio1 at isa? disable port "IO_COM2" tty irq 3 device sio2 at isa? disable port "IO_COM3" tty irq 5 device sio3 at isa? disable port "IO_COM4" tty irq 9 device sio4 at isa? disable port "IO_COM3" tty irq 5 #device mse0 at isa? port 0x23c tty irq 5 # Parallel port device ppc0 at isa? port? net irq 7 controller ppbus0 device nlpt0 at ppbus? device plip0 at ppbus? device ppi0 at ppbus? #controller vpo0 at ppbus? # Order is important here due to intrusive probes, do *not* alphabetize # this list of network interfaces until the probes have been fixed. # Right now it appears that the ie0 must be probed before ep0. See # revision 1.20 of this file. #device ax0 #device de0 #device fxp0 #device mx0 #device pn0 #device rl0 #device tl0 #device tx0 #device vr0 #device vx0 #device wb0 #device xl0 pseudo-device loop # DHCP uses BPF (Berkeley Packet Filter) pseudo-device bpfilter 4 # ijppp uses tun instead of ppp device #pseudo-device ppp 1 pseudo-device vn 1 pseudo-device tun 5 pseudo-device pty 16 pseudo-device gzip # Exec gzipped a.out's # KTRACE enables the system-call tracing facility ktrace(2). # This adds 4 KB bloat to your kernel, and slightly increases # the costs of each syscall. #options KTRACE #kernel tracing # This provides support for System V shared memory. # options SYSVSHM options SYSVSEM options SYSVMSG # USB support #controller uhci0 #controller ohci0 #controller usb0 # # for the moment we have to specify the priorities of the device # drivers explicitly by the ordering in the list below. This will # be changed in the future. # #device ums0 #device ukbd0 #device ulpt0 #device uhub0 #device ucom0 #device umodem0 #device hid0 #device ugen0 # #options USB_DEBUG #options USBVERBOSE Judging from the fact that pio does work, it seems to me like it is a problem with the interrupt handling code. What could the problem be? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message