Subject: kern/10064: tcic driver crashes at boot
To: None <gnats-bugs@gnats.netbsd.org>
From: Andreas Gustafsson <gson@nominum.com>
List: netbsd-bugs
Date: 05/07/2000 13:03:12
>Number:         10064
>Category:       kern
>Synopsis:       tcic driver crashes at boot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 07 13:04:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current of May 6, 2000
>Organization:

>Environment:

System: NetBSD guava.araneus.fi 1.4Y NetBSD 1.4Y (GUAVA) #3: Fri May 5 22:02:54 PDT 2000 root@guava.araneus.fi:/usr/src/sys/arch/i386/compile/GUAVA i386


>Description:

When booting NetBSD with an ActionTec PC300 PCMCIA card reader
installed, the kernel gets a page fault trap in strcmp() during the
boot sequence:

    tcic0 at isa0 port 0x240-0x24f iomem 0xd0000-0xd3fff: using irq 10
    tcic0: Databook DB86072 has sockets A and B
    uvm_fault(0xf0413da0, 0x8000, 0, 1 -> 1)
    kernel: page fault trap, code=0
    stopped in swapper at strcmp+0xe: movb 0(%eax),%cl

>How-To-Repeat:

Install ActionTec PCMCIA PC300 card reader on ISA bus.
Boot NetBSD.

>Fix:

After the following change, the PCMCIA card reader works beautifully.

Index: sys/dev/ic/tcic2.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/ic/tcic2.c,v
retrieving revision 1.3
diff -u -r1.3 tcic2.c
--- tcic2.c	2000/01/13 09:38:17	1.3
+++ tcic2.c	2000/05/07 19:03:48
@@ -421,6 +421,7 @@
 
 	/* now, config one pcmcia device per socket */
 
+	paa.paa_busname = "pcmcia";
 	paa.pct = (pcmcia_chipset_tag_t) h->sc->pct;
 	paa.pch = (pcmcia_chipset_handle_t) h;
 	paa.iobase = h->sc->iobase;
>Release-Note:
>Audit-Trail:
>Unformatted: