Subject: Re: panic in new ieee1394 code
To: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
From: Jeff Rizzo <riz@tastylime.net>
List: current-users
Date: 07/23/2005 22:38:05
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig6BAEBDB2B565C86520BF2FCD
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi!

KIYOHARA Takashi wrote:

>
>>>Please fabricate the blksize too.
>>>      
>>>
>
>  
>
>No.  You must reverse this patch.
>
>
>  
>

OK, I misunderstood.  It seems much better with the fabricated blocksize
now - it yields the expected geometry:

sd0: fabricating a geometry
sd0: 78533 MB, 78533 cyl, 64 head, 32 sec, 512 bytes/sect x 160836480
sectors


(full messages below, in case they're helpful)

>>>How about other HDD?
>>> 
>>>
>>>      
>>>
>>I don't have any other fw hard drives at the moment.
>>    
>>
>
>No.  Can you exchange internal HDD in your enclosure of IEEE1394.
>
>
>  
>
Unfortunately, I can't - this case does not open easily, and I don't
wish to break it.  (it was sold with the drive in it)

>>>And, how many is true geometry of your HDD?
>>> 
>>>
>>>      
>>>
>Your sd0 at scsibus0 fabricate tha geometry.  Therefore, I want your true
>geometry. 
>
>
>  
>
Looks like I won't be able to get you this, either.

I may have another fw hard drive available when I return in two weeks -
I'll try some more then.  I probably won't be able to do much, because
this drive has important MacOS data on it, so I can't write to it. 
NetBSD does not (yet) support HFS+, so I can't read from it either.  I
was just testing it out when I got the original crash, and thought I
should report it.

Thank you for your help thus far.

Here are the messages from the drive this time:

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:00063a27d409d3b0
sbp0 at ieee1394if0: SBP-2/SCSI over IEEE1394
sbp_attach (cold=0)
sbp_alloc_target
target: mgm_port: f0010020
scsibus0 at sbp0: 1 target, 0 luns per target
sbp_post_busreset
not alive
sbp_post_explore (sbp_cold=1)
not alive
sbp_post_explore (sbp_cold=1)
sbp_post_explore: EUI:00063a27d409d3b0 sbp_probe_target 0
target 0 lun 0 found
sbp0:0:0 ordered:1 type:0 EUI:00063a27d409d3b0 node:0 speed:2 maxrec:0 new!
sbp0:0:0 'DMI     ' 'HDS722580VLAT20 ' '000438'
sbp_login: sec = -1122183047 usec = 616094 ticks = 0
sbp0:0:0 LOGIN
sbp: alloc 1 xfer
sbp0:0:0 mgm orb: 0172901c
sbp0:0:0 sbp_mgm_callback
received address 0x0
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:00172901c
sbp0:0:0 No additional information to report
sbp0:0:0 login: len 16, ID 0, cmd 0000fffff0010000, recon_hold 0
sbp0:0:0 sbp_busy_timeout
sbp0:0:0 sbp_busy_timeout_callback
sbp0:0:0 sbp_agent_reset
sbp0:0:0 sbp_do_attach
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x00401024, timeout: 10000
opcode: 0x12
0x00 0x00 0x00 0x24 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 12 00 00 00 24 00 00 00 00 00, flags: 0x1000,
6b cmd/
36b data/0b sense
sbp_execute_ocb: seg 1, fb4dea4:36
sbp0:0:0 sbp_enqueue_ocb: 0x017290d4
sbp0:0:0 sbp_orb_pointer: 0x017290d4
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x017290d4 src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:0017290d4
sbp0:0:0 No additional information to report
sbp0:0:0 sbp_fix_inq_data
sbp0:0:0 sbp_orb_pointer_callback
sd0 at scsibus0 target 0 lun 0: <DMI, HDS722580VLAT20, 0438> disk fixed
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x00000384, timeout: 10000
opcode: 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 00 00 00 00 00 00 00 00 00 00, flags: 0x00,
6b cmd/0b
 data/0b sense
sbp_execute_ocb: seg 0
sbp0:0:0 sbp_enqueue_ocb: 0x0172918c
sbp0:0:0 sbp_orb_pointer: 0x0172918c
sbp0:0:0 sbp_orb_pointer_callback
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x0172918c src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:00172918c
sbp0:0:0 No additional information to report
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x00401024, timeout: 20000
opcode: 0x25
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 25 00 00 00 00 00 00 00 00 00, flags: 0x1000,
10b cmd
/8b data/0b sense
sbp_execute_ocb: seg 1, fb4dc14:8
sbp0:0:0 sbp_enqueue_ocb: 0x01729244
sbp0:0:0 sbp_orb_pointer: 0x01729244
sbp0:0:0 sbp_orb_pointer_callback
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x01729244 src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:001729244
sbp0:0:0 No additional information to report
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x00401024, timeout: 6000
opcode: 0x5a
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x10 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 5a 00 00 00 00 00 00 00 10 00, flags: 0x1000,
10b cmd
/16b data/0b sense
sbp_execute_ocb: seg 1, fb4dc84:16
sbp0:0:0 sbp_enqueue_ocb: 0x017292fc
sbp0:0:0 sbp_orb_pointer: 0x017292fc
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x017292fc src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:0017292fc
sbp0:0:0 No additional information to report
sbp0:0:0 sbp_orb_pointer_callback
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x00401024, timeout: 6000
opcode: 0x5a
0x08 0x04 0x00 0x00 0x00 0x00 0x00 0x20 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 5a 08 04 00 00 00 00 00 20 00, flags: 0x1000,
10b cmd
/32b data/0b sense
sbp_execute_ocb: seg 1, fb4dcc4:32
sbp0:0:0 sbp_enqueue_ocb: 0x017293b4
sbp0:0:0 sbp_orb_pointer: 0x017293b4
sbp0:0:0 sbp_orb_pointer_callback
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x017293b4 src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:0017293b4
sbp0:0:0 No additional information to report
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x00401024, timeout: 6000
opcode: 0x5a
0x00 0x05 0x00 0x00 0x00 0x00 0x00 0x28 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 5a 00 05 00 00 00 00 00 28 00, flags: 0x1000,
10b cmd
/40b data/0b sense
sbp_execute_ocb: seg 1, fb4dcc4:40
sbp0:0:0 sbp_enqueue_ocb: 0x0172946c
sbp0:0:0 sbp_orb_pointer: 0x0172946c
sbp0:0:0 sbp_orb_pointer_callback
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x0172946c src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:00172946c
sbp0:0:0 No additional information to report
sd0: fabricating a geometry
sd0: 78533 MB, 78533 cyl, 64 head, 32 sec, 512 bytes/sect x 160836480
sectors
Called sbpscsi_scsipi_request
Got set xfer mode
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x000001c4, timeout: 10000
opcode: 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 00 00 00 00 00 00 00 00 00 00, flags: 0x00,
6b cmd/0b
 data/0b sense
sbp_execute_ocb: seg 0
sbp0:0:0 sbp_enqueue_ocb: 0x01729524
sbp0:0:0 sbp_orb_pointer: 0x01729524
sbp0:0:0 sbp_orb_pointer_callback
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x01729524 src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:001729524
sbp0:0:0 No additional information to report

desktop# disklabel sd0
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x000001a0, timeout: 10000
opcode: 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 00 00 00 00 00 00 00 00 00 00, flags: 0x00,
6b cmd/0b
 data/0b sense
sbp_execute_ocb: seg 0
sbp0:0:0 sbp_enqueue_ocb: 0x017295dc
sbp0:0:0 sbp_orb_pointer: 0x017295dc
sbp0:0:0 sbp_orb_pointer_callback
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x017295dc src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:0017295dc
sbp0:0:0 No additional information to report
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x00401020, timeout: 20000
opcode: 0x25
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 25 00 00 00 00 00 00 00 00 00, flags: 0x1000,
10b cmd
/8b data/0b sense
sbp_execute_ocb: seg 1, fb4db94:8
sbp0:0:0 sbp_enqueue_ocb: 0x01729694
sbp0:0:0 sbp_orb_pointer: 0x01729694
sbp0:0:0 sbp_orb_pointer_callback
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x01729694 src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:001729694
sbp0:0:0 No additional information to report
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x00401020, timeout: 6000
opcode: 0x5a
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x10 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 5a 00 00 00 00 00 00 00 10 00, flags: 0x1000,
10b cmd
/16b data/0b sense
sbp_execute_ocb: seg 1, fb4dc04:16
sbp0:0:0 sbp_enqueue_ocb: 0x0172974c
sbp0:0:0 sbp_orb_pointer: 0x0172974c
sbp0:0:0 sbp_orb_pointer_callback
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x0172974c src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:00172974c
sbp0:0:0 No additional information to report
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x00401020, timeout: 6000
opcode: 0x5a
0x08 0x04 0x00 0x00 0x00 0x00 0x00 0x20 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 5a 08 04 00 00 00 00 00 20 00, flags: 0x1000,
10b cmd
/32b data/0b sense
sbp_execute_ocb: seg 1, fb4dc44:32
sbp0:0:0 sbp_enqueue_ocb: 0x01729804
sbp0:0:0 sbp_orb_pointer: 0x01729804
sbp0:0:0 sbp_orb_pointer_callback
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x01729804 src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:001729804
sbp0:0:0 No additional information to report
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x00401020, timeout: 6000
opcode: 0x5a
0x00 0x05 0x00 0x00 0x00 0x00 0x00 0x28 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 5a 00 05 00 00 00 00 00 28 00, flags: 0x1000,
10b cmd
/40b data/0b sense
sbp_execute_ocb: seg 1, fb4dc44:40
sbp0:0:0 sbp_enqueue_ocb: 0x017298bc
sbp0:0:0 sbp_orb_pointer: 0x017298bc
sbp0:0:0 sbp_orb_pointer_callback
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x017298bc src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:0017298bc
sbp0:0:0 No additional information to report
sd0: fabricating a geometry
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x00001009, timeout: 60000
opcode: 0x28
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 28 00 00 00 00 00 00 00 01 00, flags: 0x1000,
10b cmd
/512b data/0b sense
sbp_execute_ocb: seg 1, dfbe800:512
sbp0:0:0 sbp_enqueue_ocb: 0x01729974
sbp0:0:0 sbp_orb_pointer: 0x01729974
sbp0:0:0 sbp_orb_pointer_callback
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x01729974 src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:001729974
sbp0:0:0 No additional information to report
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x00001009, timeout: 60000
opcode: 0x28
0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 28 00 00 00 00 01 00 00 01 00, flags: 0x1000,
10b cmd
/512b data/0b sense
sbp_execute_ocb: seg 1, dfbe800:512
sbp0:0:0 sbp_enqueue_ocb: 0x01729a2c
sbp0:0:0 sbp_orb_pointer: 0x01729a2c
sbp0:0:0 sbp_orb_pointer_callback
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x01729a2c src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:001729a2c
sbp0:0:0 No additional information to report
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x00001009, timeout: 60000
opcode: 0x28
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 28 00 00 00 00 00 00 00 01 00, flags: 0x1000,
10b cmd
/512b data/0b sense
sbp_execute_ocb: seg 1, dfbe800:512
sbp0:0:0 sbp_enqueue_ocb: 0x01729ae4
sbp0:0:0 sbp_orb_pointer: 0x01729ae4
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x01729ae4 src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:001729ae4
sbp0:0:0 No additional information to report
sbp0:0:0 sbp_orb_pointer_callback
Called sbpscsi_scsipi_request
Got req_run_xfer
xs control: 0x00001009, timeout: 60000
opcode: 0x28
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
sbp0:0:0 XPT_SCSI_IO: cmd: 28 00 00 00 00 00 00 00 01 00, flags: 0x1000,
10b cmd
/512b data/0b sense
sbp_execute_ocb: seg 1, d77cbb0:512
sbp0:0:0 sbp_enqueue_ocb: 0x01729b9c
sbp0:0:0 sbp_orb_pointer: 0x01729b9c
sbp0:0:0 sbp_orb_pointer_callback
received address 0x0
sbp0:0:0 sbp_dequeue_ocb: 0x01729b9c src 1
sbp0:0:0 ORB status src:1 resp:0 dead:0 len:1 stat:0 orb:001729b9c
sbp0:0:0 No additional information to report
disklabel: Invalid signature in mbr record 0
# /dev/rsd0d:
type: SCSI
disk: mydisk
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 78533
total sectors: 160836480
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 160836480         0     4.2BSD      0     0     0  # (Cyl.      0 - 
78533*)
 d: 160836480         0     unused      0     0        # (Cyl.      0 - 
78533*)
disklabel: boot block size 0
disklabel: super block size 0
desktop#


--------------enig6BAEBDB2B565C86520BF2FCD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQCVAwUBQuMpQbOuUtxCgar5AQMyfgP8CrhDc+lXXFORKZ1gA6XrYmjEBI8P6Qbb
/hdCelkFSosLJ+KhBnJI/+KH2Gxrc+k5LGWgOdiHRPycEHjxtJPeAaqjbHfLHqYg
a+6NZ7txZA+wBuvYJqnA5WolJGB5sS2r5NaX3/j5PVOkrYEuomdjPftN0UDPHfkn
gsGvXW9Bc+U=
=PZsd
-----END PGP SIGNATURE-----

--------------enig6BAEBDB2B565C86520BF2FCD--