From owner-freebsd-ppc@FreeBSD.ORG Mon Jul 22 01:51:24 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BDB5FBF0; Mon, 22 Jul 2013 01:51:24 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-bk0-x22b.google.com (mail-bk0-x22b.google.com [IPv6:2a00:1450:4008:c01::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 29EC81C62; Mon, 22 Jul 2013 01:51:23 +0000 (UTC) Received: by mail-bk0-f43.google.com with SMTP id jm2so2288096bkc.16 for ; Sun, 21 Jul 2013 18:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=8Q6eurn5suzu7pzNDCtFihUl+Bgo4K3UWf6D5rmIWzI=; b=qlRvIPeNM4fFTDi//ByOIPNM4mr0qwv2fuHwrCePZidsoLQJnTI7VC5KaqqtvXgK3P wUmgltKvv0+1aWTZ298DXXbf7AoueORrzob89WufXA9SzEmPznqyuIZB1z1lyZ8J1Jgq ISYAu/Q2VJMb1bjjVuM9OKkJ+U2+6RPnRczyUpQD/PrnrP/OPCP/LU/fWeBxIJMtKhLQ AwmMQHL1fPMZoDmnpP+xCl7XRo7+81TPy8NGGq+p2o8GNtKoyKC8ZH7a8Uqb3arnC/Cf 6NDYQErYdaxbr3bRdhzIBQQ4c60kaOL4lr8ATZ6TPgpKpxGldJzXHlcZV4OhLyfcuEqP p8AQ== MIME-Version: 1.0 X-Received: by 10.204.163.142 with SMTP id a14mr3554858bky.59.1374457882118; Sun, 21 Jul 2013 18:51:22 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.204.9.148 with HTTP; Sun, 21 Jul 2013 18:51:22 -0700 (PDT) Date: Sun, 21 Jul 2013 18:51:22 -0700 X-Google-Sender-Auth: SUyy0p7lUPPlorhhJDhqJqd-uSg Message-ID: Subject: contigmalloc won't allocate more than one page From: Justin Hibbits To: FreeBSD PowerPC ML , Nathan Whitehorn Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jul 2013 01:51:24 -0000 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