From owner-freebsd-arm@FreeBSD.ORG Wed Apr 30 14:21:23 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1415B43D for ; Wed, 30 Apr 2014 14:21:23 +0000 (UTC) Received: from nm6-vm9.access.bullet.mail.gq1.yahoo.com (nm6-vm9.access.bullet.mail.gq1.yahoo.com [216.39.63.244]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B4B671776 for ; Wed, 30 Apr 2014 14:21:22 +0000 (UTC) Received: from [216.39.60.165] by nm6.access.bullet.mail.gq1.yahoo.com with NNFMP; 30 Apr 2014 14:15:42 -0000 Received: from [67.195.22.119] by tm1.access.bullet.mail.gq1.yahoo.com with NNFMP; 30 Apr 2014 14:15:42 -0000 Received: from [127.0.0.1] by smtp114.sbc.mail.gq1.yahoo.com with NNFMP; 30 Apr 2014 14:15:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1398867342; bh=veTKI5Oe7fCh0DPe3VdXzsRjtUJAJCZJLSpzvAKfdgQ=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=tAXtHEUmDLMCYClwYcTvwUUw13KxDJC5bJcA4L+PRfQCza1Zi+bKAHLQsS0v94TdqZH9AZcFM+Z1IR/MIipfJxV1ZTxP4U/w7tzxexxf3N+yYhBpCvcMzMMSpqL/DMIFUks/T1bP6yQnqubY5yhG7Gv/JP9Ry5P3HkdkmlWHiJY= X-Yahoo-Newman-Id: 263537.41779.bm@smtp114.sbc.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: O9IkVpsVM1nn4Z.8tqMndGrhNwxxny5tK0QmNIoV4cKX8jx Ucbc75mv2b__ouCX.L0McqaqGvXGI5gmx8XFMiQG4c4VMOlHU7pn0WFy4S9B wMJWl9wzdt_KSJODw6z1IoWqsel0ssfZDt9oSjWmQ4R2zsjXBIJZhIKEPxbN F_wCshnw6X6ss0_LaNEpRgaGzWo0mMpFF2XNcje_ELqn7wJ1UAWHOkM9p831 B9F8x3yAg39OrKGYyzxgYOWD9uvR6SfP6sRwhQwtiarBlsS8L_NF7XdhcZGW ip87WcajA5wzuhsres4IPiCv2GQoAC.lvTjY3HMpUKdjzEcSWO8ulY6buyD8 SviGf7iz9DMjKdNNh7EsfuiCUlw5enaMaLZgEJ.4v1YefmR0ugscJRdRkXQK zzJlAVfu3Q8zuTpsFhikA0e2F.u.3o_ptFxqiQdhlRj.JMIVnFCCvt3IUcjN .tBEKf.WFUgsgkWlklvJlxkFxqvpGOXyAWIrNRtZc9tU99YRZmLcKuB2tN3h Ey0nM6x.23R4Sqcpm1nquiuwpdemkLsVlSUEvuVizVaqZARa8z_TZgwg- X-Yahoo-SMTP: tUxoRneswBA21azLM.3ybMESf0mC2bFhTbmt0VU5ervH0kqi5lo- X-Rocket-Received: from [192.168.1.9] (ThomasSkibo@71.139.160.145 with plain [67.195.15.66]) by smtp114.sbc.mail.gq1.yahoo.com with SMTP; 30 Apr 2014 07:15:42 -0700 PDT Message-ID: <5361058D.4020900@sbcglobal.net> Date: Wed, 30 Apr 2014 07:15:41 -0700 From: Thomas Skibo User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Ian Lepore Subject: Re: Microzed bug-fix, References: <53601828.7030800@sbcglobal.net> <1398815541.22079.46.camel@revolution.hippie.lan> In-Reply-To: <1398815541.22079.46.camel@revolution.hippie.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2014 14:21:23 -0000 On 4/29/14, 4:52 PM, Ian Lepore wrote: > > There's a newer way to do this, but I didn't do the xilinx stuff when I > set this up last year because I had no way to test it. The new scheme > lets you declare the physaddr and size of any regions to be > device-mapped, and it dynamically allocates virtual address space for it > from the top down, so device mapping doesn't waste any space. > > Please try the attached patch. The *_VBASE defines are deleted because > those things aren't at a fixed address anymore. If it's ever necessary > to get a virtual address outside of the bus_space system (like for a > debugging uart) you can call arm_devmap_ptov(). > > Oh -- I have 2G wandboards that have no trouble with memory. > > -- Ian > Thanks, Ian. I tested the patch and it works. --Thomas -- -------- Thomas Skibo ThomasSkibo@sbcglobal.net