contigmalloc won't allocate more than one page
Justin Hibbits
jrh29 at alumni.cwru.edu
Mon Jul 22 01:51:24 UTC 2013
I've been spending the day trying to get ofwdump to work correctly on
ppc64, and found that for at least one property it needs a full page for
the property value. So, to fix this I checked the maximum ioctl sizes, and
with a buffer it totals 5 pages, so I tried to get ofw_real_bounce_alloc()
to allocate 5 pages instead of one. WIth this, it hangs when allocating
the memory for the buffer. So, I tried just two pages, and got the same
result.
After this failure, I tried creating a static array of 8192 bytes, and it
doesn't even get to the black screen now.
Obviously, the better way to go would be to allocate it, but I don't have
enough understanding of the VM system and the OEA64 VM code to fix this bug.
- Justin
More information about the freebsd-ppc
mailing list