From owner-freebsd-hardware@FreeBSD.ORG Mon Sep 23 06:23:11 2013 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 71DC7CB3; Mon, 23 Sep 2013 06:23:11 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: from mail-ve0-x233.google.com (mail-ve0-x233.google.com [IPv6:2607:f8b0:400c:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 215A821A9; Mon, 23 Sep 2013 06:23:11 +0000 (UTC) Received: by mail-ve0-f179.google.com with SMTP id c14so1907260vea.38 for ; Sun, 22 Sep 2013 23:23:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=wEkIsMFCtxXIrwTeLqXlyqA1Z/cuqqXqk8vEr9pC038=; b=IL9OBphDIhrHBprUZYESgZXS96EIgoFdnHpWx/8u2C8gUYdn7IK2tBVcnPMZBVvpbK m15ky0Yljf2K88IGDfLlTj65RhJ0Lwb16GS1zMhejXkHUOXdP0bzNbNoxeIO+xLsq+WA rEgS0qxCln3Jf3UcgcbM9wUpSvodHD8vq69BBPyzAufNl7lavWQQcGxRQ7sU6vGoO51q Wdt8OMSpS3ZXqJm+q6gnbVsNNHPAGoGY1UlQHdqyYQ9g+EYQN7OxIQzpZl6NynmkJN6n ZL4rKWpvgubEjjsLrJLmQAwC/zF0Oc6p6gfaMB70nM+iHYvigFadhcn7lbFvhH1CoTQk CF2g== X-Received: by 10.220.237.208 with SMTP id kp16mr20500450vcb.4.1379917390166; Sun, 22 Sep 2013 23:23:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.225.34 with HTTP; Sun, 22 Sep 2013 23:22:40 -0700 (PDT) In-Reply-To: References: From: Jia-Shiun Li Date: Mon, 23 Sep 2013 14:22:40 +0800 Message-ID: Subject: Re: What's the state of AF-4Kn support? To: Ravi Pokala Content-Type: text/plain; charset=UTF-8 Cc: freebsd-hackers@freebsd.org, "freebsd-hardware@freebsd.org" X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2013 06:23:11 -0000 On Wed, Sep 18, 2013 at 10:49 PM, Ravi Pokala wrote: > > What you describe is the 'AF-512e' format - 4KB physical sectors > *emulating* 512B logical sectors. See [ > https://en.wikipedia.org/wiki/Advanced_Format#Advanced_Format_512e ; > http://www.idema.org/?page_id=2153 ]. With AF-512e, yes, the HDD firmware > does the read/modify/write for I/Os smaller than the physical sector size. > It is intended to be a low-cost/transitional format, allowing the HDD > vendors to get the advantages of 4KB physical sectors (better error > detection/correction algorithms, better areal density => lower cost) w/o > breaking compatibility with decades of firmware and software that expect > 512B logical sectors. > > What I'm asking about is AF-4kn - 4KB *logical* as well as physical > sectors. All the enterprise HDD vendors have told us is that AF-4Kn drives > expect data IO to be 4KB, and will reject smaller transfers. (*metadata* > IO - SMART, IDENTIFY_DEVICE, READ_LOG/WRITE_LOG, etc - will remain 512B.) > > Doing some more digging, I found this post from ivoras which I missed the > first time around [ > http://ivoras.net/blog/tree/2011-01-01.freebsd-on-4k-sector-drives.html ]; > that tends to support my initial assessment - filesystem stuff should Just > Work[tm] - plus adds the detail that direct drive I/O (the example he > gives is trying to `dd' 10 bytes) will be rejected because it is smaller > than the raw-device access granularity. I've also looked at 'ata_da.c' and > see that adaregister() looks at both quirks and IDENTIFY_DEVICE data to > determine the logical block size. > > So, that leaves the bootstrap code as the remaining question-mark. Does > anyone what AF-4Kn support looks like there? > CC -hackers. Thanks for the clarification. Is there any 4Kn HDDs shopping now? I am not aware of any. BTW I believe UFS and ZFS have proper design for 4K-sectors, but FreeBSD needs some ecosystem connections to get samples early to test, incorporate supports and validate for it. Or we will need to wait until it appears on market and someone got caught into some kind of bugs. Regards, Jia-Shiun. From owner-freebsd-hardware@FreeBSD.ORG Mon Sep 23 08:14:14 2013 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1DDED85B; Mon, 23 Sep 2013 08:14:14 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-bk0-x229.google.com (mail-bk0-x229.google.com [IPv6:2a00:1450:4008:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7C4492705; Mon, 23 Sep 2013 08:14:13 +0000 (UTC) Received: by mail-bk0-f41.google.com with SMTP id na10so1099680bkb.28 for ; Mon, 23 Sep 2013 01:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=reply-to:from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:thread-index :content-language; bh=I4+ffUWY/nGbeiGVQmmRbHthV8hYdpRPz82yS4UcMO8=; b=cIj8bErT1fh9B4HxJseLOA9fssruqGszaP4n+pSWEWiRRYUQXvhChqBmE6BmbGVqGs LasI3HrjRWq4NK3D9Avk45uO65pt500RlxZYjnxzLkdm8aYvOtM1Q0ggExeOfrxBZ0wA Q3R95GElxr1TQkU8Z4O0GG0s6s6U2I5lKvzNwHDaQCZ4R7jcja6n52ecsMxc0YTIo+bQ zcB0UUCJyU6BtAL0tqv0KGlg2kJ0pZal+InyxNJqScrVer1qg2aSXZP+KAG94M0SLHcs 7Wn2qP9V05R4RdcVEFTk9UeAQfuGQOYyn8T34q5DSMmlKGjj1wc0oZoSquIMpd3ddHLq 7GHQ== X-Received: by 10.205.15.72 with SMTP id pt8mr16452362bkb.17.1379924051312; Mon, 23 Sep 2013 01:14:11 -0700 (PDT) Received: from rimwks1w7x64 ([2001:470:1f15:8e:c8ff:267:ab31:49e1]) by mx.google.com with ESMTPSA id jt14sm8176913bkb.0.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 23 Sep 2013 01:14:10 -0700 (PDT) From: rozhuk.im@gmail.com To: "'Jia-Shiun Li'" , "'Ravi Pokala'" References: In-Reply-To: Subject: RE: What's the state of AF-4Kn support? Date: Mon, 23 Sep 2013 12:13:58 +0400 Message-ID: <523ff852.4ee8cc0a.44b6.ffffacba@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac64JWd+qAS+eZxGTWGEQro0C6z95AADz35Q Content-Language: ru Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Rozhuk.IM@gmail.com List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2013 08:14:14 -0000 # install gpart create -s GPT ada1 gpart show gpart add -i 1 -t freebsd-boot -b 40 -s 512 ada1 gpart add -i 2 -t freebsd-ufs -b 552 -s ..... ada1 gpart bootcode -b /boot/pmbr ada1 gpart bootcode -p /boot/gptboot -i 1 ada1 # for data gpart create -s GPT ada1 gpart show gpart add -i 1 -t freebsd-ufs -b 40 -s ..... ada1 > -----Original Message----- > From: owner-freebsd-hackers@freebsd.org [mailto:owner-freebsd- > hackers@freebsd.org] On Behalf Of Jia-Shiun Li > Sent: Monday, September 23, 2013 10:23 AM > To: Ravi Pokala > Cc: freebsd-hackers@freebsd.org; freebsd-hardware@freebsd.org > Subject: Re: What's the state of AF-4Kn support? > > On Wed, Sep 18, 2013 at 10:49 PM, Ravi Pokala > wrote: > > > > What you describe is the 'AF-512e' format - 4KB physical sectors > > *emulating* 512B logical sectors. See [ > > https://en.wikipedia.org/wiki/Advanced_Format#Advanced_Format_512e ; > > http://www.idema.org/?page_id=2153 ]. With AF-512e, yes, the HDD > > firmware does the read/modify/write for I/Os smaller than the > physical sector size. > > It is intended to be a low-cost/transitional format, allowing the HDD > > vendors to get the advantages of 4KB physical sectors (better error > > detection/correction algorithms, better areal density => lower cost) > > w/o breaking compatibility with decades of firmware and software that > > expect 512B logical sectors. > > > > What I'm asking about is AF-4kn - 4KB *logical* as well as physical > > sectors. All the enterprise HDD vendors have told us is that AF-4Kn > > drives expect data IO to be 4KB, and will reject smaller transfers. > > (*metadata* IO - SMART, IDENTIFY_DEVICE, READ_LOG/WRITE_LOG, etc - > > will remain 512B.) > > > > Doing some more digging, I found this post from ivoras which I missed > > the first time around [ > > http://ivoras.net/blog/tree/2011-01-01.freebsd-on-4k-sector- > drives.htm > > l ]; that tends to support my initial assessment - filesystem stuff > > should Just Work[tm] - plus adds the detail that direct drive I/O > (the > > example he gives is trying to `dd' 10 bytes) will be rejected because > > it is smaller than the raw-device access granularity. I've also > looked > > at 'ata_da.c' and see that adaregister() looks at both quirks and > > IDENTIFY_DEVICE data to determine the logical block size. > > > > So, that leaves the bootstrap code as the remaining question-mark. > > Does anyone what AF-4Kn support looks like there? > > > > CC -hackers. > > Thanks for the clarification. Is there any 4Kn HDDs shopping now? I am > not aware of any. > > BTW I believe UFS and ZFS have proper design for 4K-sectors, but > FreeBSD needs some ecosystem connections to get samples early to test, > incorporate supports and validate for it. Or we will need to wait until > it appears on market and someone got caught into some kind of bugs. > > Regards, > Jia-Shiun. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers- > unsubscribe@freebsd.org" From owner-freebsd-hardware@FreeBSD.ORG Mon Sep 23 11:06:45 2013 Return-Path: Delivered-To: freebsd-hardware@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4DA7ABF6 for ; Mon, 23 Sep 2013 11:06:45 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 217562130 for ; Mon, 23 Sep 2013 11:06:45 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8NB6iee069451 for ; Mon, 23 Sep 2013 11:06:44 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8NB6iwZ069449 for freebsd-hardware@FreeBSD.org; Mon, 23 Sep 2013 11:06:44 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 23 Sep 2013 11:06:44 GMT Message-Id: <201309231106.r8NB6iwZ069449@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-hardware@FreeBSD.org Subject: Current problem reports assigned to freebsd-hardware@FreeBSD.org X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2013 11:06:45 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- f kern/156241 hardware [mfi] 'zfs send' does not prevents disks to suspend if 1 problem total. From owner-freebsd-hardware@FreeBSD.ORG Mon Sep 23 14:52:59 2013 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5CC98CEB for ; Mon, 23 Sep 2013 14:52:59 +0000 (UTC) (envelope-from alanfagundes@hotmail.com) Received: from blu0-omc1-s3.blu0.hotmail.com (blu0-omc1-s3.blu0.hotmail.com [65.55.116.14]) by mx1.freebsd.org (Postfix) with ESMTP id 299942315 for ; Mon, 23 Sep 2013 14:52:58 +0000 (UTC) Received: from BLU178-W42 ([65.55.116.7]) by blu0-omc1-s3.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 23 Sep 2013 07:51:52 -0700 X-TMN: [XveAgG5GnKCIKlmULaBT04tOItT/ET2x] X-Originating-Email: [alanfagundes@hotmail.com] Message-ID: From: Alan Fagundes To: "freebsd-hardware@freebsd.org" Subject: Install Program can't boot after AMD-A75 onboard-raid is activated Date: Mon, 23 Sep 2013 11:51:52 -0300 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 23 Sep 2013 14:51:52.0725 (UTC) FILETIME=[70B59450:01CEB86C] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2013 14:52:59 -0000 Hi=2C i have the same problem of the other guy=2C see the post: http://lists.freebsd.org/pipermail/freebsd-hardware/2012-October/007134.htm= l what fix it ? Alan FagundesSupport Analyste-mail/msn/skype: alanfagundes@hotmail.comExtre= ma - MG BrazilTel. 55(35) 8432 0131 = From owner-freebsd-hardware@FreeBSD.ORG Mon Sep 23 15:58:44 2013 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D6EB2FC2; Mon, 23 Sep 2013 15:58:44 +0000 (UTC) (envelope-from rp_freebsd@mac.com) Received: from st11p00mm-asmtp002.mac.com (st11p00mm-asmtp002.mac.com [17.172.81.1]) by mx1.freebsd.org (Postfix) with ESMTP id AE5E226BD; Mon, 23 Sep 2013 15:58:44 +0000 (UTC) Received: from [192.168.1.3] (c-98-207-91-59.hsd1.ca.comcast.net [98.207.91.59]) by st11p00mm-asmtp002.mac.com (Oracle Communications Messaging Server 7u4-27.08(7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTPSA id <0MTL00MFW2X9L820@st11p00mm-asmtp002.mac.com>; Mon, 23 Sep 2013 14:58:38 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794,1.0.431,0.0.0000 definitions=2013-09-23_01:2013-09-22,2013-09-23,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1308280000 definitions=main-1309230071 User-Agent: Microsoft-MacOutlook/14.3.7.130812 Date: Mon, 23 Sep 2013 07:58:19 -0700 Subject: Re: What's the state of AF-4Kn support? From: Ravi Pokala Sender: Ravi Pokala To: Jia-Shiun Li Message-id: Thread-topic: What's the state of AF-4Kn support? In-reply-to: MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit Cc: freebsd-hackers@freebsd.org, "freebsd-hardware@freebsd.org" X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2013 15:58:44 -0000 -----Original Message----- From: Jia-Shiun Li Date: Sunday, September 22, 2013 11:22 PM To: Ravi Pokala Cc: "freebsd-hardware@freebsd.org" , Subject: Re: What's the state of AF-4Kn support? >On Wed, Sep 18, 2013 at 10:49 PM, Ravi Pokala wrote: >> >>... > >CC -hackers. > >Thanks for the clarification. Is there any 4Kn HDDs shopping now? I am >not aware of any. Good question. I had the impression that some currently shipping drives were AF-4Kn, but spot-checking some of the drives listed in src/cam/ata/ata_da.c::ada_quirk_table[] against their datasheets, suggests that they're AF-512e. So, their being flagged w/ ADA_Q_4K is "just" a performance optimization. >BTW I believe UFS and ZFS have proper design for 4K-sectors, but FreeBSD >needs some ecosystem connections to get samples early to test, >incorporate supports and validate for it. Or we will need to wait until >it appears on market and someone got caught into some kind of bugs. Yeah, based on my reading of the code, it looks like the ATACAM layer and higher (GEOM, filesystems) take the physical block size into account. That just leaves the bootstrap code. Now that I've taken a second look, it seems as though at least 'pmbr' only works in terms of 512 bytes. :-( WRT to getting samples, it may be possible to share some w/ appropriate members of the community; who would those people be? >Regards, >Jia-Shiun. Thanks, rp From owner-freebsd-hardware@FreeBSD.ORG Mon Sep 23 16:05:21 2013 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0FC3333F; Mon, 23 Sep 2013 16:05:21 +0000 (UTC) (envelope-from rp_freebsd@mac.com) Received: from st11p00mm-asmtp003.mac.com (st11p00mm-asmtp003.mac.com [17.172.81.2]) by mx1.freebsd.org (Postfix) with ESMTP id DAE582749; Mon, 23 Sep 2013 16:05:20 +0000 (UTC) Received: from [192.168.1.3] (c-98-207-91-59.hsd1.ca.comcast.net [98.207.91.59]) by st11p00mm-asmtp003.mac.com (Oracle Communications Messaging Server 7u4-27.08(7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTPSA id <0MTL00KIQ3797050@st11p00mm-asmtp003.mac.com>; Mon, 23 Sep 2013 15:04:30 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794,1.0.431,0.0.0000 definitions=2013-09-23_01:2013-09-22,2013-09-23,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=2 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1308280000 definitions=main-1309230073 User-Agent: Microsoft-MacOutlook/14.3.7.130812 Date: Mon, 23 Sep 2013 08:04:19 -0700 Subject: Re: What's the state of AF-4Kn support? From: Ravi Pokala Sender: Ravi Pokala To: Rozhuk.IM@gmail.com, 'Jia-Shiun Li' Message-id: Thread-topic: What's the state of AF-4Kn support? In-reply-to: <523ff852.4ee8cc0a.44b6.ffffacba@mx.google.com> MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2013 16:05:21 -0000 -----Original Message----- From: Reply-To: Date: Monday, September 23, 2013 1:13 AM To: 'Jia-Shiun Li' , Ravi Pokala Cc: , Subject: RE: What's the state of AF-4Kn support? ># install >gpart create -s GPT ada1 >gpart show >gpart add -i 1 -t freebsd-boot -b 40 -s 512 ada1 >gpart add -i 2 -t freebsd-ufs -b 552 -s ..... ada1 >gpart bootcode -b /boot/pmbr ada1 >gpart bootcode -p /boot/gptboot -i 1 ada1 > ># for data >gpart create -s GPT ada1 >gpart show >gpart add -i 1 -t freebsd-ufs -b 40 -s ..... ada1 Thanks Rozhuk, As it happens, I know how to create a GPT table and make sure the partitions are aligned. That's certainly a necessary step for getting good performance on AF-512e drives, but it doesn't have much to do with booting from an AF-4Kn drive. (Actually, since GPT is defined in terms of physical sectors, we can actually *stop* playing silly alignment games with AF-4Kn, since it is inherently aligned.) --rp >> -----Original Message----- >> From: owner-freebsd-hackers@freebsd.org [mailto:owner-freebsd- >> hackers@freebsd.org] On Behalf Of Jia-Shiun Li >> Sent: Monday, September 23, 2013 10:23 AM >> To: Ravi Pokala >> Cc: freebsd-hackers@freebsd.org; freebsd-hardware@freebsd.org >> Subject: Re: What's the state of AF-4Kn support? >> >> On Wed, Sep 18, 2013 at 10:49 PM, Ravi Pokala >> wrote: >> > >> > What you describe is the 'AF-512e' format - 4KB physical sectors >> > *emulating* 512B logical sectors. See [ >> > https://en.wikipedia.org/wiki/Advanced_Format#Advanced_Format_512e ; >> > http://www.idema.org/?page_id=2153 ]. With AF-512e, yes, the HDD >> > firmware does the read/modify/write for I/Os smaller than the >> physical sector size. >> > It is intended to be a low-cost/transitional format, allowing the HDD >> > vendors to get the advantages of 4KB physical sectors (better error >> > detection/correction algorithms, better areal density => lower cost) >> > w/o breaking compatibility with decades of firmware and software that >> > expect 512B logical sectors. >> > >> > What I'm asking about is AF-4kn - 4KB *logical* as well as physical >> > sectors. All the enterprise HDD vendors have told us is that AF-4Kn >> > drives expect data IO to be 4KB, and will reject smaller transfers. >> > (*metadata* IO - SMART, IDENTIFY_DEVICE, READ_LOG/WRITE_LOG, etc - >> > will remain 512B.) >> > >> > Doing some more digging, I found this post from ivoras which I missed >> > the first time around [ >> > http://ivoras.net/blog/tree/2011-01-01.freebsd-on-4k-sector- >> drives.htm >> > l ]; that tends to support my initial assessment - filesystem stuff >> > should Just Work[tm] - plus adds the detail that direct drive I/O >> (the >> > example he gives is trying to `dd' 10 bytes) will be rejected because >> > it is smaller than the raw-device access granularity. I've also >> looked >> > at 'ata_da.c' and see that adaregister() looks at both quirks and >> > IDENTIFY_DEVICE data to determine the logical block size. >> > >> > So, that leaves the bootstrap code as the remaining question-mark. >> > Does anyone what AF-4Kn support looks like there? >> > >> >> CC -hackers. >> >> Thanks for the clarification. Is there any 4Kn HDDs shopping now? I am >> not aware of any. >> >> BTW I believe UFS and ZFS have proper design for 4K-sectors, but >> FreeBSD needs some ecosystem connections to get samples early to test, >> incorporate supports and validate for it. Or we will need to wait until >> it appears on market and someone got caught into some kind of bugs. >> >> Regards, >> Jia-Shiun. >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to "freebsd-hackers- >> unsubscribe@freebsd.org" > From owner-freebsd-hardware@FreeBSD.ORG Mon Sep 23 16:38:53 2013 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 02CFACCD; Mon, 23 Sep 2013 16:38:53 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AB92529B4; Mon, 23 Sep 2013 16:38:51 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [172.17.17.101]) by email2.allantgroup.com (8.14.5/8.14.5) with ESMTP id r8NGciv1041571 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 Sep 2013 11:38:44 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.7/8.14.6) with ESMTP id r8NGcifo033918 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 Sep 2013 11:38:44 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.7/8.14.7/Submit) id r8NGciBP033917; Mon, 23 Sep 2013 11:38:44 -0500 (CDT) (envelope-from dan) Date: Mon, 23 Sep 2013 11:38:44 -0500 From: Dan Nelson To: Jia-Shiun Li Subject: Re: What's the state of AF-4Kn support? Message-ID: <20130923163844.GE97298@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 9.1-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.8 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (email2.allantgroup.com [172.17.19.78]); Mon, 23 Sep 2013 11:38:44 -0500 (CDT) X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on email2.allantgroup.com X-Scanned-By: MIMEDefang 2.73 Cc: Ravi Pokala , freebsd-hackers@freebsd.org, "freebsd-hardware@freebsd.org" X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2013 16:38:53 -0000 In the last episode (Sep 23), Jia-Shiun Li said: > On Wed, Sep 18, 2013 at 10:49 PM, Ravi Pokala wrote: > > What I'm asking about is AF-4kn - 4KB *logical* as well as physical > > sectors. All the enterprise HDD vendors have told us is that AF-4Kn drives > > expect data IO to be 4KB, and will reject smaller transfers. (*metadata* > > IO - SMART, IDENTIFY_DEVICE, READ_LOG/WRITE_LOG, etc - will remain 512B.) > > > > Doing some more digging, I found this post from ivoras which I missed the > > first time around [ > > http://ivoras.net/blog/tree/2011-01-01.freebsd-on-4k-sector-drives.html ]; > > that tends to support my initial assessment - filesystem stuff should Just > > Work[tm] - plus adds the detail that direct drive I/O (the example he > > gives is trying to `dd' 10 bytes) will be rejected because it is smaller > > than the raw-device access granularity. I've also looked at 'ata_da.c' and > > see that adaregister() looks at both quirks and IDENTIFY_DEVICE data to > > determine the logical block size. > > > > So, that leaves the bootstrap code as the remaining question-mark. Does > > anyone what AF-4Kn support looks like there? > > > > CC -hackers. > > Thanks for the clarification. Is there any 4Kn HDDs shopping now? I am > not aware of any. I don't think there are any yet, but some SATA->USB drive enclosures will present a 4Kn drive to the host if the physical drive is 512e. The Seagate Backup Plus does this at least. It lets you continue to use MBR-based partitioning and still access all of a 4TB disk. Unfortunately, since both GPT and MBR work off of block offsets, partitions created in one mode won't work in the other, so you can't just swap a disk in and out of the enclosure without (carefully) repartitioning. -- Dan Nelson dnelson@allantgroup.com