From owner-svn-src-all@FreeBSD.ORG Sat Mar 3 06:35:09 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 808A2106566B for ; Sat, 3 Mar 2012 06:35:09 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id F3DDF8FC0A for ; Sat, 3 Mar 2012 06:35:08 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so2766825bkc.13 for ; Fri, 02 Mar 2012 22:35:08 -0800 (PST) Received-SPF: pass (google.com: domain of mavbsd@gmail.com designates 10.204.145.145 as permitted sender) client-ip=10.204.145.145; Authentication-Results: mr.google.com; spf=pass (google.com: domain of mavbsd@gmail.com designates 10.204.145.145 as permitted sender) smtp.mail=mavbsd@gmail.com; dkim=pass header.i=mavbsd@gmail.com Received: from mr.google.com ([10.204.145.145]) by 10.204.145.145 with SMTP id d17mr6854473bkv.77.1330756508085 (num_hops = 1); Fri, 02 Mar 2012 22:35:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=z8KKClxF9U0rexME8ep7aZa8M+wlLr1KtPVgVd00alE=; b=00FtD51h8PE6Be9FXgpusx952pthoMdAlntkEu18fuNnchG/6ULVbh4zSOqVmsDEB+ BXQltBX+Ei/h3QRZaxie4EvqbrGMdn+ApF510i/VYIA/zNerAub3+Vm3ZYFechWMJ8+N b4RwDmCHahAsu6CvyMW0C+iA78ebjX6sDjpmE3IqnSaOFmSTnbsDBT+moEkG80OjbxvE 38m9zaifu03gfzCtdsQn0hL0VWYftL6J6FNe4Hits2svxx/JbnBSTvCq14DZFw3IO+vB nTBdThAYFVsKSm4DozokTZfCT8aHzdyrCVsYfuuvU/uhyMwMGAsylrQmSZMgtQORAxvY Y/Hg== Received: by 10.204.145.145 with SMTP id d17mr5458963bkv.77.1330754780788; Fri, 02 Mar 2012 22:06:20 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id t17sm13109058bke.6.2012.03.02.22.06.19 (version=SSLv3 cipher=OTHER); Fri, 02 Mar 2012 22:06:19 -0800 (PST) Sender: Alexander Motin Message-ID: <4F51B4D9.50801@FreeBSD.org> Date: Sat, 03 Mar 2012 08:06:17 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120226 Thunderbird/10.0.2 MIME-Version: 1.0 To: Josh Paetzel References: <201105310922.p4V9MqYY016057@svn.freebsd.org> <4E550320.2030204@FreeBSD.org> <5BFD85CA-0C81-45E1-8587-7B4F4E19D254@tcbug.org> In-Reply-To: <5BFD85CA-0C81-45E1-8587-7B4F4E19D254@tcbug.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Goran Lowkrantz , "svn-src-all@freebsd.org" Subject: Re: svn commit: r222520 - head/sys/cam/ata X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Mar 2012 06:35:09 -0000 On 03/03/12 07:31, Josh Paetzel wrote: > On Aug 24, 2011, at 6:56 AM, Alexander Motin wrote: > >> Goran Lowkrantz wrote: >>> --On May 31, 2011 9:22:52 +0000 Alexander Motin 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