From owner-freebsd-amd64@FreeBSD.ORG Tue Nov 6 01:24:04 2007 Return-Path: Delivered-To: amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5CF816A469 for ; Tue, 6 Nov 2007 01:24:04 +0000 (UTC) (envelope-from grafan@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.186]) by mx1.freebsd.org (Postfix) with ESMTP id 3BA2713C491 for ; Tue, 6 Nov 2007 01:24:03 +0000 (UTC) (envelope-from grafan@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so2080853fka for ; Mon, 05 Nov 2007 17:23:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Pct4OPq28+K1C5LMpbpmxGbAachpK3YFagz+KQzexCw=; b=MxOPOhQtjro5RD07yZQOj4aWOH6L/zM+EnXzmd9fsQ400fCK7PepwBP1t8y33HK4v0P3ZT9ruh+sycjyQvf5VdMSXH+lzGx3X6+USMRb/ZVqoXNIzq1SbePbKH1Jx7zWpwRvfNkDvaRoUOGx8MUMuD0WpW+IAQ/regMg9FE+n3w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Fh9fWrg9qP2Ks/J49mdTsh9KCwo8leIfF58pY4W32Glgo+UzK8j5HSv44xhDOuEVZGpS17cwF5iPAX+5KiVXAC2zv3Vu5mych3SQoqIXkV9WA6Nly8Nbg75gysOn2ulPzw17sAx7paD30JqAJ0FBl1NJyNMwffHOtwHn43mYB+w= Received: by 10.82.138.6 with SMTP id l6mr11120408bud.1194312235459; Mon, 05 Nov 2007 17:23:55 -0800 (PST) Received: by 10.82.115.11 with HTTP; Mon, 5 Nov 2007 17:23:55 -0800 (PST) Message-ID: <6eb82e0711051723g20ef2ee0qb8f030601542f8ad@mail.gmail.com> Date: Tue, 6 Nov 2007 09:23:55 +0800 From: "Rong-en Fan" To: amd64@freebsd.org In-Reply-To: <200711021403.04716.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6eb82e0711010634x5f70e974i78c505d8eda24223@mail.gmail.com> <200711011327.27953.jhb@freebsd.org> <6eb82e0711011841q111fd701sa982c0e7a7f136df@mail.gmail.com> <200711021403.04716.jhb@freebsd.org> Cc: Subject: Re: panic: no BIOS SMAP info from loader X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 01:24:04 -0000 On Nov 3, 2007 2:03 AM, John Baldwin wrote: > > On Thursday 01 November 2007 09:41:09 pm Rong-en Fan wrote: > > On 11/2/07, John Baldwin wrote: > > > On Thursday 01 November 2007 09:34:22 am Rong-en Fan wrote: > > > > I have a HP dc7000 box, booting with i386 is fine, but not > > > > amd64. It panics as soon as loader loads kernel. The console > > > > snapshot is at > > > > > > > > http://www.flickr.com/photos/rafan/1814155320/ > > > > > > > > under loader prompt, 'smap' shows nothing for both i386 > > > > and amd64. But i386 works well. I looked at archive, it > > > > seems there are several reports, but no solution. BTW, the boot > > > > cd I used is 7.0-BETA1.5. > > > > > > Does Linux find an SMAP? Right now FreeBSD/amd64 requires an SMAP. > > > > I'm not sure if I get this right, on Linux it shows > > > > BIOS-provided physical RAM map: > > BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) > > BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) > > BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved) > > BIOS-e820: 0000000000100000 - 00000000defafe00 (usable) > > BIOS-e820: 00000000defafe00 - 00000000defb1ea0 (ACPI NVS) > > BIOS-e820: 00000000defb1ea0 - 00000000e0000000 (reserved) > > BIOS-e820: 00000000f4000000 - 00000000f8000000 (reserved) > > BIOS-e820: 00000000fec00000 - 00000000fed40000 (reserved) > > BIOS-e820: 00000000fed45000 - 0000000100000000 (reserved) > > BIOS-e820: 0000000100000000 - 000000021c000000 (usable) > > Ok, so Linux finds it. They use the same algo the loader uses, so I don't see > why this isn't working. :( You can try adding some debug printfs into > sys/boot/i386/libi386/biossmap.c where it calls the BIOS to fetch the SMAP. > You can also try disassembling your BIOS to see how it handles int 0x15 > ax=0xe820 to see if it is expecting something odd. Right after v86int(), it shows efl 243 eax 8600 ecx 0 edx 534d4150 es 3fa7 edi 4 As eax != SMAPSIG, it just quits the loop... It's obtained from 200704 i386 current snap. BTW, netbsd 3.1 amd64 boots just fine on the same box. But I forget to check whether it can see all memory or not. Regards, Rong-En Fan