Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: panic: config_attach: duplicate uhub3



On Thu, Dec 03, 2009 at 05:23:48PM -0600, David Young wrote:
> On Sun, Nov 29, 2009 at 02:46:12PM +0100, Jarle Greipsland wrote:
> > Some console output (10-finger copy):
> > 
> > ehci0 at pci0 dev 26 function 7: vendor 0x8086 product 0x293c (rev. 0x03)
> > ehci0: interrupting at ioapic0 pin 23
> > ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2
> > usb3 at ehci0: USB revision 2.0
> > [ ... ]
> > uhub2 at usb2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> > uhub3 at usb3: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
> > panic: config_attach: duplicate uhub3
> > 
> > How can I help fix this problem?
> 
> Apply this patch to sys/kern/subr_autoconf.c and send the output.

The problem is that the selection of dev->dv_unit and the filling of the
cd_devs slot doesn't happen atomically.  Maybe use a magic non-NULL
value like -1 to indicate the cd_devs slot is taken but does not yet
contain an actual value in config_devalloc()?

-- 
Quentin Garnier - cube%cubidou.net@localhost - cube%NetBSD.org@localhost
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

Attachment: pgpaW52_xGZO_.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index