Skip site navigation (1)Skip section navigation (2)
Date:      15 Jul 2003 19:01:52 +0200
From:      Martin <nakal@web.de>
To:        freebsd-hackers@freebsd.org
Subject:   Re: USB device programming with ugen [Solved]
Message-ID:  <1058288512.1026.30.camel@klotz.local>
In-Reply-To: <3F13A769.F7AF78CA@mindspring.com>
References:  <1058119316.547.22.camel@klotz.local> <3F13A769.F7AF78CA@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2003-07-15 at 09:04, Terry Lambert wrote:
> The attach should have failed, if it didn't have an interrupt.

Somehow uhci0 didn't have interrupt, but it managed to find the webcam
on ugen0. Don't ask me why. I have attached my logs below.
You can see many devices sharing same irq. I don't know what line 2
means exactly, but if it means that my USB-controller was assigned
irq 11, it could lock several important devices at once, if IRQs are 
not handled properly.

In new logs uhci0 was found configured on irq 9.


Earlier dmesg (from /var/log/messages):
Jul 11 20:35:58 xxx kernel: uhci0: <Intel 82371AB/EB (PIIX4) USB
controller> port 0xc000-0xc01f at device 7.2 on pci0
Jul 11 20:35:58 xxx kernel: pci_cfgintr: 0:7 INTD routed to irq 11
...
Jul 11 20:35:58 xxx kernel: ugen0: WINBOND W9967CF, rev 1.10/1.10, addr
2
...
Jul 11 20:35:58 xxx kernel: sym0: <875> port 0xc400-0xc4ff mem
0xe7002000-0xe7002fff,0xe7001000-0xe70010ff irq 11 at device 11.0 on
pci0
...
Jul 11 20:35:58 xxx kernel: atapci1: <HighPoint HPT366 UDMA66
controller> port 0xd400-0xd4ff,0xd000-0xd003,0xcc00-0xcc07 irq 11 at
device 19.0 on pci0
Jul 11 20:35:58 xxx kernel: ata2: at 0xcc00 on atapci1
Jul 11 20:35:58 xxx kernel: atapci2: <HighPoint HPT366 UDMA66
controller> port 0xe000-0xe0ff,0xdc00-0xdc03,0xd800-0xd807 irq 11 at
device 19.1 on pci0
Jul 11 20:35:58 xxx kernel: ata3: at 0xd800 on atapci2

Now dmesg:
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xc000-0xc01f irq
9 at device 7.2 on pci0
...
ugen0: WINBOND W9967CF, rev 1.10/1.10, addr 2
...
sym0: <875> port 0xc400-0xc4ff mem
0xe7002000-0xe7002fff,0xe7001000-0xe70010ff irq 11 at device 11.0 on
pci0
...
atapci1: <HighPoint HPT366 UDMA66 controller> port
0xd400-0xd4ff,0xd000-0xd003,0xcc00-0xcc07 irq 11 at device 19.0 on pci0
ata2: at 0xcc00 on atapci1
atapci2: <HighPoint HPT366 UDMA66 controller> port
0xe000-0xe0ff,0xdc00-0xdc03,0xd800-0xd807 irq 11 at device 19.1 on pci0




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1058288512.1026.30.camel>