Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2003 23:04:04 -0700 (PDT)
From:      Nate Lawson <nate@root.org>
To:        Scott Long <scott_long@btc.adaptec.com>
Cc:        freebsd-firewire@freebsd.org
Subject:   Re: Errors during probe cause inifinite loop in sbp
Message-ID:  <20030525211548.E3603@root.org>
In-Reply-To: <3ED0E1B4.50005@btc.adaptec.com>
References:  <20030512170820.41494.qmail@web14811.mail.yahoo.com> <ybsfzn3z6g2.wl@ett.sat.t.u-tokyo.ac.jp> <3ED0D8F6.2070001@btc.adaptec.com> <ybsbrxrysm1.wl@ett.sat.t.u-tokyo.ac.jp> <3ED0E1B4.50005@btc.adaptec.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 25 May 2003, Scott Long wrote:
> Ok, the drive is returning a sense code of 'Invalid Field in CDB'.
> This means that it does support the INQUIRY command, but it doesn't like
> one of the fields that CAM is putting into it.  Without the full sense
> data, it's impossible to know which field it doesn't like.  Maybe Ken
> knows what to twiddle to find this out.
> I agree that there is a general bug in CAM where during device
> probing it can get stuck in an infinite retry loop.  It's possible that
> this is being triggered by the device having an excess of queued error
> status and CAM not being smart enough to dequeue all of it before trying
> to do the inquiry.

"Invalid field in CBD" is the proper error if you don't support EVPD data
in inquiry (that's the 0x80 in the CDB).

> > May  7 17:21:58 falcon kernel: sbp0:0:0 LOGIN
> > May  7 17:21:58 falcon kernel: sbp: alloc 1 xfer
> > May  7 17:21:58 falcon kernel: sbp0:0:1 LOGIN
> > May  7 17:21:58 falcon kernel: sbp0:0:2 LOGIN
> > May  7 17:21:58 falcon kernel: sbp0:0:0 login: len 12, ID 0, cmd 0000fffff0010000, recon_hold 0
> > May  7 17:21:58 falcon kernel: sbp0:0:0 sbp_busy_timeout
> > May  7 17:21:58 falcon kernel: sbp: alloc 2 xfer
> > May  7 17:21:58 falcon kernel: sbp0:0:0 sbp_agent_reset
> > May  7 17:21:58 falcon kernel: sbp0:0:0 sbp_do_attach
> > May  7 17:21:58 falcon kernel: sbp0:0:1 login: len 12, ID 1, cmd 0000fffff0020000, recon_hold 0
> > May  7 17:21:58 falcon kernel: sbp0:0:1 sbp_busy_timeout
> > May  7 17:21:58 falcon kernel: sbp0:0:1 sbp_agent_reset
> > May  7 17:21:58 falcon kernel: sbp0:0:1 sbp_do_attach
> > May  7 17:21:58 falcon kernel: sbp0:0:2 login: len 12, ID 2, cmd 0000fffff0040000, recon_hold 0
> > May  7 17:21:58 falcon kernel: sbp0:0:2 sbp_busy_timeout
> > May  7 17:21:58 falcon kernel: sbp0:0:2 sbp_agent_reset
> > May  7 17:21:58 falcon kernel: sbp0:0:2 sbp_do_attach
> > May  7 17:22:00 falcon kernel: sbp0:0:0 sbp_cam_scan_target
> > May  7 17:22:00 falcon kernel: sbp0:0:0 ORB status src:0 resp:0 dead:1 len:3 stat:c orb:01808b4fc
> > May  7 17:22:00 falcon kernel: sbp0:0:0 Request aborted

I don't know about the above messages (fw-specific).

> > May  7 17:22:00 falcon kernel: sbp0:0:0 XPT_SCSI_IO: cmd: 00 00 00 00 00 00 00 00 00 00, flags: 0xc0, 6b cmd/0b data/32b sense
> > May  7 17:22:00 falcon kernel: sbp0:0:0 SCSI status 2 sfmt 0 valid 0 key 2 code 3a qlfr 0 len 3

TUR command, response CHECK COND, reason medium not present.

> > May  7 17:22:00 falcon kernel: sbp0:0:0 sbp_agent_reset
> > May  7 17:22:00 falcon kernel: sbp0:0:0 sbp_cam_scan_lun
> > May  7 17:22:00 falcon kernel: sbp0:0:0 sbp_do_attach
> > May  7 17:22:00 falcon kernel: sbp0:0:1 ORB status src:0 resp:0 dead:1 len:3 stat:c orb:0180ea3c4
> > May  7 17:22:00 falcon kernel: sbp0:0:1 Request aborted
> > May  7 17:22:00 falcon kernel: sbp0:0:1 XPT_SCSI_IO: cmd: 12 21 80 00 ff 00 00 00 00 00, flags: 0x40, 6b cmd/255b data/18b sense
> > May  7 17:22:00 falcon kernel: sbp0:0:1 SCSI status 2 sfmt 0 valid 0 key 5 code 24 qlfr 0 len 3

INQUIRY with EVPD set, alternate lun, invalid field in cdb (i.e. serial
number data not present.)

> > May  7 17:22:00 falcon kernel: sbp0:0:1 sbp_agent_reset
> > May  7 17:22:00 falcon kernel: sbp0:0:1 sbp_do_attach
> > May  7 17:22:02 falcon kernel: sbp0:0:0 sbp_cam_scan_target
> > May  7 17:22:02 falcon kernel: sbp0:0:0 ORB status src:0 resp:0 dead:1 len:3 stat:c orb:01808b634
> > May  7 17:22:02 falcon kernel: sbp0:0:0 Request aborted
> > May  7 17:22:02 falcon kernel: sbp0:0:0 XPT_SCSI_IO: cmd: 25 00 00 00 00 00 00 00 00 00, flags: 0x40, 10b cmd/8b data/32b sense
> > May  7 17:22:02 falcon kernel: sbp0:0:0 SCSI status 2 sfmt 0 valid 0 key 2 code 3a qlfr 0 len 3
> > May  7 17:22:02 falcon kernel: sbp0:0:0 sbp_agent_reset

Read Capacity, check condition, medium not present.

Nothing here looks like it sent you into the loop.

-Nate



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