Date: Tue, 14 Jan 2003 20:13:01 +0100 From: Joerg Wunsch <j@uriah.heep.sax.de> To: "Justin T. Gibbs" <gibbs@scsiguy.com> Cc: freebsd-scsi@freebsd.org Subject: Re: quirk candidate: SEAGATE ST52160N Message-ID: <20030114201301.A19952@uriah.heep.sax.de> In-Reply-To: <808290000.1042552117@aslan.scsiguy.com>; from gibbs@scsiguy.com on Tue, Jan 14, 2003 at 06:48:37AM -0700 References: <20030113220055.D50550@uriah.heep.sax.de> <147830000.1042501904@aslan.btc.adaptec.com> <20030114074853.A71485@uriah.heep.sax.de> <774150000.1042549034@aslan.scsiguy.com> <20030114143505.A12331@uriah.heep.sax.de> <808290000.1042552117@aslan.scsiguy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
As Justin T. Gibbs wrote: > > Isn't byte 0 the `35' for the command? > Byte 0 of the sense data. Ah, now i see. > The strange thing is that the bogus > error code varied. I wonder if we are somehow corrupting the > sense data. Hmm, i've got remote GDB on that machine. Here's the contents of ccb.ccb_h and ccb.csio after the command: (gdb) p ccb.ccb_h $3 = {pinfo = {priority = 1, generation = 1287, index = -2}, xpt_links = { le = {le_next = 0x0, le_prev = 0xc091b668}, sle = {sle_next = 0x0}, tqe = { tqe_next = 0x0, tqe_prev = 0xc091b668}, stqe = {stqe_next = 0x0}}, sim_links = {le = {le_next = 0x0, le_prev = 0xc02fa3b4}, sle = { sle_next = 0x0}, tqe = {tqe_next = 0x0, tqe_prev = 0xc02fa3b4}, stqe = { stqe_next = 0x0}}, periph_links = {le = {le_next = 0x0, le_prev = 0x4fc52aec}, sle = {sle_next = 0x0}, tqe = {tqe_next = 0x0, tqe_prev = 0x4fc52aec}, stqe = {stqe_next = 0x0}}, retry_count = 1, cbfcnp = 0xc01365c0 <dadone>, func_code = XPT_SCSI_IO, status = 588, path = 0xc1146520, path_id = 0, target_id = 3, target_lun = 0, flags = 192, periph_priv = {entries = {{ptr = 0x4, field = 4, bytes = "\004\0\0"}, { ptr = 0xc4222ab0, field = 3290573488, bytes = "°*\"Ä"}}, bytes = "\004\0\0\0°*\"Ä"}, sim_priv = {entries = {{ptr = 0xc10b41c0, field = 3238740416, bytes = "ÀA\vÁ"}, {ptr = 0xc1297000, field = 3240718336, bytes = "\0p)Á"}}, bytes = "ÀA\vÁ\0p)Á"}, timeout = 3600000, timeout_ch = {callout = 0xc1c93438}} (gdb) p ccb.csio $4 = {ccb_h = {pinfo = {priority = 1, generation = 1287, index = -2}, xpt_links = {le = {le_next = 0x0, le_prev = 0xc091b668}, sle = { sle_next = 0x0}, tqe = {tqe_next = 0x0, tqe_prev = 0xc091b668}, stqe = {stqe_next = 0x0}}, sim_links = {le = {le_next = 0x0, le_prev = 0xc02fa3b4}, sle = {sle_next = 0x0}, tqe = {tqe_next = 0x0, tqe_prev = 0xc02fa3b4}, stqe = {stqe_next = 0x0}}, periph_links = { le = {le_next = 0x0, le_prev = 0x4fc52aec}, sle = {sle_next = 0x0}, tqe = {tqe_next = 0x0, tqe_prev = 0x4fc52aec}, stqe = { stqe_next = 0x0}}, retry_count = 1, cbfcnp = 0xc01365c0 <dadone>, func_code = XPT_SCSI_IO, status = 588, path = 0xc1146520, path_id = 0, target_id = 3, target_lun = 0, flags = 192, periph_priv = {entries = {{ ptr = 0x4, field = 4, bytes = "\004\0\0"}, {ptr = 0xc4222ab0, field = 3290573488, bytes = "°*\"Ä"}}, bytes = "\004\0\0\0°*\"Ä"}, sim_priv = {entries = {{ptr = 0xc10b41c0, field = 3238740416, bytes = "ÀA\vÁ"}, {ptr = 0xc1297000, field = 3240718336, bytes = "\0p)Á"}}, bytes = "ÀA\vÁ\0p)Á"}, timeout = 3600000, timeout_ch = {callout = 0xc1c93438}}, next_ccb = 0xc4222ac8, req_map = 0xc01868ae "\203Ä\f¡ ..À\205Àt\016¡ ..ÀH£ ..Àë\f\220¸\004", data_ptr = 0x0, dxfer_len = 0, sense_data = {error_code = 4 '\004', segment = 0 '\0', flags = 0 '\0', info = "\0\001\0", extra_len = 0 '\0', cmd_spec_info = "Ø*\"Ä", add_sense_code = 216 'Ø', add_sense_code_qual = 42 '*', fru = 34 '"', sense_key_spec = "Ä`o", extra_bytes = "'À\004\0\0\0$+\"Ĭ\227(À"}, sense_len = 32 ' ', cdb_len = 10 '\n', sglist_cnt = 49431, scsi_status = 2 '\002', sense_resid = 0 '\0', resid = 0, cdb_io = { cdb_ptr = 0x35 <Address 0x35 out of bounds>, cdb_bytes = "5\0\0\0\0\0\0\0\0\0\"Ä~\236\0"}, msg_ptr = 0xc4222b08 "\020", msg_len = 24, tag_action = 32 ' ', tag_id = 16, init_id = 16} If you've got a few more hints where to trace something, that should be easy to do. The machine is a scratch box only which i can reboot at will. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) 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?20030114201301.A19952>