NetBSD Problem Report #30284

From www@netbsd.org  Thu May 19 21:17:12 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 7FD6363B104; Thu, 19 May 2005 21:17:12 +0000 (UTC)
Message-Id: <20050519211712.7FD6363B104@narn.netbsd.org>
Date: Thu, 19 May 2005 21:17:12 +0000 (UTC)
From: ja.far@zen.co.uk
Reply-To: ja.far@zen.co.uk
To: gnats-bugs@netbsd.org
Subject: pcmcia modem doesn't work on -current or netbsd-3 (with pccbb.c 1.118)
X-Send-Pr-Version: www-1.0

>Number:         30284
>Category:       kern
>Synopsis:       pcmcia modem doesn't work on -current or netbsd-3 (with pccbb.c 1.118)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 19 21:18:00 +0000 2005
>Last-Modified:  Sun Apr 30 18:50:10 +0000 2006
>Originator:     ja'far railton
>Release:        2.0.2
>Organization:
>Environment:
NetBSD bsd.makhraj.bsd 2.0.2_STABLE NetBSD 2.0.2_STABLE (ACER) Sun May 15 04:45:17 ?? 2005 jr0@bsd.makhraj.bsd:/usr/obj/sys/arch/i386/compile/ACER i386
>Description:
Billionton PC Card Fax/Modem card *works* with the 2.0.2 kernel and userland on this Acer TravelMate 4050 laptop.

Updating first to -current, and then, to netbsd-3 branch kernels and userlands, the modem fails, i.e. the modem test "cu -p modem" freezes the screen so that a reboot is required. Of course, ppp is a non-starter.

Tried using pccbb.c 1.118 with netbsd-3 and with -current.


>How-To-Repeat:
Build and install -current or netbsd-3 branch builds.
>Fix:

>Audit-Trail:
From: "Ja'far Railton" <zen25058@zen.co.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/30284
Date: Mon, 6 Jun 2005 02:37:32 +0307

 ----- Forwarded message from Christos Zoulas <christos@tac.gw.com> -----

 In article <20050602101626.GB163@bsd.makhraj.bsd>,
 Ja'far Railton <zen25058@zen.co.uk> wrote:
 >-=-=-=-=-=-
 >
 >Hello
 >
 >My pcmcia modem works with a 2.0.2 kernel and userland. After an upgrade
 >to -current kernel and userland I couldn't get it it work, so I had to start
 >over from scratch as the downgrade back to 2.0.2 entailed serious problems.
 >
 >I am worried that my modem won't work even on 3.0_STABLE whenever it is
 >released. I have tried building new kernels from current sources but
 >they don't work, e.g. 
 >
 >	tip modem	
 >	cbb0 wait took 0.0315[...]s
 >	link down
 >
 >	cu -p modem --> freeze requiring power off 
 >
 >In both cases the configuration is the same - ACPI enabled, ACPI_PCI_FIXUP,
 >no other changes to GENERIC_LAPTOP.
 >
 >I attach a diff of the 2.0.2 and -current dmesgs.
 >Thanks for any pointers.

 I think your problem might be in the changes in sys/dev/pci/pccbb.c. Can
 you try to compile a current kernel with pccbb.c from 2.0.2?

 christos


 ----- End forwarded message -----

