From owner-freebsd-embedded@FreeBSD.ORG Sun Sep 2 02:08:35 2012 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0FE961065673; Sun, 2 Sep 2012 02:08:35 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id CEFCB8FC08; Sun, 2 Sep 2012 02:08:34 +0000 (UTC) Received: by dadr6 with SMTP id r6so2723339dad.13 for ; Sat, 01 Sep 2012 19:08:28 -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=NVp04Iyfui9YRlVUz0oZLhuiqRWJXM11LIJxuzYMohw=; b=q2t+d5xI2Yd8PlXoIEOHdOMaI4I6NfiYeGWm7Fm5LKZcvbcjl3XMSy+IHhtEfiQar+ nPiClH48FlllQ+ChS6ShnMnodsyw9QeCpXp+skFyNjQqtMupb01fddso8oiFPgk6woFL JqUjRuTfL9eYztv5P6arRLYMfl3JQRxpKsW37T0ZSufteQ3JAQIZ4ifuhullzU6iO12p gQxCxbA5J+UB35+RKGNNnbXEL1eDZfoH9iwvpXyspOX3uWDZzSeBwn+zGRagkH09vS03 nIGm3Xqvt8txzZwkcNwCwGQXNj9VDlV30zpGe6kOAEoF2KwW2nyBgTiEHDkBz5W5NzJS N34g== MIME-Version: 1.0 Received: by 10.68.136.40 with SMTP id px8mr27640406pbb.153.1346551708468; Sat, 01 Sep 2012 19:08:28 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.36.106 with HTTP; Sat, 1 Sep 2012 19:08:28 -0700 (PDT) In-Reply-To: <02C549DE-D912-4D1A-A08D-650B918E9B99@bsdimp.com> References: <20120831154241.82902856.ray@dlink.ua> <02C549DE-D912-4D1A-A08D-650B918E9B99@bsdimp.com> Date: Sat, 1 Sep 2012 19:08:28 -0700 X-Google-Sender-Auth: _Y5Or6HTU8E9Lb0BduYOrHMW_cY Message-ID: From: Adrian Chadd To: Warner Losh Content-Type: text/plain; charset=ISO-8859-1 Cc: Aleksandr Rybalko , arch@freebsd.org, embedded@freebsd.org Subject: Re: [RFC] hintmode switch patch X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2012 02:08:35 -0000 Please commit. Approved by, etc. Adrian On 1 September 2012 16:13, Warner Losh wrote: > This patch looks good to me. It contained none of the stuff I was worried about before, so please commit this. > > Warner > > On Sep 1, 2012, at 8:01 AM, Adrian Chadd wrote: > >> Once others have stopped giving you reasons not to commit, please commit. >> >> >> >> Adrian >> >> >> On 31 August 2012 05:42, Aleksandr Rybalko wrote: >>> Hi hackers, >>> >>> I already post that patch some time ago with proposed "dynamic attach >>> of hinted devices" patch. [1] >>> >>> But will try to do it again, step-by-step :) >>> >>> So that patch allow switch from static hints to dynamic hints. >>> That way embedded systems, which usually compiled with hints (static) >>> will be able to see/edit/add hints and/or kenv variables. >>> >>> If nobody have objections I will commit it soon. >>> Hope 2-3 days enough for that :) >>> >>> [1] >>> http://lists.freebsd.org/pipermail/freebsd-arch/2012-January/012295.html >>> [2] http://people.freebsd.org/~ray/subr_hints.c.patch >>> >>> Thanks. >>> >>> WBW >>> -- >>> Alexandr Rybalko >>> aka Alex RAY >>> _______________________________________________ >>> freebsd-embedded@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-embedded >>> To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.org" >> _______________________________________________ >> freebsd-embedded@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-embedded >> To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.org" > From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 3 09:02:35 2012 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 10086106566B; Mon, 3 Sep 2012 09:02:35 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id B6F338FC0A; Mon, 3 Sep 2012 09:02:34 +0000 (UTC) Received: from terran.dlink.ua (unknown [192.168.10.90]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 62E7EC492D; Mon, 3 Sep 2012 12:02:33 +0300 (EEST) Date: Mon, 3 Sep 2012 12:04:31 +0300 From: Aleksandr Rybalko To: Warner Losh Message-Id: <20120903120431.23058038.ray@dlink.ua> In-Reply-To: <02C549DE-D912-4D1A-A08D-650B918E9B99@bsdimp.com> References: <20120831154241.82902856.ray@dlink.ua> <02C549DE-D912-4D1A-A08D-650B918E9B99@bsdimp.com> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: arch@freebsd.org, Adrian Chadd , embedded@freebsd.org Subject: Re: [RFC] hintmode switch patch X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2012 09:02:35 -0000 On Sat, 1 Sep 2012 17:13:46 -0600 Warner Losh wrote: >> This patch looks good to me. It contained none of the stuff I was >> worried about before, so please commit this. Thank you for review! >> >> Warner >> >> On Sep 1, 2012, at 8:01 AM, Adrian Chadd wrote: >> >> > Once others have stopped giving you reasons not to commit, please >> > commit. >> > >> > >> > >> > Adrian >> > >> > >> > On 31 August 2012 05:42, Aleksandr Rybalko wrote: >> >> Hi hackers, >> >> >> >> I already post that patch some time ago with proposed "dynamic >> >> attach of hinted devices" patch. [1] >> >> >> >> But will try to do it again, step-by-step :) >> >> >> >> So that patch allow switch from static hints to dynamic hints. >> >> That way embedded systems, which usually compiled with hints >> >> (static) will be able to see/edit/add hints and/or kenv variables. >> >> >> >> If nobody have objections I will commit it soon. >> >> Hope 2-3 days enough for that :) >> >> >> >> [1] >> >> http://lists.freebsd.org/pipermail/freebsd-arch/2012-January/012295.html >> >> [2] http://people.freebsd.org/~ray/subr_hints.c.patch >> >> >> >> Thanks. >> >> >> >> WBW >> >> -- >> >> Alexandr Rybalko >> >> aka Alex RAY >> >> _______________________________________________ >> >> freebsd-embedded@freebsd.org mailing list >> >> http://lists.freebsd.org/mailman/listinfo/freebsd-embedded >> >> To unsubscribe, send any mail to >> >> "freebsd-embedded-unsubscribe@freebsd.org" >> > _______________________________________________ >> > freebsd-embedded@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded >> > To unsubscribe, send any mail to >> > "freebsd-embedded-unsubscribe@freebsd.org" >> >> _______________________________________________ >> freebsd-embedded@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-embedded >> To unsubscribe, send any mail to >> "freebsd-embedded-unsubscribe@freebsd.org" -- Alexandr Rybalko aka Alex RAY From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 3 09:03:47 2012 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0CA0C106564A; Mon, 3 Sep 2012 09:03:47 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id B0CA78FC12; Mon, 3 Sep 2012 09:03:46 +0000 (UTC) Received: from terran.dlink.ua (unknown [192.168.10.90]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 7860CC492D; Mon, 3 Sep 2012 12:03:45 +0300 (EEST) Date: Mon, 3 Sep 2012 12:05:43 +0300 From: Aleksandr Rybalko To: Adrian Chadd Message-Id: <20120903120543.0fdd4860.ray@dlink.ua> In-Reply-To: References: <20120831154241.82902856.ray@dlink.ua> <02C549DE-D912-4D1A-A08D-650B918E9B99@bsdimp.com> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: arch@freebsd.org, embedded@freebsd.org Subject: Re: [RFC] hintmode switch patch X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2012 09:03:47 -0000 On Sat, 1 Sep 2012 19:08:28 -0700 Adrian Chadd wrote: >> Please commit. Approved by, etc. >> Thank you Adrian! Commited, r240067. >> >> Adrian >> >> >> On 1 September 2012 16:13, Warner Losh wrote: >> > This patch looks good to me. It contained none of the stuff I was >> > worried about before, so please commit this. >> > >> > Warner >> > >> > On Sep 1, 2012, at 8:01 AM, Adrian Chadd wrote: >> > >> >> Once others have stopped giving you reasons not to commit, please >> >> commit. >> >> >> >> >> >> >> >> Adrian >> >> >> >> >> >> On 31 August 2012 05:42, Aleksandr Rybalko wrote: >> >>> Hi hackers, >> >>> >> >>> I already post that patch some time ago with proposed "dynamic >> >>> attach of hinted devices" patch. [1] >> >>> >> >>> But will try to do it again, step-by-step :) >> >>> >> >>> So that patch allow switch from static hints to dynamic hints. >> >>> That way embedded systems, which usually compiled with hints >> >>> (static) will be able to see/edit/add hints and/or kenv >> >>> variables. >> >>> >> >>> If nobody have objections I will commit it soon. >> >>> Hope 2-3 days enough for that :) >> >>> >> >>> [1] >> >>> http://lists.freebsd.org/pipermail/freebsd-arch/2012-January/012295.html >> >>> [2] http://people.freebsd.org/~ray/subr_hints.c.patch >> >>> >> >>> Thanks. >> >>> >> >>> WBW >> >>> -- >> >>> Alexandr Rybalko >> >>> aka Alex RAY >> >>> _______________________________________________ >> >>> freebsd-embedded@freebsd.org mailing list >> >>> http://lists.freebsd.org/mailman/listinfo/freebsd-embedded >> >>> To unsubscribe, send any mail to >> >>> "freebsd-embedded-unsubscribe@freebsd.org" >> >> _______________________________________________ >> >> freebsd-embedded@freebsd.org mailing list >> >> http://lists.freebsd.org/mailman/listinfo/freebsd-embedded >> >> To unsubscribe, send any mail to >> >> "freebsd-embedded-unsubscribe@freebsd.org" >> > -- Alexandr Rybalko aka Alex RAY From owner-freebsd-embedded@FreeBSD.ORG Mon Sep 3 11:09:19 2012 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5A4310656A8 for ; Mon, 3 Sep 2012 11:09:19 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 75C268FC12 for ; Mon, 3 Sep 2012 11:09:19 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q83B9JGK043277 for ; Mon, 3 Sep 2012 11:09:19 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q83B9H55042876 for freebsd-embedded@FreeBSD.org; Mon, 3 Sep 2012 11:09:17 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 3 Sep 2012 11:09:17 GMT Message-Id: <201209031109.q83B9H55042876@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2012 11:09:19 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c 2 problems total. From owner-freebsd-embedded@FreeBSD.ORG Tue Sep 4 23:20:11 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03B12106564A; Tue, 4 Sep 2012 23:20:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id C04EC8FC08; Tue, 4 Sep 2012 23:20:10 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so10283025pbb.13 for ; Tue, 04 Sep 2012 16:20:10 -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:content-type; bh=86UpdenUT2slDXhjLJUNDozokh/L4famIeDj7Z88L1E=; b=xazELmVya3nuNeVKy0AUEPUyvKnsEPYC0emt6k59AYYTM9i+K8ahJ1AQRG/8lfPJYQ 8m15bHkx+hQhQSJluwHxplvXtGN88otOPY//y0TkPmB3/+I2be36R8YGS6gXG9JmIX+x ZPlolkQPXo0JRVg4/rjUIJQdSoo+BsOg4taoF6fHOT7/CfLsTA9rTuDSdlXDVrZcykbF AC3aXN8pKUXOQUeBiQ4goQMzc3bKH87HvozbKHWfF3boYflW7+TwRqDBZlgUotPZxNwq wFhZkoCPTijE9/EMsKOOA7qmtJDdOzgLBAjwd0RX8CVFZ6j8pyh4IUyWsOQ7QmT5obI/ 3o5g== MIME-Version: 1.0 Received: by 10.68.236.102 with SMTP id ut6mr49416068pbc.113.1346800810177; Tue, 04 Sep 2012 16:20:10 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.36.106 with HTTP; Tue, 4 Sep 2012 16:20:10 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 Sep 2012 16:20:10 -0700 X-Google-Sender-Auth: mLVlNyCbl87EIsemNNbupCDk2lA Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org, freebsd-embedded@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: Heads up: AR7241 + PCIe and AR9287 on-board stuff works X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2012 23:20:11 -0000 On 28 August 2012 21:00, Adrian Chadd wrote: > The default (most things as modules) kernel build is still ~ 3.5mb. > That's rather large for a board with 16MB of RAM. > > Additionally, I can't load the ath device after the system has come up > single user - the driver fails to allocate descriptors/buffer entries. > I'll do some digging about it in a couple of weeks. I'd like some > pointers on how to dump the current state of memory so I can see > exactly what's going on. > > For reference, 'sysctl vm.vmtotal' shows the total free RAM is around > 1 to 1.5MB. I'm guessing some are allocated to buffers but I'd like to > see what else is actually holding onto memory.. It turns out memory fragmentation due to a huge (for embedded) userland are to blame. I'll see if I can get ray@ to help me port phkmalloc to -HEAD again and try to tweak the default allocator parameters to not pre-allocate large pools for each process. Seeing login, sh, etc have an RSS of 1MB is kind of scary. I'll do some more digging with procstat (when I fit it into the current image) and report back. There's also the problem of a 3.5MB "stripped down nothing but what's needed to boot and read the rootfs from SPI flash + FFS" kernel size problem. That seems slightly(!) too big.. Adrian From owner-freebsd-embedded@FreeBSD.ORG Thu Sep 6 11:22:21 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 01AF9106566B; Thu, 6 Sep 2012 11:22:21 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id B01DB8FC0A; Thu, 6 Sep 2012 11:22:20 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:49ee:4a:4b3c:6f58]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id C9D874AC2D; Thu, 6 Sep 2012 15:22:12 +0400 (MSK) Date: Thu, 6 Sep 2012 15:22:08 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <25326010.20120906152208@serebryakov.spb.ru> To: Adrian Chadd In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, freebsd-embedded@freebsd.org Subject: Re: Heads up: AR7241 + PCIe and AR9287 on-board stuff works X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2012 11:22:21 -0000 Hello, Adrian. You wrote 5 =F1=E5=ED=F2=FF=E1=F0=FF 2012 =E3., 3:20:10: AC> There's also the problem of a 3.5MB "stripped down nothing but what's AC> needed to boot and read the rootfs from SPI flash + FFS" kernel size AC> problem. That seems slightly(!) too big.. Maybe, new work by Jonathan Anderson "Call graphs with bsd.obj.mk" could help to understand unused parts of kernel? --=20 // Black Lion AKA Lev Serebryakov