From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 23 14:25:48 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 EDB5E94E for ; Tue, 23 Jul 2013 14:25:48 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-bk0-x22c.google.com (mail-bk0-x22c.google.com [IPv6:2a00:1450:4008:c01::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7FDAF2167 for ; Tue, 23 Jul 2013 14:25:48 +0000 (UTC) Received: by mail-bk0-f44.google.com with SMTP id 6so3054408bkj.17 for ; Tue, 23 Jul 2013 07:25:46 -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=wT3ymwlVpzbpynQoItDwaQuvl+VMEUdcHzInw87zosU=; b=uJ7AIBq8cyf54FzVVmEz/qUgdck8N3c78HN8V2UbxH11ufrhB1Tyf0OfkCziaErmvi zOBspyT24Skq3DKM5aqt/YLUmnaFp6pVSmZ+3+CMVsKZ2hKXGuiBTAymMNysATWl51wH w/iCyIcL4C3aOs1ZHWEll2I27KJuPvgT9pYGdIlPZ4ff1T9tE13N3NNcSBu+gMx2SeQJ GB+EihJEvN+S9/rEr4gUbMjK9ELVUVfctWwDWUr031I2n9kls/BFWj1Ftfzm2pTVAqWD 4/w0jqN7L8MclFeaq0+DxPDC37YOUpKtxiHC+gvieGpFgbExTq+u0RjAn9s877i/oJD6 Qf+g== MIME-Version: 1.0 X-Received: by 10.204.198.9 with SMTP id em9mr4572515bkb.131.1374589546635; Tue, 23 Jul 2013 07:25:46 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.204.9.148 with HTTP; Tue, 23 Jul 2013 07:25:46 -0700 (PDT) In-Reply-To: References: <20130722045425.GF5991@kib.kiev.ua> Date: Tue, 23 Jul 2013 07:25:46 -0700 X-Google-Sender-Auth: yPDv3IFMra9Kcry3qWzIrSIrGM8 Message-ID: Subject: Re: contigmalloc won't allocate more than one page From: Justin Hibbits To: Super Bisquit 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: Tue, 23 Jul 2013 14:25:49 -0000 On Mon, Jul 22, 2013 at 8:39 PM, Super Bisquit wrote: > Why not post this to hackers or the normal questions list to see if anyone > has an x86i machine for testing the code? > Because my initial assumption was that it was ppc only. On Mon, Jul 22, 2013 at 4:35 PM, Justin Hibbits wrote: > >> 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 ? >> > >> > Turns out this was noise only. I had adjusted the size but not the boundary. Adjusting the boundary fixed it. - Justin