Subject: kern/13557: isaattach: ISA bus already seen! on a laptop with its dock station
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jb@endymion.local.net>
List: netbsd-bugs
Date: 07/26/2001 13:48:18
>Number:         13557
>Category:       kern
>Synopsis:       isaattach: ISA bus already seen! on a laptop with its dock station
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 26 02:44:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5.1
>Organization:
	
>Environment:
	
System: NetBSD endymion 1.5.1 NetBSD 1.5.1 (endymion) #3: Thu Jul 26 02:16:02 CEST 2001 jb@endymion:/usr/src/sys/arch/i386/compile/endymion i386


>Description:
	Booting the kernel on my laptop (compaq armada 7360) when it
	is plugged on its docking station results in the following
	panic message : 
isa1 at pcib1panic: isaattach: ISA bus already seen!
>How-To-Repeat:
	I have no clue if this problem is reproductible with other
	laptops. Simply boot the generic laptop kernel on the machine
	when it is plugged on the dock station.
>Fix:
	The following works :

	/sys/arch/i386/pci/pcib.c :
	---------------------------------
	[...]
	void
	pcib_callback(self)
	        struct device *self;
	{
	        struct isabus_attach_args iba;
	        extern int isa_has_been_seen;
	
	        if (isa_has_been_seen == 0) {
	                /*
	                 * Attach the ISA bus behind this bridge.
	                 */
	                memset(&iba, 0, sizeof(iba));
	                iba.iba_busname = "isa";
	                iba.iba_iot = I386_BUS_SPACE_IO;
	                iba.iba_memt = I386_BUS_SPACE_MEM;
	#if NISA > 0
	                iba.iba_dmat = &isa_bus_dma_tag;
	#endif
	                config_found(self, &iba, pcib_print);
	        }
	}
	[...]
	----------------------------------

	but is maybe unsatisfactory (suggested by Aymeric Vincent).










>Release-Note:
>Audit-Trail:
>Unformatted: