Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Mar 2000 00:41:33 -0800
From:      Mike Smith <msmith@freebsd.org>
To:        "Kenneth D. Merry" <ken@kdm.org>
Cc:        scsi@FreeBSD.ORG
Subject:   Re: chio trap with not-ready changer 
Message-ID:  <200003010841.AAA05125@mass.cdrom.com>
In-Reply-To: Your message of "Wed, 01 Mar 2000 01:25:28 MST." <20000301012528.A29274@panzer.kdm.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > I tried with both 1 and also 100.  With the latter, I get a lot of 
> > repeats, ending in:
> > 
> > (ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 1
> > (ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
> > (ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
> > (ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
> > (ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 0
> > (ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
> > (ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
> > (ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
> > (ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 0
> > (ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 0 1d 0 20 0
> > (ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
> > (ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
> > (ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 0 1d 0 20 0
> > (ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
> > (ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
> > (ch0:ahc0:0:4:0): fatal error, failed to attach to device
> > (ch0:ahc0:0:4:0): lost device
> > (ch0:ahc0:0:4:0): removing device entry
> > 
> > (Note two there with a retry count of 0.  Weird.)
> 
> Note that one has the SMS_DBD flag set in the second byte of the CDB,
> the other has it cleared.

I'm not sure what the significance of that is, actually.

> > With 1, there's obviously a lot less, but the same result.
> 
> Can you include a little more of the retries?  The disable block
> descriptors flag is getting cleared mighty late if the above is the tail
> end of the output from the 100 retries.

(ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 13
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
(ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 12
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
(ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 11
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
(ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 10
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
(ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 9
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
(ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 8
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
(ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 7
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
(ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 6
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
(ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 5
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
(ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 4
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
(ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 3
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred
(ch0:ahc0:0:4:0): CAM status = 0x4c, retry count = 2
(ch0:ahc0:0:4:0): MODE SENSE(06). CDB: 1a 8 1d 0 20 0
(ch0:ahc0:0:4:0): UNIT ATTENTION asc:29,0
(ch0:ahc0:0:4:0): Power on, reset, or bus device reset occurred

As far as I can see, they all look the same as the count=1 case.

> In any case, try putting a printf inside the SS_TUR case in
> cam_periph_error() in cam_periph.c, to see whether the quirk entry is
> getting matched correctly and therefore whether the test unit ready is
> getting issued.

Hmm.  Trying:

                                if (((err_action & SS_MASK) == SS_TUR)
                                 && save_ccb != NULL
                                 && ccb->ccb_h.retry_count > 0) {

printf("cam_periph_error: sending TUR\n");

I never see the above message.  

> I won't be able to debug this more until tomorrow -- time to sleep. :)

Sounds like a good idea. 8)

-- 
\\ Give a man a fish, and you feed him for a day. \\  Mike Smith
\\ Tell him he should learn how to fish himself,  \\  msmith@freebsd.org
\\ and he'll hate you for a lifetime.             \\  msmith@cdrom.com




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




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