From owner-freebsd-mips@FreeBSD.ORG Mon Jun 28 16:12:14 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CBEAC1065672 for ; Mon, 28 Jun 2010 16:12:14 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5DA648FC16 for ; Mon, 28 Jun 2010 16:12:14 +0000 (UTC) Received: by vws13 with SMTP id 13so7841181vws.13 for ; Mon, 28 Jun 2010 09:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=3/pRn3//bwM/hsuXZqoOdZbSW+h6nyA0swmKh+AkX0g=; b=UKyzCkkyLfCZa/k78sR1/ZKNvazDXOTcdCpIZy5EQJLPoK51jArn5EPfpfcpmMC3tJ 8a9jarhjwkJtL+QCOJgwHqgw2wSTMNSGaGS55+lyhCnWrwEK3LC7SlbfkVaFT55B8S6Z HjbWMMdg97chOLKB/cASz3wbwmDkPZ+uoQww0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=f27f8sYXHuqpsk4Fbp+5aDuQWmSqO4l0BNOXUNIDJpYj/2YfN3Q6sAuSkAxnP6nhDb zQpJTJEyU0Wd5V9FxlgCAv2QtNTlOo3hpCP+q3c5eX6G7JM0aYQb5iyRQ+1fFcL6xIf1 ld4fC4kWDJLmAd7T3LECgfMpSvEBZaJi6ASeg= Received: by 10.224.80.11 with SMTP id r11mr3492631qak.148.1277741531296; Mon, 28 Jun 2010 09:12:11 -0700 (PDT) Received: from [192.168.0.86] ([187.39.15.144]) by mx.google.com with ESMTPS id t34sm410369qcp.18.2010.06.28.09.12.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 28 Jun 2010 09:12:09 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Luiz Otavio O Souza In-Reply-To: Date: Mon, 28 Jun 2010 13:12:01 -0300 Content-Transfer-Encoding: quoted-printable Message-Id: <3C0AEF9B-AE0C-4459-A4E1-2C8C30C10FD6@gmail.com> References: <897604F6-95C4-49A8-B11F-277A74C8DBAE@gmail.com> To: Jayachandran C. X-Mailer: Apple Mail (2.1081) Cc: freebsd-mips@freebsd.org Subject: Re: Merging 64 bit changes to -HEAD X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2010 16:12:15 -0000 On Jun 28, 2010, at 7:14 AM, Jayachandran C. wrote: > On Sun, Jun 27, 2010 at 8:20 PM, Jayachandran C. > wrote: >> On Sun, Jun 27, 2010 at 4:00 PM, Luiz Otavio O Souza = wrote: >>> On Jun 15, 2010, at 10:36 AM, Jayachandran C. wrote: >>>=20 >>> ( ... ) >>>>=20 >>>> I've tested this on XLR, but there is a chance that this might = break >>>> other platforms. So please let me know your comments on both the >>>> patches and the merge process. >>>>=20 >>>> The future patches (if everything goes well), will do the PTE_ flag = to >>>> PG_ flag renaming in Juli's tree, then the actual n32/n64 changes. >>>>=20 >>>> Thanks, >>>> JC. >>>=20 >>> JC, >>>=20 >>> I can't boot the ar71xx kernel after r209243: >>>=20 >>> http://mips.pastebin.com/CBhe6hzR >>> http://pastebin.com/nrRdm1UF >>>=20 >>> Everything works fine with the previous revision (r209048). >>>=20 >>> If you need anything else, just let me know. >>=20 >> Let me have a look at this, thanks for the report. >=20 > Can you enable 'TRAP_DEBUG' in sys/mips/mips/trap.c and see if you can > get the trap information printed. Adding a line > #define TRAP_DEBUG > after all the #includes in trap.c should do it. This should print the > pc, ra, and badvaddr which would help a lot in debugging. >=20 > In the meantime I will look at the code again and see if I can find > anything obviously wrong. >=20 > Thanks, > JC. JC, The TRAP_DEBUG option doesn't help, but during the tests i found a weird = symptom... After a cold reset the kernel always hang at same place (after the = WITNESS notice), but if i boot from an old kernel and issue a 'reboot' = the board boots just fine. I've add a few printfs all around to find where it hangs and this happen = at the first call of pmap_map() at vm_page_startup(). Here is a dmesg from a failed boot: http://mips.pastebin.com/QnUu56hD And here is a successful one: http://mips.pastebin.com/bsJ4Ac3z I hope this can give you some clue about what's is going on... Thanks, Luiz=