Subject: Re: ieee1394 sbp2 timeouts - uvm_fault page fault trap
To: NetBSD current-users <current-users@NetBSD.org>
From: Chris Tribo <ctribo@dtcc.edu>
List: current-users
Date: 09/08/2005 16:28:52
Trying to test out the USB part of the drive ended me up in a page  
fault trap.

I was able to get the drive to show up on the firewire connection by  
issuing fwctl -r. Then it just popped right up.

cd1 at scsibus0 target 0 lun 0: <LACIE, CDBP-241040A, 6.34> cdrom  
removable

So I then detached the firewire cable, expecting the drive to detach  
with it. It did not.

Not thinking, I plugged in the USB connector which died during the  
probe.

ehci0: handing over full speed device on port 4 to uhci1
uhub4: port 4, device disappeared after reset
umass0 at uhub1 port 2 configuration 1 interface 0
umass0: LaCie USB Mass STORAGE, rev 1.00/2.00, addr 3
umass0: using ATAPI over CBI
atapibus1 at umass0: 2 targets
probe(umass0:0:0): Check Condition on CDB: 0x12 00 00 00 24 00
      SENSE KEY: Not Ready
      ASC/ASCQ: Medium Not Present - Tray Closed

I then ran cdrecord -scanbus which hung and then scsictl scsibus0  
detach 0 0 which also hung. When they didn't work and weren't  
killable, I unplugged usb and plugged firewire back in which  
immediately caused a uvm_fault. db won't let me get a trace.

fwohci0: txd err= 3 miss Ack err
fwohci0: txd err= 3 miss Ack err
fwohci0: txd err= 3 miss Ack err
uvm_fault(0xc089540, 0 ,0 ,1) -> 0xe
kernel: page fault trap, code=0
faulted in DDB; continuing...
db{0}> e 0xc089540
netbsd:vmspace0: c089c340
db{0}> e c089c340
netbsd:kernel_pmap_store: 0


On Sep 8, 2005, at 3:00 PM, Chris Tribo wrote:

> I'm trying to use a Lacie firewire cd burner to test the firewire  
> code, cd1 never attaches. The device definitely takes a long time  
> to come to ready, but it has worked on XP and MacOS 9/X without a  
> problem.
>
> fwohci0: phy int
> fwohci0: BUS reset
> fwohci0: node_id=0xc800ffc1, gen=2, CYCLEMASTER mode
> ieee1394if0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
> ieee1394if0: bus manager 1 (me)
> ieee1394if0: New S400 device ID:00d04b010716403a
> sbp0 at ieee1394if0: SBP-2/SCSI over IEEE1394
> scsibus0 at sbp0: 1 target, 0 luns per target
> sbp0:0:0 request timeout(mgm orb:0x03e0501c) ... reset start
> (disconnect)
> fwohci0: BUS reset
> fwohci0: node_id=0xc800ffc0, gen=3, CYCLEMASTER mode
> ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
> ieee1394if0: bus manager 0 (me)
> (connect)
> fwohci0: BUS reset
> fwohci0: node_id=0x8800ffc0, gen=4, non CYCLEMASTER mode
> ieee1394if0: 2 nodes, maxhop <= 1, cable IRM = 0 (me)
> ieee1394if0: root node is not cycle master capable
> ieee1394if0: bus manager 0 (me)
> fwohci0: too many cycle lost, no cycle master presents?
> sbp0:0:0 request timeout(mgm orb:0x03e050d4) ... reset start
>
>
> $ scsictl scsibus0 scan 0 0
> scsictl: SCBUSIOSCAN: Invalid argument
>
> $ scsictl scsibus0 scan all all
> $
>
> $ scsictl scsibus0 reset
> scsictl: SCBUSIORESET: Inappropriate ioctl for device
>
>
> !DSPAM:43208a4e198811998372946!
>