From owner-freebsd-current@FreeBSD.ORG Sun Mar 4 01:06:29 2012 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 6FE9E106566B; Sun, 4 Mar 2012 01:06:29 +0000 (UTC) (envelope-from christoph_hoffmann@me.com) Received: from nk11p04mm-asmtpout001.mac.com (nk11p04mm-asmtp001.mac.com [17.158.236.236]) by mx1.freebsd.org (Postfix) with ESMTP id 4484E8FC12; Sun, 4 Mar 2012 01:06:28 +0000 (UTC) MIME-version: 1.0 Received: from tunnel0.sec101.ch ([62.2.44.112]) by nk11p04mm-asmtp001.mac.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPSA id <0M0C007HF2YHBG40@nk11p04mm-asmtp001.mac.com>; Sun, 04 Mar 2012 00:06:22 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7498,1.0.260,0.0.0000 definitions=2012-03-03_07:2012-03-02, 2012-03-03, 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 scancount=1 engine=6.0.2-1012030000 definitions=main-1203030269 Content-type: multipart/signed; boundary="Apple-Mail=_484FCF79-9422-4B4F-8ABD-9950447317C6"; protocol="application/pkcs7-signature"; micalg=sha1 From: Christoph Hoffmann In-reply-to: <4F4FECA4.10504@FreeBSD.org> Date: Sun, 04 Mar 2012 01:06:14 +0100 Message-id: 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> <4F4FECA4.10504@FreeBSD.org> To: Palle Girgensohn , John Baldwin X-Mailer: Apple Mail (2.1257) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Sun, 04 Mar 2012 01:06:29 -0000 --Apple-Mail=_484FCF79-9422-4B4F-8ABD-9950447317C6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hello, I think this bug has been fix by John Baldwin (see below) after he found = that HP implemented 'e09127r3 EDD-4 Hybrid MBR boot code annex' dated 4 January 2010.=20 Maybe John could shade some light on it? Regards, Christoph Author: jhb Date: Wed Nov 9 18:26:19 2011 New Revision: 227400 URL:=20 http://svn.freebsd.org/changeset/base/227400 Log: MFC 226748: - Add a new header for the x86 boot code that defines various = structures and constants related to the BIOS Enhanced Disk Drive Specification. - Use this header instead of magic numbers and various duplicate = structure definitions for doing I/O. - Use an actual structure for the request to fetch drive parameters in drvsize() rather than a gross hack of a char array with some magic size. While here, change drvsize() to only pass the 1.1 version of the structure and not request device path information. If we want device path information you have to set the length of the device path information as an input (along with probably checking the = actual EDD version to see which size one should use as the device path information is variable-length). This fixes data smashing problems from passing an EDD 3 structure to BIOSes supporting EDD 4. =20 Approved by: re (kib) -- Christoph Hoffmann On Mar 1, 2012, at 10:39 PM, Palle Girgensohn wrote: > Hi! >=20 > This is still happening with FreeBSD 9.0-RELEASE, as I have just > discovered. The hack works like a charm, but seems kind of odd... :) >=20 > Any progress in getting a "real" fix into the repository? Any risks = with > the hack - is it likely to believe that it will suddenly or = sporadically > fail? >=20 > Cheers, > Palle >=20 > Christoph Hoffmann skrev: >> Hello Daniel, >>=20 >> 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: >>=20 >> *** 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 =3D (char *) PTOV(bios_basemem); >> } >>=20 >> + printf("Hello! I am a hack.\n"); >> dsk =3D malloc(sizeof(struct dsk)); >> dsk->drive =3D *(uint8_t *)PTOV(ARGS); >> dsk->type =3D dsk->drive & DRV_HARD ? TYPE_AD : TYPE_FD; >>=20 >> I am inclined to think that this is related to the way how we compile = this code,=20 >> especially when run on the following particular processor: >>=20 >> 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. >>=20 >>=20 >> Regards, >>=20 >> Christoph >>=20 >>=20 >> On Oct 11, 2011, at 3:16 PM, Daniel Kalchev wrote: >>=20 >>> Has this issue been resolved somehow? Sane method to build = gptzfsboot that will run on HP's P410i? >>>=20 >>> Daniel >>> _______________________________________________ >>> 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" >>=20 >> _______________________________________________ >> 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" > _______________________________________________ > 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" --Apple-Mail=_484FCF79-9422-4B4F-8ABD-9950447317C6--