Subject: Re: panic in new ieee1394 code
To: None <riz@tastylime.net>
From: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
List: current-users
Date: 07/17/2005 13:34:18
Hi, riz.


From: Jeff Rizzo <riz@tastylime.net>
Date: Sat, 16 Jul 2005 15:29:11 -0700

> (insert cable)
> 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
> scsibus1 at sbp0: 1 target, 0 luns per target
> sd1 at scsibus1 target 0 lun 0: <DMI, HDS722580VLAT20, 0438> disk fixed
> sd1: fabricating a geometry
> sd1: 307 TB, 78533 cyl, 64 head, 32 sec, 2105376 bytes/sect x 160836480
> sectors

> Oh, and here's how the disk shows up when connected via USB:
> sd0 at scsibus0 target 0 lun 0: <HDS72258, 0VLAT20, V320> disk fixed
> sd0: fabricating a geometry
> sd0: 78533 MB, 78533 cyl, 64 head, 32 sec, 512 bytes/sect x 160836480
> sectors

hmm...
I saw sys/dev/scsipi/sd.c::sdattach().  dp->blksize is different on sbp
and umass.  dp->blksize would set by sd_get_simplifiedparms() or
sd_get_capacity().


        case SDGP_RESULT_OK:
                format_bytes(pbuf, sizeof(pbuf),
                    (u_int64_t)dp->disksize * dp->blksize);
                aprint_normal(
                "%s, %ld cyl, %ld head, %ld sec, %ld bytes/sect x %llu sectors",
                    pbuf, dp->cyls, dp->heads, dp->sectors, dp->blksize,
                    (unsigned long long)dp->disksize);
                break;


I mistook the inquiry command perhaps.  ;-)
Thanks.
--
kiyohara