From owner-freebsd-current@FreeBSD.ORG Thu Aug 18 16:31:05 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 52213106566B; Thu, 18 Aug 2011 16:31:05 +0000 (UTC) (envelope-from christoph_hoffmann@me.com) Received: from asmtpout029.mac.com (asmtpout029.mac.com [17.148.16.104]) by mx1.freebsd.org (Postfix) with ESMTP id 376048FC1A; Thu, 18 Aug 2011 16:31:05 +0000 (UTC) MIME-version: 1.0 Content-type: text/plain; charset=windows-1252 Received: from tunnel0.sec101.ch ([62.2.44.112]) by asmtp029.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LQ4004BNTUPPI50@asmtp029.mac.com>; Thu, 18 Aug 2011 09:30:30 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813,1.0.211,0.0.0000 definitions=2011-08-18_06:2011-08-18, 2011-08-18, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=2 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1108180150 From: Christoph Hoffmann In-reply-to: <201108161515.50127.jhb@freebsd.org> Date: Thu, 18 Aug 2011 18:30:24 +0200 Content-transfer-encoding: quoted-printable Message-id: <23B6937F-F261-4DC4-9168-96720251C98D@me.com> References: <9B96176A-7550-4B60-8F4D-0B667EEF7A15@me.com> <201108161515.50127.jhb@freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.1244.3) Cc: freebsd-current@freebsd.org 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, 18 Aug 2011 16:31:05 -0000 Hello John, Thank you very much indeed for the hints. I am under the impression that we are facing a problem with = synchronisation=20 of CPU local caches. I also wasn't able to find any problem with memory=20= allocation. This box is equipped with: 1 Processor(s) detected, 4 total cores enabled, Hyperthreading is = enabled =20 Proc 1: Intel(R) Xeon(R) CPU E5630 @ 2.53GHz = =20 QPI Speed: 5.8 GT/s = =20 Changing the order of execution in zfsboot.c main() function to [=85] int main(void) { [=85] bios_getmem(); if (high_heap_size > 0) { [=85] bootinfo.bi_version =3D BOOTINFO_VERSION; bootinfo.bi_size =3D sizeof(bootinfo); bootinfo.bi_basemem =3D bios_basemem / 1024; bootinfo.bi_extmem =3D bios_extmem / 1024; bootinfo.bi_memsizes_valid++; /* bootinfo.bi_bios_dev =3D dsk->drive; */ bootinfo.bi_bios_dev =3D *(uint8_t *)PTOV(ARGS); dsk =3D malloc(sizeof(struct dsk)); dsk->drive =3D *(uint8_t *)PTOV(ARGS); dsk->type =3D dsk->drive & DRV_HARD ? TYPE_AD : TYPE_FD; dsk->unit =3D dsk->drive & DRV_MASK; dsk->slice =3D *(uint8_t *)PTOV(ARGS + 1) + 1; dsk->part =3D 0; dsk->start =3D 0; dsk->init =3D 0; bootdev =3D MAKEBOOTDEV(dev_maj[dsk->type], dsk->slice, dsk->unit, dsk->part), [=85] fixes the problem. Any comments will be appreciated. Best Regards, Christoph -- Christoph Hoffmann On Aug 16, 2011, at 9:15 PM, John Baldwin wrote: > On Tuesday, August 16, 2011 1:46:48 pm Christoph Hoffmann wrote: >> Setting high_heap_size to zero ends with an error: >>=20 >> Attempting Boot =46rom CD-ROM >> Attempting Boot =46rom Hard Drive (C:) >> 474: high_heap_size=3D0x0; dsk=3D0x1a000; &bootinfo=3D0x8694 >> malloc failure >=20 > Hmm, I am really at a loss for what is trashing 'dsk'. You could > possibly try adjusting bios_getmem() to force it to use > high_heap_size from bios_extmem (that is at the bottom of the > function) perhaps. However, that is mostly a bit of a guess that > some part of your BIOS is randomly zero'ing dsk. >=20 > I'm at a loss as to how the assignments to bootinfo would trash > 'dsk'. :( >=20 > --=20 > John Baldwin > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org"