FreeBSD 9.1 RC1 and CAM issues with old SCSI drive
kirk russell
kirk at ba23.org
Sun Sep 9 17:11:25 UTC 2012
On Sun, Sep 9, 2012 at 4:54 PM, Alexander Motin <mav at freebsd.org> wrote:
> On 09.09.2012 16:25, kirk russell wrote:
>>
>> On Sat, Sep 8, 2012 at 12:29 PM, Alexander Motin <mav at 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 at ba23.org> http://www.ba23.org/
More information about the freebsd-stable
mailing list