From owner-freebsd-scsi Wed Mar 1 0:41:40 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from mass.cdrom.com (mass.cdrom.com [204.216.28.184]) by hub.freebsd.org (Postfix) with ESMTP id 42B0137BE2D for ; Wed, 1 Mar 2000 00:41:38 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id AAA05125; Wed, 1 Mar 2000 00:41:33 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Message-Id: <200003010841.AAA05125@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Kenneth D. Merry" Cc: scsi@FreeBSD.ORG Subject: Re: chio trap with not-ready changer In-reply-to: Your message of "Wed, 01 Mar 2000 01:25:28 MST." <20000301012528.A29274@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 01 Mar 2000 00:41:33 -0800 From: Mike Smith Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > 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