NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/51037



The following reply was made to PR kern/51037; it has been noted by GNATS.

From: "Aaron J. Grier" <agrier%poofygoof.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/51037
Date: Sun, 14 Aug 2016 20:21:23 -0700

 slowly chipping away at this.
 
 from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209700:
 
 > It [FreeBSD target] supports tagged queueing of commands marked as
 > tagged.  For some reason the NetBSD initiator sets the "flags" field
 > of SCSI Command PDU to Untagged (0).  Not sure what the SCSI spec
 > says, to be honest, but it might it be an initiator error?
 
 turned on #define ISCSI_DEBUG 10 to see if I could get any clues, but
 nothing obvious is sticking out, maybe another set of eyes?
 
 here's the hopefully relevant part:
 
 ISCSI: scsipi_request RUN_XFER
 RunXfer: flags=22009, data=0xffffa0000c1b0000, datalen=65536, resid=65536, cmdlen=10, waitok=0
 RunXfer: Periph_lun = 0, cmd[1] = 0, cmdlen = 10
 S2C1: Send Command: CmdSN 1030, data_in 0, len 65536, totlen 0
 S2C1: Send_pdu: ccb=0xffffa00002490588, pcd=2, cdsp=5, pdu=0xffffa000024bf218, pdsp=3
 scsipi_req returns
 ISCSI: scsipi_request RUN_XFER
 RunXfer: flags=22009, data=0xffffa0000c1c0000, datalen=65536, resid=65536, cmdlen=10, waitok=0
 RunXfer: Periph_lun = 0, cmd[1] = 0, cmdlen = 10
 S2C1: Send Command: CmdSN 1031, data_in 0, len 65536, totlen 0
 S2C1: Send_pdu: ccb=0xffffa00002490378, pcd=2, cdsp=5, pdu=0xffffa000024bf4e8, pdsp=3
 scsipi_req returns
 ISCSI: scsipi_request RUN_XFER
 RunXfer: flags=22009, data=0xffffa0000c1d0000, datalen=65536, resid=65536, cmdlen=10, waitok=0
 RunXfer: Periph_lun = 0, cmd[1] = 0, cmdlen = 10
 S2C1: Send Command: CmdSN 1032, data_in 0, len 65536, totlen 0
 S2C1: Send_pdu: ccb=0xffffa00002490168, pcd=2, cdsp=5, pdu=0xffffa000024bf650, pdsp=3
 scsipi_req returns
 read_pdu_data: data segment length = 0
 S2C1: Rx Command Response rsp = 0, status = 0
 AddSernum bottom 0 [1031], top 1, num 1031, diff 1
 AckSernum bottom 0, top 0, num 1031 ExpSN 1032
 S2C1: CCB done, ccb = 0xffffa00002490798, disp = 5
 read_pdu_data: data segment length = 0
 S2C1: Rx Command Response rsp = 0, status = 0
 AddSernum bottom 0 [1032], top 1, num 1032, diff 1
 AckSernum bottom 0, top 0, num 1032 ExpSN 1033
 S2C1: CCB done, ccb = 0xffffa00002490588, disp = 5
 read_pdu_data: data segment length = 254
 S2C1: Rx Command Response rsp = 0, status = 2
 AddSernum bottom 0 [1033], top 1, num 1033, diff 1
 AckSernum bottom 0, top 0, num 1033 ExpSN 1034
 S2C1: CCB done, ccb = 0xffffa00002490168, disp = 5
 Scsipi_done, error=XS_SENSE, sense data=70 00 05 00...
 read_pdu_data: data segment length = 0
 S2C1: Rx Command Response rsp = 0, status = 0
 AddSernum bottom 0 [1034], top 1, num 1034, diff 1
 AckSernum bottom 0, top 0, num 1034 ExpSN 1035
 S2C1: CCB done, ccb = 0xffffa00002490378, disp = 5
 sd0(iscsi0:0:0:0): illegal request, data = 00 00 00 00 4e 00
 ISCSI: scsipi_request RUN_XFER
 RunXfer: flags=40100, data=0x0, datalen=0, resid=0, cmdlen=10, waitok=1
 RunXfer: Periph_lun = 0, cmd[1] = 0, cmdlen = 10
 S2C1: Send Command: CmdSN 1033, data_in 0, len 0, totlen 0
 S2C1: Send_pdu: ccb=0xffffa0000248ff58, pcd=2, cdsp=5, pdu=0xffffa000024c4ab0, pdsp=3
 scsipi_req returns
 read_pdu_data: data segment length = 0
 S2C1: Received NOP-In PDU, req_ccb=0x0, ITT=ffffffff, TTT=0, StatSN=40b
 S2C1: Send NOP_Out rx_pdu=0xffffa000024c4510
 S2C1: Send_pdu: ccb=0x0, pcd=0, cdsp=2, pdu=0xffffa000024c47e0, pdsp=2
 S2C1: Send NOP_Out rx_pdu=0x0
 S2C1: Send_pdu: ccb=0xffffa0000248fd48, pcd=2, cdsp=3, pdu=0xffffa000024c40d8, pdsp=2
 read_pdu_data: data segment length = 0
 S2C1: Received NOP-In PDU, req_ccb=0xffffa0000248fd48, ITT=c000234, TTT=ffffffff, StatSN=40b
 S2C1: CheckCmdSN - CmdSN=1033, ExpCmdSn=1034, waiting=0xffffa000024c4ab0, flags=a0
 S2C1: CheckCmdSN - CmdSN=1034, ExpCmdSn=1034, waiting=0x0, flags=80
 S2C1: CCB done, ccb = 0xffffa0000248fd48, disp = 3
 AddSernum bottom 0 [1035], top 1, num 1035, diff 1
 AckSernum bottom 0, top 0, num 1035 ExpSN 1036
 read_pdu_data: data segment length = 0
 S2C1: Rx Command Response rsp = 0, status = 0
 AddSernum bottom 0 [1036], top 1, num 1036, diff 1
 AckSernum bottom 0, top 0, num 1036 ExpSN 1037
 S2C1: CCB done, ccb = 0xffffa0000248ff58, disp = 5
 read_pdu_data: data segment length = 0
 S2C1: Received NOP-In PDU, req_ccb=0x0, ITT=ffffffff, TTT=0, StatSN=40d
 S2C1: Send NOP_Out rx_pdu=0xffffa000024c3f70
 S2C1: Send_pdu: ccb=0x0, pcd=0, cdsp=2, pdu=0xffffa000024c3598, pdsp=2
 read_pdu_data: data segment length = 0
 
 -- 
   Aaron J. Grier | "Not your ordinary poofy goof." | agrier%poofygoof.com@localhost
 


Home | Main Index | Thread Index | Old Index