svn commit: r222520 - head/sys/cam/ata
Alexander Motin
mav at FreeBSD.org
Sat Mar 3 06:35:09 UTC 2012
On 03/03/12 07:31, Josh Paetzel wrote:
> On Aug 24, 2011, at 6:56 AM, Alexander Motin<mav at FreeBSD.org> wrote:
>
>> Goran Lowkrantz wrote:
>>> --On May 31, 2011 9:22:52 +0000 Alexander Motin<mav at FreeBSD.org> wrote:
>>>> Author: mav
>>>> Date: Tue May 31 09:22:52 2011
>>>> New Revision: 222520
>>>> URL: http://svn.freebsd.org/changeset/base/222520
>>>>
>>>> Log:
>>>> Add quirks to hint 4K physical sector (Advanced Format) for ATA disks
>>>> not reporting it properly (none? of known disks now).
>>>>
>>>> Hitachi and WDC AF disks seem could be identified more or less
>>>> formally.
>>>> For Seagate and Samsung enumerate some found models/series.
>>>> For other disks it can be forced with kern.cam.ada.X.quirks=1 tunable.
>>>
>>> Should this work with SAS/SATA cards like LSI 2008 (mps) too?
>>
>> No. In that case controller or driver emulate SCSI disk devices. At this
>> moment "da" driver has no idea about physical sector size. I've paused
>> my work on full physical sector support due to lack of respective
>> hardware, but porting only these quirks should not be difficult.
>>
>
> What hardware do you need?
I've already implemented physical sector size support for "da" at the
r228820 and r228846, but mostly theoretically. Disks reporting physical
sector sizes are still very rare (even SATA) and I don't have any of
them. But as soon as SCSI UNMAP support flag uses same VPD page as
physical sector size, I was able to test it at least in part of sending
right SCSI commands. It works at least with latest mps(4) IT firmware
SATL and SATA SSDs. Test with disk really reporting physical sector size
would be interesting.
I have recent info that some WD SATA disks started to reporting physical
sector size. Unluckily other disks with same model and firmware version
still don't. So I can't really say what hardware exactly do I need until
it is tested.
--
Alexander Motin
More information about the svn-src-all
mailing list