From owner-freebsd-arm@FreeBSD.ORG Tue Sep 9 02:01:02 2014 Return-Path: Delivered-To: freebsd-arm@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 ESMTPS id 30C2B923 for ; Tue, 9 Sep 2014 02:01:02 +0000 (UTC) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B36CF1768 for ; Tue, 9 Sep 2014 02:01:01 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id s8920rTx066537 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 9 Sep 2014 04:00:53 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id s8920lwB008139 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 9 Sep 2014 04:00:47 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id s8920k02025763; Tue, 9 Sep 2014 04:00:46 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id s8920kQH025762; Tue, 9 Sep 2014 04:00:46 +0200 (CEST) (envelope-from ticso) Date: Tue, 9 Sep 2014 04:00:46 +0200 From: Bernd Walter To: Tim Kientzle Subject: Re: Crochet partition alignment Message-ID: <20140909020046.GC24276@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20140909002954.GB24276@cicely7.cicely.de> <5053828F-435E-4ED0-AF8E-F0D4F9C3BF5C@kientzle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5053828F-435E-4ED0-AF8E-F0D4F9C3BF5C@kientzle.com> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: freebsd-arm@freebsd.org, Bernd Walter , ticso@cicely.de X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2014 02:01:02 -0000 On Mon, Sep 08, 2014 at 06:08:33PM -0700, Tim Kientzle wrote: > Do you disagree with this commit? > > https://github.com/kientzle/crochet-freebsd/commit/3f4818b6ad668eb4a1d7a55bd1634719a18d7729 > > If so, what do you propose here? No sorry - no serious problem exists. It was my fault - I took the wrong numbers. You request 64k alignment for the UFS partition and that's what we get. I added 118818 of the slice and 48128 for the partition. This was adding two different things - first number is sector offset and the later is byte offset. In fact it is 118818 + 94, which is perfectly 64k aligned. 94 sectors is the smallest loss to get to the next 64k - perfect. The msdosfs slice is unaligned but it isn't updated very often, so it's probably Ok with that. There is still that big 8M gap in front of the msdos slice, which I can't explain with crochet. You request an 63 Byte alignment for that slice - odd requirement IMHO, but should be fullfilled starting with second 63 sector track. But this would be just ~32k and not 8M. Not that this 8M loss is important with nGbyte media, but still unexpected. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.