Microzed bug-fix,
Ian Lepore
ian at FreeBSD.org
Tue Apr 29 23:52:27 UTC 2014
On Tue, 2014-04-29 at 14:22 -0700, Thomas Skibo wrote:
> Hi,
>
> Another bug-fix.
>
> Without this, Microzed or any other Zynq board with 1G of memory panics.
> It is because of a lack of contiguous virtual space. I moved the
> mappings of PSIO devices to increase vm_max_kernel_address.
>
> I wonder if we'll still have this problem running an ARM board with 2G
> memory.
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zynq_devmap.diff
Type: text/x-patch
Size: 2827 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20140429/e141c12f/attachment.bin>
More information about the freebsd-arm
mailing list