From owner-freebsd-current@FreeBSD.ORG Thu Oct 13 06:41:45 2011 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92C38106567F for ; Thu, 13 Oct 2011 06:41:45 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id D79A58FC0A for ; Thu, 13 Oct 2011 06:41:44 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id JAA28156; Thu, 13 Oct 2011 09:41:36 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1REEz1-000MQA-VE; Thu, 13 Oct 2011 09:41:36 +0300 Message-ID: <4E96881E.5020505@FreeBSD.org> Date: Thu, 13 Oct 2011 09:41:34 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111002 Thunderbird/7.0.1 MIME-Version: 1.0 To: Christoph Hoffmann References: <9B96176A-7550-4B60-8F4D-0B667EEF7A15@me.com> <201108161515.50127.jhb@freebsd.org> <23B6937F-F261-4DC4-9168-96720251C98D@me.com> <4E502F2F.50209@FreeBSD.org> <9FAB808F-E5D4-4B93-9D5F-BAE025930273@me.com> <4E944197.7050803@digsys.bg> In-Reply-To: X-Enigmail-Version: undefined Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org, Daniel Kalchev Subject: Re: gptzfsboot error using HP Smart Array P410i Controller X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2011 06:41:45 -0000 on 13/10/2011 00:33 Christoph Hoffmann said the following: > Hello Daniel, > > Last time I checked up on the issue was on the 23rd of September, > it was not fixed then. > I was able to to boot from drive 0x80 after adding: > > *** zfsboot.c.orig Fri Sep 23 18:03:26 2011 > --- zfsboot.c Fri Sep 23 18:47:44 2011 > *************** > *** 459,464 **** > --- 459,465 ---- > heap_end = (char *) PTOV(bios_basemem); > } > > + printf("Hello! I am a hack.\n"); > dsk = malloc(sizeof(struct dsk)); > dsk->drive = *(uint8_t *)PTOV(ARGS); > dsk->type = dsk->drive & DRV_HARD ? TYPE_AD : TYPE_FD; > > I am inclined to think that this is related to the way how we compile this code, > especially when run on the following particular processor: > > 1 Processor(s) detected, 4 total cores enabled, Hyperthreading is enabled > Proc 1: Intel(R) Xeon(R) CPU E5630 @ 2.53GHz > QPI Speed: 5.8 GT/s. Can you try the latest code in head? I've removed all the optimization/pessimization compiler flags for gpt/zfs boot blocks that at times seemed to do more harm than good. -- Andriy Gapon