Date: Sun, 21 Jul 2013 18:51:22 -0700 From: Justin Hibbits <jrh29@alumni.cwru.edu> To: FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>, Nathan Whitehorn <nwhitehorn@freebsd.org> Subject: contigmalloc won't allocate more than one page Message-ID: <CAHSQbTCT2e0UKSP34u05WSjCwdhQ_4z9GjxVxdN5kXXO35cxFQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHSQbTCT2e0UKSP34u05WSjCwdhQ_4z9GjxVxdN5kXXO35cxFQ>