From: "Ja'far Railton" <zen25058@zen.co.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/30284
Date: Mon, 6 Jun 2005 02:39:17 +0307

 ----- Forwarded message from Ja'far Railton <zen25058@zen.co.uk> -----

 On Thu, Jun 02, 2005 at 10:30:55PM +0300, Christos Zoulas wrote:
 >=20
 > Where are the compiler errors?

 Sorry, here:

 /home/jr0/src/../tools/bin/i386--netbsdelf-gcc -march=3Dpentium3 -O2 -pipe =
 -ffreestanding -g -march=3Dpentium3 -O2 -pipe -Werror -Wall -Wno-main -Wno-=
 format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes=
  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-comp=
 are -fno-zero-initialized-in-bss -Di386 -I. -I/home/jr0/src/sys/arch -I/hom=
 e/jr0/src/sys -nostdinc -DLKM -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_OPT -I/ho=
 me/jr0/src/sys/dist/ipf -c /home/jr0/src/sys/dev/pci/if_tlp_pci.c
 #   compile  EXP/pccbb.o
 /home/jr0/src/../tools/bin/i386--netbsdelf-gcc -march=3Dpentium3 -O2 -pipe =
 -ffreestanding -g -march=3Dpentium3 -O2 -pipe -Werror -Wall -Wno-main -Wno-=
 format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes=
  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-comp=
 are -fno-zero-initialized-in-bss -Di386 -I. -I/home/jr0/src/sys/arch -I/hom=
 e/jr0/src/sys -nostdinc -DLKM -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_OPT -I/ho=
 me/jr0/src/sys/dist/ipf -c /home/jr0/src/sys/dev/pci/pccbb.c
 /home/jr0/src/sys/dev/pci/pccbb.c:246: warning: initialization from incompa=
 tible pointer type
 /home/jr0/src/sys/dev/pci/pccbb.c: In function `pccbbattach':
 /home/jr0/src/sys/dev/pci/pccbb.c:440: error: too few arguments to function=
  `pci_devinfo'
 /home/jr0/src/sys/dev/pci/pccbb.c: In function `cb_reset':
 /home/jr0/src/sys/dev/pci/pccbb.c:1530: warning: declaration of `tick' shad=
 ows a global declaration
 /home/jr0/src/sys/sys/kernel.h:58: warning: shadowed declaration is here
 /home/jr0/src/sys/dev/pci/pccbb.c:1536: warning: declaration of `tick' shad=
 ows a global declaration
 /home/jr0/src/sys/sys/kernel.h:58: warning: shadowed declaration is here
 /home/jr0/src/sys/dev/pci/pccbb.c: In function `pccbb_pcmcia_wait_ready':
 /home/jr0/src/sys/dev/pci/pccbb.c:2379: warning: declaration of `tick' shad=
 ows a global declaration
 /home/jr0/src/sys/sys/kernel.h:58: warning: shadowed declaration is here
 /home/jr0/src/sys/dev/pci/pccbb.c: In function `pccbb_pcmcia_socket_enable':
 /home/jr0/src/sys/dev/pci/pccbb.c:2506: warning: implicit declaration of fu=
 nction `pcmcia_card_gettype'

 *** Failed target:  pccbb.o
 *** Failed command: echo '# ' "compile EXP/pccbb.o"; echo /home/jr0/src/../=
 tools/bin/i386--netbsdelf-gcc -march=3Dpentium3 -O2 -pipe -ffreestanding -g=
  -march=3Dpentium3 -O2 -pipe -Werror -Wall -Wno-main -Wno-format-zero-lengt=
 h -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -W=
 switch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -fno-zero-ini=
 tialized-in-bss -Di386 -I. -I/home/jr0/src/sys/arch -I/home/jr0/src/sys -no=
 stdinc -DLKM -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_OPT -I/home/jr0/src/sys/di=
 st/ipf -c /home/jr0/src/sys/dev/pci/pccbb.c; /home/jr0/src/../tools/bin/i38=
 6--netbsdelf-gcc -march=3Dpentium3 -O2 -pipe -ffreestanding -g -march=3Dpen=
 tium3 -O2 -pipe -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-a=
 rith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type -Wswitch -Wshad=
 ow -Wcast-qual -Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-b=
 ss -Di386 -I. -I/home/jr0/src/sys/arch -I/home/jr0/src/sys -nostdinc -DLKM =
 -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_OPT -I/home/jr0/src/sys/dist/ipf -c /ho=
 me/jr0/src/sys/dev/pci/pccbb.c
 *** Error code 1

 Stop.
 nbmake: stopped in /home/jr0/obj/sys/arch/i386/compile/EXP

 ERROR: Failed to make all in /home/jr0/src/../obj/sys/arch/i386/compile/EXP
 *** BUILD ABORTED ***

 TIA
 --=20
 Well done!


 ----- End forwarded message -----

 --=20
 Well done!

From: "Ja'far Railton" <zen25058@zen.co.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/30284
Date: Mon, 6 Jun 2005 02:39:50 +0307

 ----- Forwarded message from Christos Zoulas <christos@tac.gw.com> -----

 Try this patch:

 Index: pccbb.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/pci/pccbb.c,v
 retrieving revision 1.96.2.2
 diff -u -u -r1.96.2.2 pccbb.c
 --- pccbb.c	28 Jul 2004 21:33:34 -0000	1.96.2.2
 +++ pccbb.c	2 Jun 2005 22:50:09 -0000
 @@ -100,16 +100,16 @@
  #define DELAY_MS(time, param)						\
      do {								\
  	if (cold == 0) {						\
 -	    int tick = (hz*(time))/1000;				\
 +	    int xtick = (hz*(time))/1000;				\
  									\
 -	    if (tick <= 1) {						\
 -		tick = 2;						\
 +	    if (xtick <= 1) {						\
 +		xtick = 2;						\
  	    }								\
 -	    tsleep((void *)(param), PWAIT, "pccbb", tick);		\
 +	    tsleep((void *)(param), PWAIT, "pccbb", xtick);		\
  	} else {							\
  	    delay((time)*1000);						\
  	}								\
 -    } while (0)
 +    } while (/*CONSTCOND*/0)

  int pcicbbmatch __P((struct device *, struct cfdata *, void *));
  void pccbbattach __P((struct device *, struct device *, void *));
 @@ -184,6 +184,7 @@
      void *));
  STATIC void pccbb_pcmcia_socket_enable __P((pcmcia_chipset_handle_t));
  STATIC void pccbb_pcmcia_socket_disable __P((pcmcia_chipset_handle_t));
 +STATIC void pccbb_pcmcia_socket_settype(pcmcia_chipset_handle_t, int);
  STATIC int pccbb_pcmcia_card_detect __P((pcmcia_chipset_handle_t pch));

  static void pccbb_pcmcia_do_io_map __P((struct pcic_handle *, int));
 @@ -242,6 +243,7 @@
  	pccbb_pcmcia_intr_disestablish,
  	pccbb_pcmcia_socket_enable,
  	pccbb_pcmcia_socket_disable,
 +	pccbb_pcmcia_socket_settype,
  	pccbb_pcmcia_card_detect
  };

 @@ -437,7 +439,7 @@

  	sc->sc_chipset = cb_chipset(pa->pa_id, &flags);

 -	pci_devinfo(pa->pa_id, 0, 0, devinfo);
 +	pci_devinfo(pa->pa_id, 0, 0, devinfo, sizeof(devinfo));
  	printf(": %s (rev. 0x%02x)", devinfo, PCI_REVISION(pa->pa_class));
  #ifdef CBB_DEBUG
  	printf(" (chipflags %x)", flags);
 @@ -1414,6 +1416,29 @@
  	return 1;		       /* power changed correctly */
  }

 +STATIC void
 +pccbb_pcmcia_socket_settype(pch, type)
 +	pcmcia_chipset_handle_t pch;
 +	int type;
 +{
 +	struct pcic_handle *ph = (struct pcic_handle *)pch;
 +	u_int8_t intr;
 +
 +	/* set the card type */
 +
 +	intr = Pcic_read(ph, PCIC_INTR);
 +	intr &= ~(PCIC_INTR_IRQ_MASK | PCIC_INTR_CARDTYPE_MASK);
 +	if (type == PCMCIA_IFTYPE_IO)
 +		intr |= PCIC_INTR_CARDTYPE_IO;
 +	else
 +		intr |= PCIC_INTR_CARDTYPE_MEM;
 +	Pcic_write(ph, PCIC_INTR, intr);
 +
 +	DPRINTF(("%s: pccbb_pcmcia_socket_settype %02x type %s %02x\n",
 +	    ph->ph_parent->dv_xname, ph->sock,
 +	    ((type == PCMCIA_IFTYPE_IO) ? "io" : "mem"), intr));
 +}
 +
  #if defined CB_PCMCIA_POLL
  struct cb_poll_str {
  	void *arg;
 @@ -2403,7 +2428,7 @@
  {
  	struct pcic_handle *ph = (struct pcic_handle *)pch;
  	struct pccbb_softc *sc = (struct pccbb_softc *)ph->ph_parent;
 -	int cardtype, win;
 +	int win;
  	u_int8_t power, intr;
  	pcireg_t spsr;
  	int voltage;
 @@ -2497,22 +2522,6 @@
  		return;
  	}

 -	/* zero out the address windows */
 -
 -	Pcic_write(ph, PCIC_ADDRWIN_ENABLE, 0);
 -
 -	/* set the card type */
 -
 -	cardtype = pcmcia_card_gettype(ph->pcmcia);
 -
 -	intr |= ((cardtype == PCMCIA_IFTYPE_IO) ?
 -	    PCIC_INTR_CARDTYPE_IO : PCIC_INTR_CARDTYPE_MEM);
 -	Pcic_write(ph, PCIC_INTR, intr);
 -
 -	DPRINTF(("%s: pccbb_pcmcia_socket_enable %02x cardtype %s %02x\n",
 -	    ph->ph_parent->dv_xname, ph->sock,
 -	    ((cardtype == PCMCIA_IFTYPE_IO) ? "io" : "mem"), intr));
 -
  	/* reinstall all the memory and io mappings */

  	for (win = 0; win < PCIC_MEM_WINS; ++win) {


 ----- End forwarded message -----

 -- 
 Well done!

From: "Ja'far Railton" <zen25058@zen.co.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/30284
Date: Mon, 6 Jun 2005 02:41:21 +0307

 ----- Forwarded message from Ja'far Railton <zen25058@zen.co.uk> -----

 > Try this patch:
 > 
 > Index: pccbb.c
 > ===================================================================
 > RCS file: /cvsroot/src/sys/dev/pci/pccbb.c,v
 > retrieving revision 1.96.2.2
 > diff -u -u -r1.96.2.2 pccbb.c
 > --- pccbb.c	28 Jul 2004 21:33:34 -0000	1.96.2.2
 > +++ pccbb.c	2 Jun 2005 22:50:09 -0000

 Yes, this compiles now, but booting the resulting kernel the modem
 problem persists, unfortunately.

 ----- End forwarded message -----

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: kern/30284
Date: Mon, 6 Jun 2005 10:27:23 -0400

 On Jun 5, 11:35pm, zen25058@zen.co.uk ("Ja'far Railton") wrote:
 -- Subject: Re: kern/30284

 |  > Try this patch:
 |  > 
 |  > Index: pccbb.c
 |  > ===================================================================
 |  > RCS file: /cvsroot/src/sys/dev/pci/pccbb.c,v
 |  > retrieving revision 1.96.2.2
 |  > diff -u -u -r1.96.2.2 pccbb.c
 |  > --- pccbb.c	28 Jul 2004 21:33:34 -0000	1.96.2.2
 |  > +++ pccbb.c	2 Jun 2005 22:50:09 -0000
 |  
 |  Yes, this compiles now, but booting the resulting kernel the modem
 |  problem persists, unfortunately.

 Hmm, ok. i will try to dig out some old pcmcia cards I have here and
 see if I can figure it out.

 christos

From: ja'far railton <zen25058@zen.co.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/30284
Date: Mon, 08 Aug 2005 13:50:34 +0300

 Hi Christos

 Will this problem be fixed before 3.0 is released?

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: kern/30284
Date: Mon, 8 Aug 2005 08:49:46 -0400

 On Aug 8, 11:13am, zen25058@zen.co.uk (ja'far railton) wrote:
 -- Subject: Re: kern/30284

 | The following reply was made to PR kern/30284; it has been noted by GNATS.
 | 
 | From: ja'far railton <zen25058@zen.co.uk>
 | To: gnats-bugs@netbsd.org
 | Cc: 
 | Subject: Re: kern/30284
 | Date: Mon, 08 Aug 2005 13:50:34 +0300
 | 
 |  Hi Christos
 |  
 |  Will this problem be fixed before 3.0 is released?

 We will try to get it fixed. I will add it on my things to do. But without
 hardware it will be difficult to debug. I will try to send you some diffs
 to try.

 christos

From: "Ja'far Railton" <ibn.richard@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/30284
Date: Tue, 21 Feb 2006 05:12:58 +0000

 I attach a pcmcia_debugged dmesg


 -- 
 Ja'far ibn Richard Railton

 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

 NetBSD 3.99.14 (DEBUG) #1: Sat Dec 17 20:21:02 UTC 2005
 	jr0@think.netbsd.bsd:/usr/obj/sys/arch/i386/compile/DEBUG
 total memory = 247 MB
 avail memory = 236 MB
 BIOS32 rev. 0 found at 0xf0210
 PCI BIOS rev. 2.1 found at 0xf0200
 pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
 PCI IRQ Routing Table rev. 1.0 found at 0xfb9d0, size 192 bytes (10 entries)
 PCI Interrupt Router at 000:07:0 (Acer Labs M1543 PCI-ISA Bridge compatible)
 ------------------------------------------
   device vendor product pin PIRQ IRQ stage
 ------------------------------------------
 000:06:0 0x10b9 0x5451   A  0x07  11  0    already assigned
 000:10:0 0x8086 0x1229   A  0x01  11  0    already assigned
 000:19:0 0x1217 0x6972   A  0x03  11  0    already assigned
 ------------------------------------------
 mainbus0 (root)
 pci_addr_fixup: 000:19:0 0x1217 0x6972 new address 0x0f800000
 cpu0 at mainbus0: (uniprocessor)
 cpu0: Intel Pentium III (686-class), 996.38 MHz, id 0x68a
 cpu0: features 387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
 cpu0: features 387f9ff<PGE,MCA,CMOV,PAT,PSE36,PN,MMX>
 cpu0: features 387f9ff<FXSR,SSE>
 cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
 cpu0: L2 cache 256 KB 32B/line 8-way
 cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
 cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
 cpu0: serial number 0000-068a-0003-e1a6-4891-6365
 cpu0: 8 page colors
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 pchb0 at pci0 dev 0 function 0
 pchb0: Acer Labs product 0x1621 (rev. 0x01)
 agp at pchb0 not configured
 ppb0 at pci0 dev 1 function 0: Acer Labs product 0x5247 (rev. 0x01)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled
 vga1 at pci1 dev 0 function 0: Trident Microsystems product 0x8620 (rev. 0x5d)
 wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
 wsmux1: connecting to wsdisplay0
 autri0 at pci0 dev 6 function 0: Acer Labs M5451 AC-Link Controller Audio Device (rev. 0x01)
 autri0: interrupting at irq 11
 autri0: ac97: Avance Logic ALC200/ALC201 codec; headphone, 18 bit DAC, 18 bit ADC, Realtek 3D
 audio0 at autri0: full duplex, mmap, independent
 midi0 at autri0: 4DWAVE MIDI UART
 pcib0 at pci0 dev 7 function 0
 pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0x00)
 fxp0 at pci0 dev 10 function 0: i82550 Ethernet, rev 13
 fxp0: interrupting at irq 11
 fxp0: Ethernet address 00:00:e2:56:c1:da
 inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 aceride0 at pci0 dev 16 function 0
 aceride0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc3)
 aceride0: bus-master DMA support present
 aceride0: primary channel configured to compatibility mode
 aceride0: primary channel interrupting at irq 14
 atabus0 at aceride0 channel 0
 aceride0: secondary channel configured to compatibility mode
 aceride0: secondary channel interrupting at irq 15
 atabus1 at aceride0 channel 1
 Acer Labs M7101 Power Management Controller (miscellaneous bridge) at pci0 dev 17 function 0 not configured
 cbb0 at pci0 dev 19 function 0: O2 Micro OZ6912/OZ6972 PCI-CardBus Bridge (rev. 0x00)
 ohci0 at pci0 dev 20 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
 ohci0: interrupting at irq 10
 ohci0: OHCI version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0
 uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 4 ports with 4 removable, self powered
 isa0 at pcib0
 lpt2 at isa0 port 0x3bc-0x3bf irq : polled
 pckbc0 at isa0 port 0x60-0x64
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard, using wsdisplay0
 pms0 at pckbc0 (aux slot)
 pckbc0: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0
 attimer0 at isa0 port 0x40-0x43: AT Timer
 pcppi0 at isa0 port 0x61
 midi1 at pcppi0: PC speaker
 sysbeep0 at pcppi0
 isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
 npx0 at isa0 port 0xf0-0xff: using exception 16
 pcppi0: attached to attimer0
 isapnp0: no ISA Plug 'n Play devices found
 cbb0: interrupting at irq 11
 cardslot0 at cbb0 slot 0 flags 0
 cardbus0 at cardslot0: bus 2
 pcmcia0 at cardslot0
 apm0 at mainbus0: Power Management spec V1.2
 Kernelized RAIDframe activated
 wd0 at atabus0 drive 0: <FUJITSU MHT2040AS>
 wd0: drive supports 16-sector PIO transfers, LBA addressing
 wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
 wd0(aceride0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
 atapibus0 at atabus1: 2 targets
 cd0 at atapibus0 drive 0: <CD-224E, , 2.7B> cdrom removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd0(aceride0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
 boot device: wd0
 root on wd0a dumps on wd0b
 root file system type: ffs
 wsdisplay0: screen 1 added (80x25, vt100 emulation)
 wsdisplay0: screen 2 added (80x25, vt100 emulation)
 wsdisplay0: screen 3 added (80x25, vt100 emulation)
 wsdisplay0: screen 4 added (80x25, vt100 emulation)
 cbb0: wait took 0.050374s
 pcmcia0: ++enabled_count = 1
 pcmcia0: CIS version PC Card Standard 5.1
 pcmcia0: CIS info: Billionton V92 Fax Modem, FM56C-BFS, 5.41
 pcmcia0: Manufacturer code 0x14e, product 0x88
 pcmcia0: function 0: serial port, ccr addr 100 mask 13
 pcmcia0: function 0, config table entry 32: I/O card; irq mask 10; iomask a, iospace 3f8-3ff; mwait_required io8 irqlevel powerdown audio
 pcmcia0: function 0, config table entry 33: I/O card; irq mask 10; iomask a, iospace 2f8-2ff; mwait_required io8 irqlevel powerdown audio
 pcmcia0: function 0, config table entry 34: I/O card; irq mask 10; iomask a, iospace 3e8-3ef; mwait_required io8 irqlevel powerdown audio
 pcmcia0: function 0, config table entry 35: I/O card; irq mask 10; iomask a, iospace 2e8-2ef; mwait_required io8 irqlevel powerdown audio
 pcmcia0: function 0, config table entry 36: I/O card; irq mask 1cb8; iomask 3, iospace 0-7; mwait_required io8 irqlevel powerdown audio
 pcmcia0: function 0, config table entry 48: I/O card; irq mask 10; iomask 3, iospace 0-7; mwait_required io8 irqlevel powerdown audio
 com3 at pcmcia0 function 0: <Billionton V92 Fax Modem, FM56C-BFS, 5.41>
 pcmcia_config_alloc: io 0 start=3f8 length=8 align=400 skew=3f8
 window iobase 4000 iomax 4007
 function iobase 4000 iomax 4007
 pcmcia0: ++enabled_count = 2
 pcmcia0: function 0 CCR at 0 offset 100: 60 8 ff 0, 3 20 ff 24, ff
 com3: ns8250 or ns16450, no fifo
 pcmcia0: --enabled_count = 1
 pcmcia0: --enabled_count = 0
 syncing disks... done
 unmounting file systems... done
 rebooting...
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

 NetBSD 3.99.14 (DEBUG) #1: Sat Dec 17 20:21:02 UTC 2005
 	jr0@think.netbsd.bsd:/usr/obj/sys/arch/i386/compile/DEBUG
 total memory = 247 MB
 avail memory = 236 MB
 BIOS32 rev. 0 found at 0xf0210
 PCI BIOS rev. 2.1 found at 0xf0200
 pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
 PCI IRQ Routing Table rev. 1.0 found at 0xfb9d0, size 192 bytes (10 entries)
 PCI Interrupt Router at 000:07:0 (Acer Labs M1543 PCI-ISA Bridge compatible)
 ------------------------------------------
   device vendor product pin PIRQ IRQ stage
 ------------------------------------------
 000:06:0 0x10b9 0x5451   A  0x07  11  0    already assigned
 000:10:0 0x8086 0x1229   A  0x01  11  0    already assigned
 000:19:0 0x1217 0x6972   A  0x03  11  0    already assigned
 ------------------------------------------
 mainbus0 (root)
 pci_addr_fixup: 000:19:0 0x1217 0x6972 new address 0x0f800000
 cpu0 at mainbus0: (uniprocessor)
 cpu0: Intel Pentium III (686-class), 996.38 MHz, id 0x68a
 cpu0: features 387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
 cpu0: features 387f9ff<PGE,MCA,CMOV,PAT,PSE36,PN,MMX>
 cpu0: features 387f9ff<FXSR,SSE>
 cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
 cpu0: L2 cache 256 KB 32B/line 8-way
 cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
 cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
 cpu0: serial number 0000-068a-0003-e1a6-4891-6365
 cpu0: 8 page colors
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 pchb0 at pci0 dev 0 function 0
 pchb0: Acer Labs product 0x1621 (rev. 0x01)
 agp at pchb0 not configured
 ppb0 at pci0 dev 1 function 0: Acer Labs product 0x5247 (rev. 0x01)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled
 vga1 at pci1 dev 0 function 0: Trident Microsystems product 0x8620 (rev. 0x5d)
 wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
 wsmux1: connecting to wsdisplay0
 autri0 at pci0 dev 6 function 0: Acer Labs M5451 AC-Link Controller Audio Device (rev. 0x01)
 autri0: interrupting at irq 11
 autri0: ac97: Avance Logic ALC200/ALC201 codec; headphone, 18 bit DAC, 18 bit ADC, Realtek 3D
 audio0 at autri0: full duplex, mmap, independent
 midi0 at autri0: 4DWAVE MIDI UART
 pcib0 at pci0 dev 7 function 0
 pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0x00)
 fxp0 at pci0 dev 10 function 0: i82550 Ethernet, rev 13
 fxp0: interrupting at irq 11
 fxp0: Ethernet address 00:00:e2:56:c1:da
 inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 aceride0 at pci0 dev 16 function 0
 aceride0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc3)
 aceride0: bus-master DMA support present
 aceride0: primary channel configured to compatibility mode
 aceride0: primary channel interrupting at irq 14
 atabus0 at aceride0 channel 0
 aceride0: secondary channel configured to compatibility mode
 aceride0: secondary channel interrupting at irq 15
 atabus1 at aceride0 channel 1
 Acer Labs M7101 Power Management Controller (miscellaneous bridge) at pci0 dev 17 function 0 not configured
 cbb0 at pci0 dev 19 function 0: O2 Micro OZ6912/OZ6972 PCI-CardBus Bridge (rev. 0x00)
 ohci0 at pci0 dev 20 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
 ohci0: interrupting at irq 10
 ohci0: OHCI version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0
 uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 4 ports with 4 removable, self powered
 isa0 at pcib0
 lpt2 at isa0 port 0x3bc-0x3bf irq : polled
 pckbc0 at isa0 port 0x60-0x64
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard, using wsdisplay0
 pms0 at pckbc0 (aux slot)
 pckbc0: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0
 attimer0 at isa0 port 0x40-0x43: AT Timer
 pcppi0 at isa0 port 0x61
 midi1 at pcppi0: PC speaker
 sysbeep0 at pcppi0
 isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
 npx0 at isa0 port 0xf0-0xff: using exception 16
 pcppi0: attached to attimer0
 isapnp0: no ISA Plug 'n Play devices found
 cbb0: interrupting at irq 11
 cardslot0 at cbb0 slot 0 flags 0
 cardbus0 at cardslot0: bus 2
 pcmcia0 at cardslot0
 apm0 at mainbus0: Power Management spec V1.2
 Kernelized RAIDframe activated
 cbb0: wait took 0.054691s
 pcmcia0: ++enabled_count = 1
 pcmcia0: CIS version PC Card Standard 5.1
 pcmcia0: CIS info: Billionton V92 Fax Modem, FM56C-BFS, 5.41
 pcmcia0: Manufacturer code 0x14e, product 0x88
 pcmcia0: function 0: serial port, ccr addr 100 mask 13
 pcmcia0: function 0, config table entry 32: I/O card; irq mask 10; iomask a, iospace 3f8-3ff; mwait_required io8 irqlevel powerdown audio
 pcmcia0: function 0, config table entry 33: I/O card; irq mask 10; iomask a, iospace 2f8-2ff; mwait_required io8 irqlevel powerdown audio
 pcmcia0: function 0, config table entry 34: I/O card; irq mask 10; iomask a, iospace 3e8-3ef; mwait_required io8 irqlevel powerdown audio
 pcmcia0: function 0, config table entry 35: I/O card; irq mask 10; iomask a, iospace 2e8-2ef; mwait_required io8 irqlevel powerdown audio
 pcmcia0: function 0, config table entry 36: I/O card; irq mask 1cb8; iomask 3, iospace 0-7; mwait_required io8 irqlevel powerdown audio
 pcmcia0: function 0, config table entry 48: I/O card; irq mask 10; iomask 3, iospace 0-7; mwait_required io8 irqlevel powerdown audio
 com3 at pcmcia0 function 0: <Billionton V92 Fax Modem, FM56C-BFS, 5.41>
 pcmcia_config_alloc: io 0 start=3f8 length=8 align=400 skew=3f8
 window iobase 4000 iomax 4007
 function iobase 4000 iomax 4007
 pcmcia0: ++enabled_count = 2
 pcmcia0: function 0 CCR at 0 offset 100: 60 8 ff 0, 3 20 ff 24, ff
 com3: ns8250 or ns16450, no fifo
 pcmcia0: --enabled_count = 1
 pcmcia0: --enabled_count = 0
 wd0 at atabus0 drive 0: <FUJITSU MHT2040AS>
 wd0: drive supports 16-sector PIO transfers, LBA addressing
 wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
 wd0(aceride0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
 atapibus0 at atabus1: 2 targets
 cd0 at atapibus0 drive 0: <CD-224E, , 2.7B> cdrom removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd0(aceride0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
 boot device: wd0
 root on wd0a dumps on wd0b
 root file system type: ffs
 cbb0: wait took 0.047771s
 pcmcia0: ++enabled_count = 1
 pcmcia0: function 0 CCR at 0 offset 100: 60 8 ff 0, 3 20 ff 24, ff
 pcmcia0: --enabled_count = 0
 wsdisplay0: screen 1 added (80x25, vt100 emulation)
 wsdisplay0: screen 2 added (80x25, vt100 emulation)
 wsdisplay0: screen 3 added (80x25, vt100 emulation)
 wsdisplay0: screen 4 added (80x25, vt100 emulation)

 NetBSD think.makhraj.net 3.99.14 NetBSD 3.99.14 (DEBUG) #1: Sat Dec 17 20:21:02 UTC 2005  jr0@think.netbsd.bsd:/usr/obj/sys/arch/i386/compile/DEBUG i386


 ----- End forwarded message -----

 -- 
 Ja'far ibn Richard Railton
 NetBSD/i386

 ----- End forwarded message -----

 -- 
 Ja'far ibn Richard Railton
 NetBSD/i386

From: "Ja'far Railton" <ibn.richard@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/30284
Date: Tue, 21 Feb 2006 20:34:49 +0000

 This is what /var/log/messages says when the modem is attached and then
 I so "tip modem":


 Feb 21 06:10:36 think /netbsd: pcmcia0: function 0, config table entry 33: I/O card; irq mask 10; iomask a, iospace 2f8-2ff; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:10:36 think /netbsd: pcmcia0: function 0, config table entry 34: I/O card; irq mask 10; iomask a, iospace 3e8-3ef; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:10:36 think /netbsd: pcmcia0: function 0, config table entry 35: I/O card; irq mask 10; iomask a, iospace 2e8-2ef; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:10:36 think /netbsd: pcmcia0: function 0, config table entry 36: I/O card; irq mask 1cb8; iomask 3, iospace 0-7; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:10:36 think /netbsd: pcmcia0: function 0, config table entry 48: I/O card; irq mask 10; iomask 3, iospace 0-7; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:10:36 think /netbsd: com3 at pcmcia0 function 0: <Billionton V92 Fax Modem, FM56C-BFS, 5.41>
 Feb 21 06:10:36 think /netbsd: pcmcia_config_alloc: io 0 start=3f8 length=8 align=400 skew=3f8
 Feb 21 06:10:36 think /netbsd: window iobase 4000 iomax 4007
 Feb 21 06:10:36 think /netbsd: function iobase 4000 iomax 4007
 Feb 21 06:10:36 think /netbsd: pcmcia0: ++enabled_count = 2
 Feb 21 06:10:36 think /netbsd: pcmcia0: function 0 CCR at 0 offset 100: 60 8 ff 0, 3 20 ff 24, ff
 Feb 21 06:10:36 think /netbsd: com3: ns8250 or ns16450, no fifo
 Feb 21 06:10:36 think /netbsd: pcmcia0: --enabled_count = 1
 Feb 21 06:10:36 think /netbsd: pcmcia0: --enabled_count = 0
 Feb 21 06:10:57 think sudo:      jr0 : TTY=ttyp4 ; PWD=/home/jr0 ; USER=root ; COMMAND=/usr/bin/tip modem
 Feb 21 06:10:57 think /netbsd: pcmcia0: ++enabled_count = 1
 Feb 21 06:10:57 think /netbsd: pcmcia0: function 0 CCR at 0 offset 100: 60 8 ff 0, 3 20 ff 24, ff
 Feb 21 06:11:03 think /netbsd: pcmcia0: deactivating com3 (function 0)
 Feb 21 06:11:04 think /netbsd: pcmcia0: --enabled_count = 0
 Feb 21 06:11:04 think /netbsd: pcmcia0: detaching com3 (function 0)
 Feb 21 06:11:04 think /netbsd: com3 detached
 Feb 21 06:11:06 think /netbsd: pcmcia0: ++enabled_count = 1
 Feb 21 06:11:06 think /netbsd: pcmcia0: CIS version PC Card Standard 5.1
 Feb 21 06:11:06 think /netbsd: pcmcia0: CIS info: Billionton V92 Fax Modem, FM56C-BFS, 5.41
 Feb 21 06:11:06 think /netbsd: pcmcia0: Manufacturer code 0x14e, product 0x88
 Feb 21 06:11:06 think /netbsd: pcmcia0: function 0: serial port, ccr addr 100 mask 13
 Feb 21 06:11:06 think /netbsd: pcmcia0: function 0, config table entry 32: I/O card; irq mask 10; iomask a, iospace 3f8-3ff; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:11:06 think /netbsd: pcmcia0: function 0, config table entry 33: I/O card; irq mask 10; iomask a, iospace 2f8-2ff; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:11:06 think /netbsd: pcmcia0: function 0, config table entry 34: I/O card; irq mask 10; iomask a, iospace 3e8-3ef; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:11:06 think /netbsd: pcmcia0: function 0, config table entry 35: I/O card; irq mask 10; iomask a, iospace 2e8-2ef; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:11:06 think /netbsd: pcmcia0: function 0, config table entry 36: I/O card; irq mask 1cb8; iomask 3, iospace 0-7; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:11:06 think /netbsd: pcmcia0: function 0, config table entry 48: I/O card; irq mask 10; iomask 3, iospace 0-7; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:11:06 think /netbsd: com3 at pcmcia0 function 0: <Billionton V92 Fax Modem, FM56C-BFS, 5.41>
 Feb 21 06:11:06 think /netbsd: pcmcia_config_alloc: io 0 start=3f8 length=8 align=400 skew=3f8
 Feb 21 06:11:06 think /netbsd: window iobase 4000 iomax 4007
 Feb 21 06:11:06 think /netbsd: function iobase 4000 iomax 4007
 Feb 21 06:11:06 think /netbsd: pcmcia0: ++enabled_count = 2
 Feb 21 06:11:06 think /netbsd: pcmcia0: function 0 CCR at 0 offset 100: 60 8 ff 0, 3 20 ff 24, ff
 Feb 21 06:11:06 think /netbsd: com3: ns8250 or ns16450, no fifo
 Feb 21 06:11:06 think /netbsd: pcmcia0: --enabled_count = 1
 Feb 21 06:11:06 think /netbsd: pcmcia0: --enabled_count = 0
 Feb 21 06:11:27 think /netbsd: pcmcia0: ++enabled_count = 1
 Feb 21 06:11:27 think /netbsd: pcmcia0: function 0 CCR at 0 offset 100: 60 8 ff 0, 3 20 ff 24, ff
 Feb 21 06:11:34 think /netbsd: pcmcia0: deactivating com3 (function 0)
 Feb 21 06:11:34 think /netbsd: pcmcia0: --enabled_count = 0
 Feb 21 06:11:34 think /netbsd: pcmcia0: detaching com3 (function 0)
 Feb 21 06:11:34 think /netbsd: com3 detached
 Feb 21 06:11:33 think /netbsd: com3: 2048 silo overflows, 1 ibuf flood
 Feb 21 06:11:45 think /netbsd: pcmcia0: ++enabled_count = 1
 Feb 21 06:11:45 think /netbsd: pcmcia0: CIS version PC Card Standard 5.1
 Feb 21 06:11:45 think /netbsd: pcmcia0: CIS info: Billionton V92 Fax Modem, FM56C-BFS, 5.41
 Feb 21 06:11:45 think /netbsd: pcmcia0: Manufacturer code 0x14e, product 0x88
 Feb 21 06:11:45 think /netbsd: pcmcia0: function 0: serial port, ccr addr 100 mask 13
 Feb 21 06:11:45 think /netbsd: pcmcia0: function 0, config table entry 32: I/O card; irq mask 10; iomask a, iospace 3f8-3ff; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:11:45 think /netbsd: pcmcia0: function 0, config table entry 33: I/O card; irq mask 10; iomask a, iospace 2f8-2ff; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:11:45 think /netbsd: pcmcia0: function 0, config table entry 34: I/O card; irq mask 10; iomask a, iospace 3e8-3ef; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:11:45 think /netbsd: pcmcia0: function 0, config table entry 35: I/O card; irq mask 10; iomask a, iospace 2e8-2ef; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:11:45 think /netbsd: pcmcia0: function 0, config table entry 36: I/O card; irq mask 1cb8; iomask 3, iospace 0-7; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:11:45 think /netbsd: pcmcia0: function 0, config table entry 48: I/O card; irq mask 10; iomask 3, iospace 0-7; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:11:45 think /netbsd: com3 at pcmcia0 function 0: <Billionton V92 Fax Modem, FM56C-BFS, 5.41>
 Feb 21 06:11:45 think /netbsd: pcmcia_config_alloc: io 0 start=3f8 length=8 align=400 skew=3f8
 Feb 21 06:11:45 think /netbsd: window iobase 4000 iomax 4007
 Feb 21 06:11:45 think /netbsd: function iobase 4000 iomax 4007
 Feb 21 06:11:45 think /netbsd: pcmcia0: ++enabled_count = 2
 Feb 21 06:11:45 think /netbsd: pcmcia0: function 0 CCR at 0 offset 100: 60 8 ff 0, 3 20 ff 24, ff
 Feb 21 06:11:45 think /netbsd: com3: ns8250 or ns16450, no fifo
 Feb 21 06:11:45 think /netbsd: pcmcia0: --enabled_count = 1
 Feb 21 06:11:45 think /netbsd: pcmcia0: --enabled_count = 0
 Feb 21 06:11:27 think sudo:      jr0 : TTY=ttyp4 ; PWD=/home/jr0 ; USER=root ; COMMAND=/usr/bin/tip modem
 Feb 21 06:12:02 think /netbsd: com3: 2048 silo overflows, 1 ibuf flood
 Feb 21 06:12:11 think /netbsd: pcmcia0: ++enabled_count = 1
 Feb 21 06:12:11 think /netbsd: pcmcia0: function 0 CCR at 0 offset 100: 60 8 ff 0, 3 20 ff 24, ff
 Feb 21 06:12:18 think /netbsd: pcmcia0: deactivating com3 (function 0)
 Feb 21 06:12:18 think /netbsd: pcmcia0: --enabled_count = 0
 Feb 21 06:12:18 think /netbsd: pcmcia0: detaching com3 (function 0)
 Feb 21 06:12:18 think /netbsd: com3 detached
 Feb 21 06:12:30 think /netbsd: pcmcia0: ++enabled_count = 1
 Feb 21 06:12:30 think /netbsd: pcmcia0: CIS version PC Card Standard 5.1
 Feb 21 06:12:30 think /netbsd: pcmcia0: CIS info: Billionton V92 Fax Modem, FM56C-BFS, 5.41
 Feb 21 06:12:30 think /netbsd: pcmcia0: Manufacturer code 0x14e, product 0x88
 Feb 21 06:12:30 think /netbsd: pcmcia0: function 0: serial port, ccr addr 100 mask 13
 Feb 21 06:12:30 think /netbsd: pcmcia0: function 0, config table entry 32: I/O card; irq mask 10; iomask a, iospace 3f8-3ff; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:12:30 think /netbsd: pcmcia0: function 0, config table entry 33: I/O card; irq mask 10; iomask a, iospace 2f8-2ff; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:12:30 think /netbsd: pcmcia0: function 0, config table entry 34: I/O card; irq mask 10; iomask a, iospace 3e8-3ef; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:12:30 think /netbsd: pcmcia0: function 0, config table entry 35: I/O card; irq mask 10; iomask a, iospace 2e8-2ef; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:12:30 think /netbsd: pcmcia0: function 0, config table entry 36: I/O card; irq mask 1cb8; iomask 3, iospace 0-7; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:12:30 think /netbsd: pcmcia0: function 0, config table entry 48: I/O card; irq mask 10; iomask 3, iospace 0-7; mwait_required io8 irqlevel powerdown audio
 Feb 21 06:12:30 think /netbsd: com3 at pcmcia0 function 0: <Billionton V92 Fax Modem, FM56C-BFS, 5.41>
 Feb 21 06:12:30 think /netbsd: pcmcia_config_alloc: io 0 start=3f8 length=8 align=400 skew=3f8
 Feb 21 06:12:30 think /netbsd: window iobase 4000 iomax 4007
 Feb 21 06:12:30 think /netbsd: function iobase 4000 iomax 4007
 Feb 21 06:12:30 think /netbsd: pcmcia0: ++enabled_count = 2
 Feb 21 06:12:30 think /netbsd: pcmcia0: function 0 CCR at 0 offset 100: 60 8 ff 0, 3 20 ff 24, ff
 Feb 21 06:12:30 think /netbsd: com3: ns8250 or ns16450, no fifo
 Feb 21 06:12:30 think /netbsd: pcmcia0: --enabled_count = 1
 Feb 21 06:12:31 think /netbsd: pcmcia0: --enabled_count = 0
 Feb 21 06:12:11 think sudo:      jr0 : TTY=ttyp4 ; PWD=/home/jr0 ; USER=root ; COMMAND=/usr/bin/tip modem
 Feb 21 06:12:36 think dhclient: DHCPREQUEST on fxp0 to 192.168.0.1 port 67
 Feb 21 06:12:36 think dhclient: DHCPACK from 192.168.0.1
 Feb 21 06:12:36 think dhclient: bound to 192.168.0.200 -- renewal in 249 seconds.
 -- 
 Ja'far ibn Richard Railton
 NetBSD/i386

From: jnemeth@victoria.tc.ca (John Nemeth)
To: "Ja'far Railton" <ibn.richard@gmail.com>,
	current-users@NetBSD.org
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/30284 (was Re: Getting ready to branch for 4.0)
Date: Tue, 25 Apr 2006 01:28:35 -0700

 On Sep 13,  5:39pm, "Ja'far Railton" wrote:
 } On 4/11/06, Martin Husemann <martin@duskware.de> wrote:
 } >
 } > the NetBSD project is about to create the netbsd-4 branch for the NetBSD 4.0
 } > release. However, before starting the release process, we would like to fix a
 } > few bugs that we consider show-stoppers.
 } >
 } > The following list is what the NetBSD developers came up with. If you
 } > would like to suggest adding "your favorite bug", let us know.
 } 
 } I hope kern/30284 can be looked at, especially if the 2.0 branch is on
 } the way out as that is what I have to run for my PCMCIA modem to work.

      Try the following patch for sys/dev/com_pcmcia.c.  It isn't a real
 fix, but may get your modem working for the time being (it works for
 me).

 --- com_pcmcia.c.orig	2006-01-03 19:30:45.000000000 -0800
 +++ com_pcmcia.c	2006-01-03 19:33:48.000000000 -0800
 @@ -177,6 +177,10 @@ com_pcmcia_validate_config(cfe)
  		return (EINVAL);
  	/* Some cards have a memory space, but we don't use it. */
  	cfe->num_memspace = 0;
 +
 +printf("cfe->iomask = %lu\n", cfe->iomask);
 +printf("cfe->iospace[0].length = %lu\n", cfe->iospace[0].length);
 +	cfe->iomask = 0;
  	return (0);
  }

 }-- End of excerpt from "Ja'far Railton"

From: "Ja'far Railton" <ibn.richard@gmail.com>
To: "John Nemeth" <jnemeth@victoria.tc.ca>
Cc: current-users@netbsd.org, gnats-bugs@netbsd.org
Subject: Re: kern/30284 (was Re: Getting ready to branch for 4.0)
Date: Wed, 26 Apr 2006 12:32:23 +0300

 On 4/25/06, John Nemeth <jnemeth@victoria.tc.ca> wrote:
 > On Sep 13,  5:39pm, "Ja'far Railton" wrote:
 > } On 4/11/06, Martin Husemann <martin@duskware.de> wrote:
 > } >
 > } > the NetBSD project is about to create the netbsd-4 branch for the Net=
 BSD 4.0

 > } I hope kern/30284 can be looked at, especially if the 2.0 branch is on
 > } the way out as that is what I have to run for my PCMCIA modem to work.
 >
 >      Try the following patch for sys/dev/com_pcmcia.c.  It isn't a real
 > fix, but may get your modem working for the time being (it works for

 Finally! Thank you so much - it works for me too.

 --
 Ja'far ibn Richard Railton

From: "Ja'far Railton" <ibn.richard@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/30284
Date: Sat, 29 Apr 2006 04:39:03 +0000

 --ZPt4rx8FFjLCG7dd
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 I attach the dmesg after the above modifications.




 --ZPt4rx8FFjLCG7dd
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=dbug

     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

 NetBSD 3.99.18 (SAFAR-PCMCIA) #0: Fri Apr 28 19:18:29 UTC 2006
 	jr0@think.makhraj.net:/usr/obj/sys/arch/i386/compile/SAFAR-PCMCIA
 total memory = 247 MB
 avail memory = 236 MB
 BIOS32 rev. 0 found at 0xf0210
 PCI BIOS rev. 2.1 found at 0xf0200
 pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
 PCI IRQ Routing Table rev. 1.0 found at 0xfb9d0, size 192 bytes (10 entries)
 PCI Interrupt Router at 000:07:0 (Acer Labs M1543 PCI-ISA Bridge compatible)
 ------------------------------------------
   device vendor product pin PIRQ IRQ stage
 ------------------------------------------
 000:06:0 0x10b9 0x5451   A  0x07  11  0    already assigned
 000:10:0 0x8086 0x1229   A  0x01  11  0    already assigned
 000:19:0 0x1217 0x6972   A  0x03  11  0    already assigned
 ------------------------------------------
 mainbus0 (root)
 pci_addr_fixup: 000:19:0 0x1217 0x6972 new address 0x0f800000
 cpu0 at mainbus0: (uniprocessor)
 cpu0: Intel Pentium III (686-class), 697.49 MHz, id 0x68a
 cpu0: features 387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
 cpu0: features 387f9ff<PGE,MCA,CMOV,PAT,PSE36,PN,MMX>
 cpu0: features 387f9ff<FXSR,SSE>
 cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
 cpu0: L2 cache 256 KB 32B/line 8-way
 cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
 cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
 cpu0: serial number 0000-068a-0003-e1a6-4891-6365
 cpu0: 8 page colors
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 pchb0 at pci0 dev 0 function 0
 pchb0: Acer Labs product 0x1621 (rev. 0x01)
 agp at pchb0 not configured
 ppb0 at pci0 dev 1 function 0: Acer Labs product 0x5247 (rev. 0x01)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled
 vga1 at pci1 dev 0 function 0: Trident Microsystems product 0x8620 (rev. 0x5d)
 wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
 wsmux1: connecting to wsdisplay0
 autri0 at pci0 dev 6 function 0: Acer Labs M5451 AC-Link Controller Audio Device (rev. 0x01)
 autri0: interrupting at irq 11
 autri0: ac97: Avance Logic ALC200/ALC201 codec; headphone, 18 bit DAC, 18 bit ADC, Realtek 3D
 audio0 at autri0: full duplex, mmap, independent
 midi0 at autri0: 4DWAVE MIDI UART
 pcib0 at pci0 dev 7 function 0
 pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0x00)
 fxp0 at pci0 dev 10 function 0: i82550 Ethernet, rev 13
 fxp0: interrupting at irq 11
 fxp0: Ethernet address 00:00:e2:56:c1:da
 inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 aceride0 at pci0 dev 16 function 0
 aceride0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc3)
 aceride0: bus-master DMA support present
 aceride0: primary channel configured to compatibility mode
 aceride0: primary channel interrupting at irq 14
 atabus0 at aceride0 channel 0
 aceride0: secondary channel configured to compatibility mode
 aceride0: secondary channel interrupting at irq 15
 atabus1 at aceride0 channel 1
 Acer Labs M7101 Power Management Controller (miscellaneous bridge) at pci0 dev 17 function 0 not configured
 cbb0 at pci0 dev 19 function 0: O2 Micro OZ6912/OZ6972 PCI-CardBus Bridge (rev. 0x00)
 ohci0 at pci0 dev 20 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
 ohci0: interrupting at irq 10
 ohci0: OHCI version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0
 uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 4 ports with 4 removable, self powered
 isa0 at pcib0
 lpt2 at isa0 port 0x3bc-0x3bf irq : polled
 pckbc0 at isa0 port 0x60-0x64
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard, using wsdisplay0
 pms0 at pckbc0 (aux slot)
 pckbc0: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0
 attimer0 at isa0 port 0x40-0x43: AT Timer
 pcppi0 at isa0 port 0x61
 midi1 at pcppi0: PC speaker
 sysbeep0 at pcppi0
 isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
 npx0 at isa0 port 0xf0-0xff
 npx0: using exception 16
 pcppi0: attached to attimer0
 isapnp0: no ISA Plug 'n Play devices found
 cbb0: interrupting at irq 11
 cardslot0 at cbb0 slot 0 flags 0
 cardbus0 at cardslot0: bus 2
 pcmcia0 at cardslot0
 apm0 at mainbus0: Advanced Power Management BIOS
 apm0: Power Management spec V1.2
 Kernelized RAIDframe activated
 pcmcia0: ++enabled_count = 1
 cis mem map cacc2000
 pcmcia0: CIS tuple chain:
  01 02 00 ff
 CISTPL_DEVICE type=null speed=null
  15 2b 05 01 42 69 6c 6c 69 6f 6e 74 6f 6e 20 56
  39 32 20 46 61 78 20 4d 6f 64 65 6d 00 46 4d 35
  36 43 2d 42 46 53 00 35 2e 34 31 00 ff
 CISTPL_VERS_1
  20 04 4e 01 88 00
 CISTPL_MANFID
  21 02 02 01
 CISTPL_FUNCID
  1a 05 01 30 00 01 13
 CISTPL_CONFIG
  1b 13 e0 81 9d 5f 55 4d 5d 26 36 35 fc 14 aa 60
  f8 03 07 24 28
 CISTPL_CFTABLE_ENTRY
  1b 07 21 08 aa 60 f8 02 07
 CISTPL_CFTABLE_ENTRY
  1b 07 22 08 aa 60 e8 03 07
 CISTPL_CFTABLE_ENTRY
  1b 07 23 08 aa 60 e8 02 07
 CISTPL_CFTABLE_ENTRY
  1b 06 24 18 23 30 b8 1c
 CISTPL_CFTABLE_ENTRY
  1b 03 30 08 23
 CISTPL_CFTABLE_ENTRY
  ff
 CISTPL_END
 cis mem map cacc2000
 CISTPL_LINKTARGET expected, code 00 observed
 com3 at pcmcia0 function 0: <Billionton V92 Fax Modem, FM56C-BFS, 5.41>
 cfe->iomask = 10
 cfe->iospace[0].length = 8
 pcmcia_config_alloc: io 0 start=3f8 length=8 align=8 skew=0
 window iobase 43f8 iomax 43ff
 function iobase 43f8 iomax 43ff
 pcmcia0: ++enabled_count = 2
 pcmcia0: function 0 CCR at 0 offset 100: 60 8 ff 0, 3 20 ff 24, ff
 com3: ns16550a, working fifo
 pcmcia0: --enabled_count = 1
 pcmcia0: --enabled_count = 0
 wd0 at atabus0 drive 0: <FUJITSU MHT2040AS>
 wd0: drive supports 16-sector PIO transfers, LBA addressing
 wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
 wd0(aceride0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
 atapibus0 at atabus1: 2 targets
 cd0 at atapibus0 drive 0: <CD-224E, , 2.7B> cdrom removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd0(aceride0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
 boot device: wd0
 root on wd0a dumps on wd0b
 root file system type: ffs
 pcmcia0: ++enabled_count = 1
 pcmcia0: function 0 CCR at 0 offset 100: 60 8 ff 0, 3 20 ff 24, ff
 pcmcia0: --enabled_count = 0
 fxp0: link state changed to DOWN
 wsdisplay0: screen 1 added (80x25, vt100 emulation)
 wsdisplay0: screen 2 added (80x25, vt100 emulation)
 wsdisplay0: screen 3 added (80x25, vt100 emulation)
 wsdisplay0: screen 4 added (80x25, vt100 emulation)
 pcmcia0: ++enabled_count = 1
 pcmcia0: function 0 CCR at 0 offset 100: 60 8 ff 0, 3 20 ff 24, ff
 pcmcia0: --enabled_count = 0

 --ZPt4rx8FFjLCG7dd--

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.