Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Mar 2012 08:06:17 +0200
From:      Alexander Motin <mav@FreeBSD.org>
To:        Josh Paetzel <josh@tcbug.org>
Cc:        Goran Lowkrantz <goran.lowkrantz@ismobile.com>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>
Subject:   Re: svn commit: r222520 - head/sys/cam/ata
Message-ID:  <4F51B4D9.50801@FreeBSD.org>
In-Reply-To: <5BFD85CA-0C81-45E1-8587-7B4F4E19D254@tcbug.org>
References:  <201105310922.p4V9MqYY016057@svn.freebsd.org> <ED55D7418551E18CBB78E04E@syn> <4E550320.2030204@FreeBSD.org> <5BFD85CA-0C81-45E1-8587-7B4F4E19D254@tcbug.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 03/03/12 07:31, Josh Paetzel wrote:
> On Aug 24, 2011, at 6:56 AM, Alexander Motin<mav@FreeBSD.org>  wrote:
>
>> Goran Lowkrantz wrote:
>>> --On May 31, 2011 9:22:52 +0000 Alexander Motin<mav@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F51B4D9.50801>