From owner-freebsd-ppc@FreeBSD.ORG Mon Jul 22 20:35:50 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 62804EE8; Mon, 22 Jul 2013 20:35:50 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-bk0-x233.google.com (mail-bk0-x233.google.com [IPv6:2a00:1450:4008:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BF3DB2337; Mon, 22 Jul 2013 20:35:49 +0000 (UTC) Received: by mail-bk0-f51.google.com with SMTP id ji1so2661041bkc.38 for ; Mon, 22 Jul 2013 13:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Q1SuMB4d40TKDdh2ajTY0qnCYLI60vtQbb55bVt5eps=; b=JmShtvKYYIpXIRP8zXUf0jsK5XbrROC1o6YkGGB7iuEYoG9kd1sm5QadTFw8oJNbrg nm/T8XKRE25/rhCK9VPoQaEmUod4I9sSenhEok0qqNdRFRK/B0MCGNlibXB3XAxjuNLx xq5JAM+wDHbNCN8woAC86C1fZ0PCxKpEvPkuu869U9k5tdv+AqjgFfQ9OHZ8bDXwXSs8 k72pPrryUg9JkI9XJGVUGmUvrOakjJgGDCLi/yCINqaCbDn/1kHe1DGavGOmifR8YEw9 KMeJXaS3DeFRVvgGOHgOa2hXANDHp6VnDLk/eJlHJ7w1O8IUPTqQ4S5+LIvgjvoxygBj WWRg== MIME-Version: 1.0 X-Received: by 10.204.66.133 with SMTP id n5mr4143976bki.38.1374525347784; Mon, 22 Jul 2013 13:35:47 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.204.9.148 with HTTP; Mon, 22 Jul 2013 13:35:47 -0700 (PDT) In-Reply-To: <20130722045425.GF5991@kib.kiev.ua> References: <20130722045425.GF5991@kib.kiev.ua> Date: Mon, 22 Jul 2013 13:35:47 -0700 X-Google-Sender-Auth: vZamK6TpvUvQCNhXJnAKke4SHuw Message-ID: Subject: Re: contigmalloc won't allocate more than one page From: Justin Hibbits To: Konstantin Belousov Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD PowerPC ML 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 20:35:50 -0000 On Sun, Jul 21, 2013 at 9:54 PM, Konstantin Belousov wrote: > On Sun, Jul 21, 2013 at 06:51:22PM -0700, Justin Hibbits wrote: > > 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. > Could you test on other architectures, esp. on x86i, please ? > Unfortunately for this test, all I have physical access to are PowerPC. It's possible that contigmalloc() can allocate more memory, but possibly later in the boot cycle, as this code runs very early on. > What version do you use, head ? > Yes, running head as of a few days ago. - Justin