Subject: kern/7907: pcic without slot
To: None <gnats-bugs@gnats.netbsd.org>
From: Jun-ichiro itojun Hagino <itojun@guava.itojun.org>
List: netbsd-bugs
Date: 07/03/1999 20:51:42
>Number:         7907
>Category:       kern
>Synopsis:       panic() on pcic without slot is not good for some notebook PCs
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jul  3 20:50:02 1999
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Organization:
	itojun.org
>Release:        NetBSD 1.4 boot floppy on i386
>Environment:
System: NetBSD guava.itojun.org 1.4 NetBSD 1.4 (GUAVA.v6) #3: Sat Jul 3 05:06:07 PDT 1999 itojun@guava.itojun.org:/usr/home/itojun/hyd/sys/arch/i386/compile/GUAVA.v6 i386


>Description:
	Some of notebook PCs have detachable docking station with PCMCIA slots.
	On DEC HiNote Ultra II, it has
		2 pcic (let's call them A and B)
		and 2 pcmcia slots for pcic A
		0 pcmcia slots for pcic B
	in the main chassis.
	pcic B serves pcmcia slots in the docking station.

	HiNote comes with a floppy docking station WITHOUT extra pcmcia slots.
	(DEC sells floppy docking station WITH extra pcmcia slots, separately)
	therefore, default configuration for HiNote Ultra II is:
		pcic A --- 2 slots
		pcic B --- 0 slots
	and it will go into panic() from sys/dev/ic/i82365.c:pcic_attach.

	They can't even run the boot floppy.
>How-To-Repeat:
	Use boot floppy with DEC HiNote Ultra II + floppy docking station
	without extra pcmcia slots.
>Fix:
	sys/dev/ic/i82365.c:pcic_attach should not panic().
	Instead,
	(1) it should abort the attach just like wdc found no wd device.
	(2) attach pcic itself, wait till the slot to appear (i.e. hot attach
		of docking station) and attach slots as necessary.
		I dunno how we can do this.
>Audit-Trail:
>Unformatted: