From owner-freebsd-mips@FreeBSD.ORG Fri Aug 27 18:11:08 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 BE789106567A for ; Fri, 27 Aug 2010 18:11:08 +0000 (UTC) (envelope-from PMahan@adaranet.com) Received: from barracuda.adaranet.com (smtp.adaranet.com [72.5.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id A36408FC1B for ; Fri, 27 Aug 2010 18:11:08 +0000 (UTC) X-ASG-Debug-ID: 1282932667-506167100001-1gY7mK Received: from SJ-EXCH-1.adaranet.com ([10.10.1.29]) by barracuda.adaranet.com with ESMTP id DR6AjmFK4JkXKPSc; Fri, 27 Aug 2010 11:11:07 -0700 (PDT) X-Barracuda-Envelope-From: PMahan@adaranet.com Received: from mycroft.adaranet.com (10.10.24.100) by SJ-EXCH-1.adaranet.com (10.10.1.29) with Microsoft SMTP Server (TLS) id 8.1.240.5; Fri, 27 Aug 2010 11:11:07 -0700 Message-ID: <4C7800E6.4060803@adaranet.com> X-Barracuda-BBL-IP: nil Date: Fri, 27 Aug 2010 11:16:06 -0700 From: Patrick Mahan User-Agent: Thunderbird 2.0.0.23 (X11/20091021) MIME-Version: 1.0 To: "M. Warner Losh" X-ASG-Orig-Subj: Re: Now partially booting on our CN58XX eval board References: <4C77EB9F.4020705@adaranet.com> <20100827.113711.641066760578782485.imp@bsdimp.com> In-Reply-To: <20100827.113711.641066760578782485.imp@bsdimp.com> Content-Type: text/plain; charset="us-ascii"; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: UNKNOWN[10.10.1.29] X-Barracuda-Start-Time: 1282932667 X-Barracuda-URL: http://172.16.10.203:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at adaranet.com Cc: "freebsd-mips@freebsd.org" Subject: Re: Now partially booting on our CN58XX eval board 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: Fri, 27 Aug 2010 18:11:08 -0000 M. Warner Losh wrote: > In message: <4C77EB9F.4020705@adaranet.com> > Patrick Mahan writes: > : We have it now starting to boot on our eval board with the 1.8.1 SDK > : bootloader. > : > : It panic's on a bad address during a device attach, perhaps in the > : ethernet driver setup? I am attaching the output from the console > : below. > : > : I do see in the console output > : > : 'Octeon SDK: Cavium Networks Octeon SDK version 1.9.0, build 312' > : > : Which I am assuming is the cavium SDK pieces being included as part of > : the mips kernel. > > That's right. This is the cnusers.org SDK that we've included in the > kernel. > > : Warner, is this what you would see on happen on under 1.8.1? > > No. I have older uboot systems, and they refuse to properly load the > kernel. see below... > > : I am attaching (again) my kernel config. Is anything else needed? > : > : Patrick > : Adara Networks > > [trimmed] > : octebus0: [FILTER] > : Interface 1 has 4 ports (RGMII) > : panic: cvmx_phys_to_ptr: mapping high address (0x2090a880) not yet > : supported. > > I am seeing this when I boot a 32-bit kernel on two of the three > boards I have access to (both of them, btw, have older uboot loaders > on them). > > The problem here is that cvmx_phys_to_ptr only supports direct > mapping, so we can only use the first 512MB of memory. Juli and I > have talked about clamping the available memory to using only the > first 512MB on 32-bit kernels, but we don't like this idea and are > casting about for others. > > The 64-bit kernel doesn't suffer this limitation. > Okay, however, we are currently stuck at 32-bits :-( I have an engineer that thinks this would be fun to resolve, so I am letting him run with this for now. Is this an address coming from the mii layer? Thanks, Patrick Adara Networks