From owner-freebsd-mips@FreeBSD.ORG Tue Jun 29 17:02:16 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 EDED5106566B; Tue, 29 Jun 2010 17:02:15 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8C1418FC17; Tue, 29 Jun 2010 17:02:15 +0000 (UTC) Received: by gxk7 with SMTP id 7so1229377gxk.13 for ; Tue, 29 Jun 2010 10:02:08 -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=ahq2ipvlQe9Jvi7fyDFOfk1BegkYyb23RmomLtxolKo=; b=BrCpVmVGeRXagSsI/bQYeg1MyJxdp055jI4kNsgPUo8V73ZuxYWk1BhYrqiHhB8y/a PrJGnAmIOVNgr9gU3GjKrJsju+0qDB0FOisIGbiq1QwrwOnq0kt1wuk/ilReYW5h51Yy tDXSZz9bu7ip+whlnPkjYbdnPdPd71Aur3p0o= 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=EBTV/xmRr0tyTw8B4LVWgoCwxNPIZBArJvDCxwnDiK0cN1NtD9C7ojg9xrrY19ZgEd SdqH0rHB2O6lpaBCKlCMnscLtAWlxQM7m5BpfZqzByLBC5boKZQH2l9cMMED60+s+lj4 JZfdUgj2SL154K5qbTXLn3tTifgBWOgg2x9dY= Received: by 10.229.226.81 with SMTP id iv17mr4076507qcb.290.1277830928289; Tue, 29 Jun 2010 10:02:08 -0700 (PDT) Received: from [192.168.0.86] ([187.39.15.144]) by mx.google.com with ESMTPS id t34sm5197390qcp.6.2010.06.29.10.02.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 29 Jun 2010 10:02:06 -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: Tue, 29 Jun 2010 14:02:00 -0300 Content-Transfer-Encoding: quoted-printable Message-Id: <25B9A19D-0A6B-4731-8FB1-A2C6722F0E9C@gmail.com> References: <897604F6-95C4-49A8-B11F-277A74C8DBAE@gmail.com> <3C0AEF9B-AE0C-4459-A4E1-2C8C30C10FD6@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: Tue, 29 Jun 2010 17:02:16 -0000 On Jun 29, 2010, at 8:02 AM, Jayachandran C. wrote: > On Tue, Jun 29, 2010 at 2:28 AM, Luiz Otavio O Souza = wrote: >>> Thanks for the the update. Looks like pmap_map for kernel is = failing, >>> may be the new tlb_update code causes this. Can you apply the >>> attached patch and see if the problem still persists, it replaces = the >>> new tlb_update code with the older version. >>>=20 >>> Obviously not a fix, but if we can narrow it down to this function, >>> fixing will be easier. >>>=20 >>> JC. >>> >>=20 >> JC, >>=20 >> This fix the problem ! Thanks ! Now, at least, you know where to look = :) >=20 > The new tlb_update does not seem to update the tlb entry if the tlbp > fails. Here's a patch that should make the new function behave like > the older one. The patch is in attached file 'tlb-update.diff'. >=20 > If that does not work, I'm not sure what the issue is. You could also > try try the nop-change.diff attached. It tries to switch the ssnop > used for delay in the new code with 'nop' which was used by the old > code. >=20 > Thanks, > JC. > JC, The nop-change seems to have no effect at all and with the tlb-update = patch the kernel apparently crash at bzero(), here is the dmesg with = TRAP_DEBUG enabled: http://mips.pastebin.com/jydPvJ20 So hopefully you are on the right track and this may be something = obvious to you. Luiz=