From owner-freebsd-amd64@FreeBSD.ORG Wed Jun 27 17:58:51 2007 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DCAB916A469 for ; Wed, 27 Jun 2007 17:58:50 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id 3771D13C455 for ; Wed, 27 Jun 2007 17:58:50 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id l5RHwhSl047746; Wed, 27 Jun 2007 13:58:44 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-amd64@freebsd.org Date: Wed, 27 Jun 2007 01:01:48 -0400 User-Agent: KMail/1.9.6 References: <200605120829.k4C8T1gp025713@ms-smtp-02.southeast.rr.com> In-Reply-To: <200605120829.k4C8T1gp025713@ms-smtp-02.southeast.rr.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706270101.49313.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Wed, 27 Jun 2007 13:58:44 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/3542/Wed Jun 27 12:55:00 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-3.8 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00, DATE_IN_PAST_12_24 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Adam Soderlund Subject: Re: amd64 SMP AP init corrupting the BDA? (newbie) 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: Wed, 27 Jun 2007 17:58:52 -0000 On Friday 12 May 2006 04:28:59 am Adam Soderlund wrote: > Hi All, > > Hope this is the right place for questions like this. I've got > something bad going on when booting 6.1release or 7-current amd64 SMP, the > bios data area on my machine is getting whacked (killing usb legacy, which > in turn causes a hang when kernel tries to take over the host > controller(s)). I've debugged it a little bit and here is what I see. > when setting up to launch the APs start_all_aps() calls into pmap_kenter() > which is writing a pte to 0x000004e0 (physical). > > > > 0x04e0 in the BDA prior to pmap_kenter(va, boot_address) > > 0x0000002B > > 0x04e0 in the BDA after pmap_kenter(va, boot_address) > > 0x03C10900 (boot_address on the way in 0x9C000) The pmap_kenter() should not be changing that address. The page tables actually are located after the kernel itself (just after kernend) in memory, so pmap_kenter() isn't going to be writing to a PTE at an address that low. -- John Baldwin