Date: Sun, 9 Sep 2012 18:11:23 +0100 From: kirk russell <kirk@ba23.org> To: Alexander Motin <mav@freebsd.org> Cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD 9.1 RC1 and CAM issues with old SCSI drive Message-ID: <CAN1LDCHmGjJZyVOh36R60g=V4Mzg7oM%2BiNUQUJjdR%2BSUfyrV_w@mail.gmail.com> In-Reply-To: <504CBBB1.20905@FreeBSD.org> References: <504B2C35.3030800@FreeBSD.org> <CAN1LDCGW6ebevq2WTKMy%2BafRLH%2BSRNeV8FcifP=p%2B9161udU5w@mail.gmail.com> <504CBBB1.20905@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 9, 2012 at 4:54 PM, Alexander Motin <mav@freebsd.org> wrote: > On 09.09.2012 16:25, kirk russell wrote: >> >> On Sat, Sep 8, 2012 at 12:29 PM, Alexander Motin <mav@freebsd.org> wrote: >>> >>> Hi. >>> >>> It seems like both of your problems have the same cause: device report >>> wrong >>> size of INQUIRY data, that causes failure on attempt to fetch it. With >>> FreeBSD 9.0 it caused domain validation failures and so reduced transfer >>> rate, on 9.1 it also causes detection failure. I am not sure why >>> detection >>> worked on 9.0, it needs some deeper code comparison, but I think it is >>> mostly device problem. >>> >>> Could you send me output of such commands from FreeBSD 9.0: >>> camcontrol cmd da0 -vEc "12 00 00 00 24 00" -i 36 - | hd >>> camcontrol cmd da0 -vEc "12 00 00 00 fe 00" -i 254 - | hd >>> camcontrol cmd da0 -vEc "12 00 00 01 00 00" -i 256 - | hd >>> >>> -- >>> Alexander Motin >> >> [.....] > > It seems that problem can be in our SCSI code that rounds inquiry data size > up to even. Please try to comment out line > inquiry_len = roundup2(inquiry_len, 2); > in sys/cam/scsi/scsi_xpt.c and rebuild the kernel. It should probably fix > both device detection and transfer speed. > This is running 9.0-RELEASE, with your patch to scsi_xpt.c: da0 at ahc0 bus 0 scbus2 target 0 lun 0 da0: <COMPAQPC WDE9100W 1.01> Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit) da0: Command Queueing enabled da0: 8678MB (17773500 512 byte sectors: 255H 63S/T 1106C) This is running FreeBSD 9.1-RC1, with your patch to scsi_xpt.c: da0 at ahc0 bus 0 scbus2 target 0 lun 0 da0: <COMPAQPC WDE9100W 1.01> Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit) da0: Command Queueing enabled da0: 8678MB (17773500 512 byte sectors: 255H 63S/T 1106C) -- Kirk Russell <kirk@ba23.org> http://www.ba23.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN1LDCHmGjJZyVOh36R60g=V4Mzg7oM%2BiNUQUJjdR%2BSUfyrV_w>