Subject: Re: USB with iPod freezes machine
To: None <current-users@NetBSD.org>
From: =?ISO-8859-1?Q?Teijo_R=F6nk=E4?= <teijo.ronka@gmail.com>
List: current-users
Date: 05/19/2007 17:08:35
> Does the system indicate that an sd/wd instance is detached?  What happens
> if you try to read/write the filesystem at /mnt/ipod/, directly after
> step 4?

When i disconnect the iPod, the following comes to log:

May 19 16:42:26 reming /netbsd: umass0: at uhub4 port 3 (addr 2) disconnected
May 19 16:42:26 reming /netbsd: sd0(umass0:0:0:0): generic HBA error
May 19 16:42:26 reming /netbsd: sd0 detached
May 19 16:42:26 reming /netbsd: scsibus0 detached
May 19 16:42:26 reming /netbsd: umass0 detached

Nothing happens, if i try to read /mnt/ipod after that, it's empty.

> Will you retry these steps with a GENERIC_DIAGNOSTIC kernel?  That may
> provide a useful panic instead of a hang.

The kernel i'm using to test this:
NetBSD 4.99.19 (GENERIC_DIAGNOSTIC) #0: Thu May 17 18:59:21 PDT 2007

The iPod is recognized like this:
May 19 16:41:38 reming /netbsd: umass0 at uhub4 port 3 configuration 1
interface 0
May 19 16:41:38 reming /netbsd:
May 19 16:41:38 reming /netbsd: umass0: Apple iPod, rev 2.00/0.02, addr 2
May 19 16:41:38 reming /netbsd: umass0: using SCSI over Bulk-Only
May 19 16:41:38 reming /netbsd: scsibus0 at umass0: 2 targets, 1 lun per target
May 19 16:41:38 reming /netbsd: sd0 at scsibus0 target 0 lun 0:
<Apple, iPod, 1.62> disk removable
May 19 16:41:41 reming /netbsd: sd0: 28615 MB, 7 cyl, 255 head, 63
sec, 512 bytes/sect x 58605120 sectors
May

And the usb at boot:
May 19 17:00:03 reming /netbsd: ehci0 at pci0 dev 16 function 4: VIA
Technologies VT8237 EHCI USB Controller (rev. 0x86)
May 19 17:00:03 reming /netbsd: ehci0: interrupting at ioapic0 pin 21 (irq 11)
May 19 17:00:03 reming /netbsd: ehci0: BIOS has given up ownership
May 19 17:00:03 reming /netbsd: ehci0: EHCI version 1.0
May 19 17:00:03 reming /netbsd: ehci0: companion controllers, 2 ports
each: uhci0 uhci1 uhci2 uhci3
May 19 17:00:03 reming /netbsd: usb4 at ehci0: USB revision 2.0
May 19 17:00:03 reming /netbsd: uhub4 at usb4
May 19 17:00:03 reming /netbsd: uhub4: VIA Technologies EHCI root hub,
class 9/0, rev 2.00/1.00, addr 1
May 19 17:00:03 reming /netbsd: uhub4: 8 ports with 8 removable, self powered
M

I reconnect the iPod, it's recognized, ls /mnt/ipod shows nothing.
Then mount it and ls /mnt/ipod and the machine freezes.  I can change
through screens with Ctrl-Alt-Fn though, but can't type anything.  ssh
dies, but the machine still replies to ping.  Nothing is written to
log.

- Teijo