From owner-freebsd-mips@freebsd.org Sun Nov 1 19:36:42 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 825E8A24DAF for ; Sun, 1 Nov 2015 19:36:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x236.google.com (mail-ig0-x236.google.com [IPv6:2607:f8b0:4001:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CAE61BE5 for ; Sun, 1 Nov 2015 19:36:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igdg1 with SMTP id g1so43972215igd.1 for ; Sun, 01 Nov 2015 11:36:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=SANjMIWPM9tAMvUShlXeWLFpZV6JM6019YrLAoi/JO4=; b=ydyjXp1eJfa/4JCfqq80QtVdEBHfMM/2c1u8vq/EKdOgmQBMwncBXf5EwYP53jJHDT NZRjGSjkvWlJQeOxXkulI9ladpBXDtMaZ3sNUaSY+/B/NOl67CC/I/5t/qJPxa8To+YX D3o6FOV3qlAnqwdQiJuBnFhYhlGRqTqxl8bCcHau0lp07uUuGK2sDPb6c/2YcTCeGFxW bTGwlfa5IeeloeV8lkcC4cug19meRyYspr8emb/ro4ZQSHIHmHVl0jx2frEXANkWQWkI Pe3t430mgHEl6/oueNAMsyP1Y+C9EJfsnbKiftBN0WFyilieqy/R/YgAypsciRxeexxd 4aaw== MIME-Version: 1.0 X-Received: by 10.50.79.232 with SMTP id m8mr7489403igx.22.1446406601776; Sun, 01 Nov 2015 11:36:41 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.46.66 with HTTP; Sun, 1 Nov 2015 11:36:41 -0800 (PST) In-Reply-To: <563523CA.3040207@grosbein.net> References: <56348063.3090508@grosbein.net> <56348239.3050701@grosbein.net> <563500FC.8020201@grosbein.net> <5635148B.2070307@grosbein.net> <56351AA6.80903@grosbein.net> <563523CA.3040207@grosbein.net> Date: Sun, 1 Nov 2015 11:36:41 -0800 X-Google-Sender-Auth: _HlLifmDth5nitC9dSyXD-YDWb0 Message-ID: Subject: Re: CPU underload From: Adrian Chadd To: Eugene Grosbein Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Nov 2015 19:36:42 -0000 Hi, Whilst I'm thinking about that, how about we take a look at the unaligned accesses? I bet it's pmcstat, so can you do this: gdb pmcstat list *0x(address of the 'pc' value returned by the kernel messages) I'd like to figure out where in pmcstat/libpmc it's doing stupid stuff and undo it. Thanks! -a From owner-freebsd-mips@freebsd.org Sun Nov 1 20:31:31 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BF743A237A7 for ; Sun, 1 Nov 2015 20:31:31 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A60B113A; Sun, 1 Nov 2015 20:31:30 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id tA1KVD2L055777 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 1 Nov 2015 21:31:15 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: adrian@freebsd.org Received: from [10.58.0.10] (dadvw [10.58.0.10]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id tA1KV8kV065396 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 2 Nov 2015 03:31:08 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: CPU underload To: Adrian Chadd References: <56348063.3090508@grosbein.net> <56348239.3050701@grosbein.net> <563500FC.8020201@grosbein.net> <5635148B.2070307@grosbein.net> <56351AA6.80903@grosbein.net> <563523CA.3040207@grosbein.net> Cc: "freebsd-mips@freebsd.org" From: Eugene Grosbein Message-ID: <56367686.4090801@grosbein.net> Date: Mon, 2 Nov 2015 03:31:02 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Nov 2015 20:31:31 -0000 02.11.2015 2:36, Adrian Chadd пишет: > Hi, > > Whilst I'm thinking about that, how about we take a look at the > unaligned accesses? > > I bet it's pmcstat, so can you do this: > > gdb pmcstat > list *0x(address of the 'pc' value returned by the kernel messages) > > I'd like to figure out where in pmcstat/libpmc it's doing stupid stuff > and undo it. > > Thanks! I'd like to, but there is no space for gdb on real device. Is it possible to use qemu for that? From owner-freebsd-mips@freebsd.org Sun Nov 1 20:47:55 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 70AC2A23B79 for ; Sun, 1 Nov 2015 20:47:55 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2FC71192B for ; Sun, 1 Nov 2015 20:47:55 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iody8 with SMTP id y8so125865769iod.1 for ; Sun, 01 Nov 2015 12:47:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=xlBo2OHjAMYVN4QHrCR5fFtkHeynyZnFGfT8359H6VU=; b=Ct1mUvytbsVvsxree/mRySRoNTBB2NWsB0a/ly9h76yse6UV5oymoqB16QV4+4rJ7Q 2TrksN2QAlbN1bSoiTP9c7vb7CO8tht6IQu6CRtN52pYY5cgoYiDwYCLYIRigNBoitaU EgTKO22hb/bq67DokZcObnhbpDr45pZPHh4UWMpe6phEOSJx7UUI4/6qydC7hpiOxzO7 mUrXgLtH/OGgJ616JZdlzx9OtZN7coEnzeUTW2/XK+2E3qjxlBCBfQ3+r1MTQUOSG7Cl 2Hv6hv+v2WYOi1+DOVdZgBqZ9SRIT/UH9+rmCZSnzuP2VXoTD2+pu0Q6LH1szATNtJnA UTsA== MIME-Version: 1.0 X-Received: by 10.107.3.72 with SMTP id 69mr19030400iod.75.1446410874481; Sun, 01 Nov 2015 12:47:54 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.46.66 with HTTP; Sun, 1 Nov 2015 12:47:54 -0800 (PST) In-Reply-To: <56367686.4090801@grosbein.net> References: <56348063.3090508@grosbein.net> <56348239.3050701@grosbein.net> <563500FC.8020201@grosbein.net> <5635148B.2070307@grosbein.net> <56351AA6.80903@grosbein.net> <563523CA.3040207@grosbein.net> <56367686.4090801@grosbein.net> Date: Sun, 1 Nov 2015 12:47:54 -0800 X-Google-Sender-Auth: bdFhCBPoLGMCN5ynnuDaiC5QL00 Message-ID: Subject: Re: CPU underload From: Adrian Chadd To: Eugene Grosbein Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Nov 2015 20:47:55 -0000 Yeah, I'll poke at it tomorrow. I should just be able to fire up this in gdb and figure it out. How's it all looking so far? Is it still stable and still performing OK? -a On 1 November 2015 at 12:31, Eugene Grosbein wrote: > 02.11.2015 2:36, Adrian Chadd =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> >> Hi, >> >> Whilst I'm thinking about that, how about we take a look at the >> unaligned accesses? >> >> I bet it's pmcstat, so can you do this: >> >> gdb pmcstat >> list *0x(address of the 'pc' value returned by the kernel messages) >> >> I'd like to figure out where in pmcstat/libpmc it's doing stupid stuff >> and undo it. >> >> Thanks! > > > I'd like to, but there is no space for gdb on real device. > Is it possible to use qemu for that? > > From owner-freebsd-mips@freebsd.org Mon Nov 2 02:33:56 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3093A23E08 for ; Mon, 2 Nov 2015 02:33:56 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x235.google.com (mail-io0-x235.google.com [IPv6:2607:f8b0:4001:c06::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8EB031BA0 for ; Mon, 2 Nov 2015 02:33:56 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by ioll68 with SMTP id l68so131995238iol.3 for ; Sun, 01 Nov 2015 18:33:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=CQG9Pajm0nTiFGanmRo915hUtucFS9mRCVO/04QHym4=; b=zXaOAK1COYh0MhOzht4QKwsZptTewfEvWJq+XA+ZZELXXnmFeh0cmV6+Kt77gJc1JM jYd91PqacqNw6uU+vZMRmjEyyNj0Oig9OY7+72qjrECob1jEkyw98l6w1TpDPp2RWSsn odsFPN+iFvuvCBz480oCY2F/OqqRoj4ijcUY+7v11xjMxHwNQaKJG2IR1BmdkqF818pG A8Djr+xVb7CpHlysxvNT2tGf38sctYVKznwEW9xEJD11RlBlafie5Gpvnxht/kWibHxe fmcf/Oaq9Ys1k7yXlMbd++8w8xBxniUVy4UFsRHH5CgXU/CBjdNSqOzGjL9TG/LqP1Oq /z+w== MIME-Version: 1.0 X-Received: by 10.107.46.142 with SMTP id u14mr19787175iou.165.1446431636136; Sun, 01 Nov 2015 18:33:56 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.46.66 with HTTP; Sun, 1 Nov 2015 18:33:56 -0800 (PST) Date: Sun, 1 Nov 2015 18:33:56 -0800 X-Google-Sender-Auth: Hl2dlet3lh4oczrVQJ6jqbkFHX8 Message-ID: Subject: Broken things on MIPS32 - what I'd like help with! From: Adrian Chadd To: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 02:33:56 -0000 Hi, There are a couple of things that are broken on mips32 right now and I'm stretched pretty thin for time. I'd really appreciate it if someone could help by figuring out what's up. * If I use scp to copy something into a USB rootfs on my Carambola2, the whole system hangs. I can use ddb to break into things, but nothing obvious has shown up. The only two locks are a buflock and a vfslock - but I didn't get any LORs from Witness. * ddb "continue" and "step" no longer works. I don't know when it stopped working; I'd really appreciate some help figuring that out. I'm going to keep poking at some of the default tuning bits as well as performance/stability bits on ethernet and wifi. But having a working multi-user board and a working debugger would be really, really helpful. THanks! -adrian From owner-freebsd-mips@freebsd.org Mon Nov 2 03:07:49 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6AF48A24867 for ; Mon, 2 Nov 2015 03:07:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 38DC11D1D for ; Mon, 2 Nov 2015 03:07:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iodd200 with SMTP id d200so131159992iod.0 for ; Sun, 01 Nov 2015 19:07:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=3RoOjiV5KLwUVNCi2oG5CaOKtSz2LYB/7gYPegX8w8k=; b=JoCSlFcwe5mFxU+cRbfehwpcs0Yb7UKqkA/DE/7IdG5UbUpJDTb35PpDgDy8xyAqJr 4tbGejHdnuW7dMw+1Z5DwSHHX2yANPXRmgYrjHWzblVXlGs2ZbnQfy1nHVlFft7OOEzg mypWHD/2LS0CwScKSDB71uHgPl0oD0qvtGDyYcz0EOjasAaYf7OXy0xcyccVH3N27GN0 TqspMWfshCbuDScf7DVj3Mf2VdhjRsz84Wnz73hAhojfiKFviuXsjBt0klah83TPvKSi LjTHk4B0JjqSiR/SwvcyqPJ8kMEJCQZCP2x8nuqHW1gT3muEefCTC2v05UBjvZgYRM+x WegA== MIME-Version: 1.0 X-Received: by 10.107.46.142 with SMTP id u14mr19854187iou.165.1446433668689; Sun, 01 Nov 2015 19:07:48 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.46.66 with HTTP; Sun, 1 Nov 2015 19:07:48 -0800 (PST) In-Reply-To: References: Date: Sun, 1 Nov 2015 19:07:48 -0800 X-Google-Sender-Auth: ID6KvO4Bhv0nqiqm5Sbh2MKV85E Message-ID: Subject: Re: Broken things on MIPS32 - what I'd like help with! From: Adrian Chadd To: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 03:07:49 -0000 More digging into #2: INTERNAL: Allocating one item from buf free cache(0x83fea7e0) uma_zalloc_arg: Bucketzone returned NULL INTERNAL: Allocating one item from buf free cache(0x83fea7e0) uma_zalloc_arg: Bucketzone returned NULL .. (That's from flipping on UMA debugging.) Something is getting wedged allocating a buf, failing, and sticking in a loop without enough backoff to let other kernel code run. -adrian From owner-freebsd-mips@freebsd.org Mon Nov 2 06:50:31 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8B118A2409A for ; Mon, 2 Nov 2015 06:50:31 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F07B91E1E; Mon, 2 Nov 2015 06:50:30 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id tA26oIKE058170 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 2 Nov 2015 07:50:20 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: adrian@freebsd.org Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id tA26o8XZ002381; Mon, 2 Nov 2015 13:50:08 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: CPU underload To: Adrian Chadd References: <56348063.3090508@grosbein.net> <56348239.3050701@grosbein.net> <563500FC.8020201@grosbein.net> <5635148B.2070307@grosbein.net> <56351AA6.80903@grosbein.net> <563523CA.3040207@grosbein.net> <56367686.4090801@grosbein.net> Cc: "freebsd-mips@freebsd.org" From: Eugene Grosbein X-Enigmail-Draft-Status: N1110 Message-ID: <563707A0.3040700@grosbein.net> Date: Mon, 2 Nov 2015 13:50:08 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM, T_DATE_IN_FUTURE_96_Q autolearn=no version=3.3.2 X-Spam-Report: * 0.0 T_DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: * date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 06:50:31 -0000 On 02.11.2015 03:47, Adrian Chadd wrote: > Yeah, I'll poke at it tomorrow. > > I should just be able to fire up this in gdb and figure it out. > > How's it all looking so far? Is it still stable and still performing OK? I do not use the device in practice yet, only for experiments. There are lots of things to be done before I can use it for real. First, the kernel in head it way too big. It should be possible to compile out lots of unneeded but large subsystems like JAIL support etc. Then, routing performance is still low and pmcstat shows lots of memcpy too many locking for uniprocessor kernel comparing with bridging. Next, USB flash support is not very stable as I have written before, lots of USB i/o can easily panic the kernel. Also, I need to think of reliable way to perform freebsd image upgrade over IP, without having physical access to device. I think recently introduced 're-root' feature could help. And I have not tested wifi yet because wifi support takes lots of flash space. I still need to figure out how to fit all its bits and other binaries I need (like openssh, routing daemons etc.) using just 8M flash. From owner-freebsd-mips@freebsd.org Mon Nov 2 07:04:27 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0A0BA243D1 for ; Mon, 2 Nov 2015 07:04:27 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk0-x22b.google.com (mail-qk0-x22b.google.com [IPv6:2607:f8b0:400d:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 667D31469 for ; Mon, 2 Nov 2015 07:04:27 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by qkcl124 with SMTP id l124so51539787qkc.3 for ; Sun, 01 Nov 2015 23:04:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp_com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=jyb3niZG/nEkYIcFfpWvrsGYpmwnzb0Hgw5ICw1FMhY=; b=jdFCCy5qOQREZ9qKm/jwkUAAc4jopgQm8+oB083N/h+pPM9CR6gM0mtv03Vy1CWcRg vxUVb/ZJPfIiuVJQITj1HSlCgK6MlKI/r2YpaVleoRWTR9suTgI5w7esfkxBXUibIfg4 AUqMqF0fl47N5FuLtrRe8XdEkBP2mOWd6pDIqAwvybaKfMz7Yu1iT1qtWPSb8MdwhFS6 8qAwlVXw3rUnMBZnmQbNiAUjTvgXXNgYT3qtUtEsTSbrCCmf9TTJ6EKtXSKP+ffm3wYI 0t0S0ZJu7jWTQe7rpGpWmo+evcABGY7VsYfsc7RZ0OmSNWmHekAdNlbYrOdFdtmt31Jm 68vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=jyb3niZG/nEkYIcFfpWvrsGYpmwnzb0Hgw5ICw1FMhY=; b=Z7H0ek3a5trK4H6KEWZejAhQJFS4SRi6JaziEow7ev5A/dOE9GZpRr6qfexoEWBPxK 6yAcio03PY+JYnud5SCNs/8dWGfMSgZQFBTXpkwE9T4BeFls1k3synnBEtl1FXpCy18t +mf15ks0Ht3XV8zZ4DqL9/cWJR9ADCZkrE1uVpJp3KsQLv2PV4WwOW3gpDwqIZWviWFW h5fQd50qkbKLJGxlErZQuOtzMh6gkCp+Bwd42OYuv1BNUDvF+sFYGvh8pGcvAJ9XyiMP v4LWEBRmiYO5w5es/JgoGbw61iEkN+AjLLS+w3tdIVKZUZ2ZbN0GB4beRsLvbeeHIzF4 wcgw== X-Gm-Message-State: ALoCoQmY3k/18Cq3uvxJSho/63whkBV7oLMiapjarKyQebuQwKJVXzgGmUXkHDjgaFlaUMfyQvEj MIME-Version: 1.0 X-Received: by 10.55.33.40 with SMTP id h40mr19239879qkh.77.1446447866277; Sun, 01 Nov 2015 23:04:26 -0800 (PST) Sender: wlosh@bsdimp.com Received: by 10.140.104.226 with HTTP; Sun, 1 Nov 2015 23:04:26 -0800 (PST) X-Originating-IP: [69.53.245.6] In-Reply-To: <563707A0.3040700@grosbein.net> References: <56348063.3090508@grosbein.net> <56348239.3050701@grosbein.net> <563500FC.8020201@grosbein.net> <5635148B.2070307@grosbein.net> <56351AA6.80903@grosbein.net> <563523CA.3040207@grosbein.net> <56367686.4090801@grosbein.net> <563707A0.3040700@grosbein.net> Date: Mon, 2 Nov 2015 00:04:26 -0700 X-Google-Sender-Auth: QqsXxE_V1r0FZy1EfRt56o7YGs0 Message-ID: Subject: Re: CPU underload From: Warner Losh To: Eugene Grosbein Cc: Adrian Chadd , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 07:04:27 -0000 On Sun, Nov 1, 2015 at 11:50 PM, Eugene Grosbein wrote: > On 02.11.2015 03:47, Adrian Chadd wrote: > > Yeah, I'll poke at it tomorrow. > > > > I should just be able to fire up this in gdb and figure it out. > > > > How's it all looking so far? Is it still stable and still performing OK? > > I do not use the device in practice yet, only for experiments. > There are lots of things to be done before I can use it for real. > > First, the kernel in head it way too big. It should be possible > to compile out lots of unneeded but large subsystems like JAIL support etc. > > Then, routing performance is still low and pmcstat shows lots of memcpy > too many locking for uniprocessor kernel comparing with bridging. > > Next, USB flash support is not very stable as I have written before, > lots of USB i/o can easily panic the kernel. > Does your flash device support trim / delete? Warner > Also, I need to think of reliable way to perform freebsd image upgrade > over IP, without having physical access to device. I think recently > introduced > 're-root' feature could help. > > And I have not tested wifi yet because wifi support takes lots of flash > space. > I still need to figure out how to fit all its bits and other binaries > I need (like openssh, routing daemons etc.) using just 8M flash. > > From owner-freebsd-mips@freebsd.org Mon Nov 2 07:18:03 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 286AEA246DD for ; Mon, 2 Nov 2015 07:18:03 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AAABE1CF2; Mon, 2 Nov 2015 07:18:02 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id tA27Hr6X058246 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 2 Nov 2015 08:17:53 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: imp@bsdimp.com Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id tA27HnDJ002670; Mon, 2 Nov 2015 14:17:49 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: CPU underload To: Warner Losh References: <56348063.3090508@grosbein.net> <56348239.3050701@grosbein.net> <563500FC.8020201@grosbein.net> <5635148B.2070307@grosbein.net> <56351AA6.80903@grosbein.net> <563523CA.3040207@grosbein.net> <56367686.4090801@grosbein.net> <563707A0.3040700@grosbein.net> Cc: Adrian Chadd , "freebsd-mips@freebsd.org" From: Eugene Grosbein Message-ID: <56370E1D.3040801@grosbein.net> Date: Mon, 2 Nov 2015 14:17:49 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM, T_DATE_IN_FUTURE_96_Q autolearn=no version=3.3.2 X-Spam-Report: * 0.0 T_DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: * date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 07:18:03 -0000 On 02.11.2015 14:04, Warner Losh wrote: > Next, USB flash support is not very stable as I have written before, > lots of USB i/o can easily panic the kernel. > > Does your flash device support trim / delete? Not sure. How do I know? It is just USB pen flash. From owner-freebsd-mips@freebsd.org Mon Nov 2 08:12:33 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6A37EA2368C for ; Mon, 2 Nov 2015 08:12:33 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F2FD91D0A; Mon, 2 Nov 2015 08:12:31 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id tA28CKed058481 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 2 Nov 2015 09:12:23 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: adrian@freebsd.org Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id tA28CFa4002957; Mon, 2 Nov 2015 15:12:16 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: Re: Broken things on MIPS32 - what I'd like help with! To: Adrian Chadd , "freebsd-mips@freebsd.org" References: From: Eugene Grosbein Message-ID: <56371ADF.90806@grosbein.net> Date: Mon, 2 Nov 2015 15:12:15 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 08:12:33 -0000 On 02.11.2015 09:33, Adrian Chadd wrote: > Hi, > > There are a couple of things that are broken on mips32 right now and > I'm stretched pretty thin for time. > > I'd really appreciate it if someone could help by figuring out what's up. > > * If I use scp to copy something into a USB rootfs on my Carambola2, > the whole system hangs. I can use ddb to break into things, but > nothing obvious has shown up. The only two locks are a buflock and a > vfslock - but I didn't get any LORs from Witness. I've found that writing USB mounted async easily hangs or traps the kernel but I can write whole /boot/modules (over 30MB, lots of files) without a problem if USB is moused "noasync". That is, no soft-updates, no async and not "sync" - plain old good default mounting mode. It is slow but much more stable. From owner-freebsd-mips@freebsd.org Mon Nov 2 09:32:16 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D87DA24CAE for ; Mon, 2 Nov 2015 09:32:16 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B7A4B1A71 for ; Mon, 2 Nov 2015 09:32:15 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221]) by hz.grosbein.net (8.14.9/8.14.9) with ESMTP id tA29W92D058687 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 2 Nov 2015 10:32:10 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id tA29W13f003636 for ; Mon, 2 Nov 2015 16:32:01 +0700 (KRAT) (envelope-from eugen@grosbein.net) To: "freebsd-mips@freebsd.org" From: Eugene Grosbein Subject: /etc/rc.initdiskless support for small systems X-Enigmail-Draft-Status: N1110 Message-ID: <56372D91.8040902@grosbein.net> Date: Mon, 2 Nov 2015 16:32:01 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM, T_DATE_IN_FUTURE_96_Q autolearn=no version=3.3.2 X-Spam-Report: * 0.0 T_DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: * date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hz.grosbein.net X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 09:32:16 -0000 Hi! Sometimes it is suitable to use stock /etc/rc.initdiskless to manage boot-time configuration of embedded systems. Sadly, rc.initdislkess assumes there is distinct file system keeping persitent local configuration (startup config). Small systems like MIPS routers may have no enough flash space for full-blown fs. I've patched rc.initdiskless to run auxiliary command at boot time to extract startup configuration from such small local storage, f.e. from /dev/map/cfg I've just submited the patch with PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204215 This way, one can use /conf/default/etc/extract command doing something like: cd "$1" && bsdcpio --quiet -idu < /dev/map/cfg /etc/rc.initdiskless runs such command passing /etc as $1 at boot time then. From owner-freebsd-mips@freebsd.org Mon Nov 2 21:54:55 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B1DA1A255DE for ; Mon, 2 Nov 2015 21:54:55 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8D28F1181; Mon, 2 Nov 2015 21:54:55 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id E0F6A5A9F12; Mon, 2 Nov 2015 21:54:47 +0000 (UTC) Date: Mon, 2 Nov 2015 21:54:47 +0000 From: Brooks Davis To: Adrian Chadd Cc: "freebsd-mips@freebsd.org" Subject: Re: Broken things on MIPS32 - what I'd like help with! Message-ID: <20151102215447.GB50561@spindle.one-eyed-alien.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 21:54:55 -0000 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 01, 2015 at 06:33:56PM -0800, Adrian Chadd wrote: > Hi, >=20 > There are a couple of things that are broken on mips32 right now and > I'm stretched pretty thin for time. >=20 > I'd really appreciate it if someone could help by figuring out what's up. >=20 > * If I use scp to copy something into a USB rootfs on my Carambola2, > the whole system hangs. I can use ddb to break into things, but > nothing obvious has shown up. The only two locks are a buflock and a > vfslock - but I didn't get any LORs from Witness. >=20 > * ddb "continue" and "step" no longer works. I don't know when it > stopped working; I'd really appreciate some help figuring that out. Robert Watson methioned recently that "continue" wasn't working on mips64. Our tree is >3 months out of date so some bisection may be in order. scp is working for us. -- Brooks --SUOF0GtieIMvvwua Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWN9unAAoJEKzQXbSebgfAxxsH/2LqgQ32F+nSlBZf8WLhQuJq dmH36hHfHyLc7vBd6sCzTz24B+rgY/2ZHZu9Uo5XmW11blZ9ygOAiazRJKSGGGlu cY3dqdaDOXaW8eopyiEXW9xVvNgE4E5BdNXlfOVFccMBcirzEo2jb74B4nj1LPFy 2cwoirtyNdO13GXMkI+34jeMRg1Tk6flyUh29a0BWfwGEnENUQgBpAeenFNbKSo+ 5PyKTrdDf7or7iP6lGzd1N00y4hQjuDIq4O7qy4crjn4eM8yc/TjbWUnv7PLAgXs RfbjrEJugk04HZUmHP3BWDHHaVM5ZuGc6qs00yKVxmKCowQz10jAc1exbnL8smI= =f71Z -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua-- From owner-freebsd-mips@freebsd.org Mon Nov 2 22:18:08 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25AC0A25E02 for ; Mon, 2 Nov 2015 22:18:08 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E6CF31266; Mon, 2 Nov 2015 22:18:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igpw7 with SMTP id w7so57993257igp.1; Mon, 02 Nov 2015 14:18:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=sbfpQ4Xzai+Y8/5r+rFnUQMW+xyly0NiPkNtwKNIXgk=; b=ilhHpFB+pcKDdSPUFunXU3QETyz1IrzgQNa6Q6rLDXZHzOLNVSEWHH+VrSfP36njWo uSePvEbtbWsOv0Om1Z0YMRohmUDTBpl315MJECq+wVeo051hAGDpLgM0biLAgv5zdQsK x01ib40nDulRmStTqvjyyLC0o1U3n0qH+QrwtCiGNpwzd0nEuEjLSFwQHQb8lnmu6Ell gWLkYWL9wwJ/FBLs/0Wggr6R5Sd4vsQZm7QZg83KJUfSd3EGKP4no2LW8/YctlJDMv/T xpGT/eYWDLUTJgoI1u9eYAk1etpw4zQ0P2gTNQ3Ygxdtp0wJuVo6Io2pPBRSpQcsP55H cb/A== MIME-Version: 1.0 X-Received: by 10.50.62.104 with SMTP id x8mr4225034igr.22.1446502687416; Mon, 02 Nov 2015 14:18:07 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.46.66 with HTTP; Mon, 2 Nov 2015 14:18:07 -0800 (PST) In-Reply-To: <20151102215447.GB50561@spindle.one-eyed-alien.net> References: <20151102215447.GB50561@spindle.one-eyed-alien.net> Date: Mon, 2 Nov 2015 14:18:07 -0800 X-Google-Sender-Auth: r_MUQRPKii-omNTOJNVsns93qaY Message-ID: Subject: Re: Broken things on MIPS32 - what I'd like help with! From: Adrian Chadd To: Brooks Davis Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 22:18:08 -0000 On 2 November 2015 at 13:54, Brooks Davis wrote: > On Sun, Nov 01, 2015 at 06:33:56PM -0800, Adrian Chadd wrote: >> Hi, >> >> There are a couple of things that are broken on mips32 right now and >> I'm stretched pretty thin for time. >> >> I'd really appreciate it if someone could help by figuring out what's up. >> >> * If I use scp to copy something into a USB rootfs on my Carambola2, >> the whole system hangs. I can use ddb to break into things, but >> nothing obvious has shown up. The only two locks are a buflock and a >> vfslock - but I didn't get any LORs from Witness. >> >> * ddb "continue" and "step" no longer works. I don't know when it >> stopped working; I'd really appreciate some help figuring that out. > > Robert Watson methioned recently that "continue" wasn't working on > mips64. Our tree is >3 months out of date so some bisection may be in > order. Yeah. Mine is -HEAD and still broken. I think we need to bisect. > > scp is working for us. I debugged this with jeffr. phew! -adrian From owner-freebsd-mips@freebsd.org Wed Nov 4 22:50:16 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 482F5A26B06 for ; Wed, 4 Nov 2015 22:50:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1127C1A48; Wed, 4 Nov 2015 22:50:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by ioc74 with SMTP id 74so5544471ioc.2; Wed, 04 Nov 2015 14:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=jkpeGtqFlfzu/R4iXXI/uOr+RZzcqrdIGNaIKs0PPNc=; b=JT9zY0338UtZHnDjr4o6umTqyCT2M6/oUNfCyjXLTga3EF5NybKwb0A6y/pv6cDMln kv6RnHwSLCWCNBdlzuuzH5TmVWrnJHPfMcqnYAD4u3XyABdMf5nrMwX+9QifFI/TOme4 SO9b6+v1XzE7XihS4iU+JJjlzreYVStjffm9FvzR160ExvV1NMbQYVhvTVA2NXk8cwp9 j4odAUvphcjH4AmyeM69Kw3H51xViAD9oDxyL6nPh4p+JunfeoB68PtlohSRcPXBxzvx 0m+EzZz350v+CHVEdfIszcB+HkilTNXfKZnPA3T0ALKd9bAJZUnIr7Yf0KRUbt2yLjgo Zf+w== MIME-Version: 1.0 X-Received: by 10.107.46.142 with SMTP id u14mr5873767iou.165.1446677415579; Wed, 04 Nov 2015 14:50:15 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.46.66 with HTTP; Wed, 4 Nov 2015 14:50:15 -0800 (PST) In-Reply-To: References: <20151102215447.GB50561@spindle.one-eyed-alien.net> Date: Wed, 4 Nov 2015 14:50:15 -0800 X-Google-Sender-Auth: tbTwebBQQ4DrNQqyNb9wRWXAPnA Message-ID: Subject: Re: Broken things on MIPS32 - what I'd like help with! From: Adrian Chadd To: Brooks Davis Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Nov 2015 22:50:16 -0000 Hiya, yes, Jeff/Kib/etc are helping debug the low-memory buf hang, so thanks to them! I'd really appreciate the help if someone would dig into what's going on with ddb and step/continue. I'd really like the debugger to work again :) -a From owner-freebsd-mips@freebsd.org Thu Nov 5 06:01:30 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 652EFA26870; Thu, 5 Nov 2015 06:01:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22c.google.com (mail-ig0-x22c.google.com [IPv6:2607:f8b0:4001:c05::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2CAA81E60; Thu, 5 Nov 2015 06:01:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igpw7 with SMTP id w7so4344412igp.0; Wed, 04 Nov 2015 22:01:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=2mq3uR/+35pedFPtAIXzBadb3ngD0Uge7+sPKCQ1CUQ=; b=TvonYi2Huqj8hEmOcTEbim1o6D2Ou9bbay+U6dgJv5FFuQG7O2xsODRE9W1sg+SBnR 6xL4b/VEmDyjqB+KuIpQ7RpHS10WMHbrcJzKwyT9KajThPihaPIOx+pg4dFZquOdpgU7 i54+TzL8hqDtnccef4CvUL1wgKA+3m534B+YSYPc6N/5wOqM4Uq7WElVq1bkd+5l5nrF WpN9khJkLW6CdHJih/O1PIRhW3aR1JxKMTdI49SA6jBr8YFmRfPWnO0DGmJExIxX9Hov wRIx7ZRXBzZpjxx5Ef4fRtCOt2ZagDDIh06h7jb7edd6t1SBkLCBwa+S0xkV21WFVtd4 gWMg== MIME-Version: 1.0 X-Received: by 10.50.155.41 with SMTP id vt9mr1025610igb.22.1446703289619; Wed, 04 Nov 2015 22:01:29 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.217.196 with HTTP; Wed, 4 Nov 2015 22:01:29 -0800 (PST) In-Reply-To: References: Date: Wed, 4 Nov 2015 22:01:29 -0800 X-Google-Sender-Auth: vB7NH5bzVTjU-xbCZEQDg4mtUOI Message-ID: Subject: Fwd: COMPILER_TYPE and installworld From: Adrian Chadd To: "freebsd-arch@freebsd.org" , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2015 06:01:30 -0000 Hi, I started digging into why "make installworld" doesn't work when using the external toolchain support using CROSS_TOOLCHAIN= support. This is one of the big hurdles to just using 100% external toolchain using bapt's CROSS_TOOLCHAIN support. The TL;DR seems to be: * buildworld/buildkernel: CC gets set right; PATH doesn't include /usr/bin:/usr/sbin * installkernel: MACHINE is set, CC is not set (so it's 'cc') and PATH includes /usr/bin:/usr/sbin * installworld: MACHINE is set, CC is not set, PATH doesn't include /usr/bin:/usr/sbin The result is that during installkernel it finds 'cc' in /usr/bin and detects it as clang, even though I'm doing a mips-gcc build. During installworld it fails because it can't find 'cc'. So! In the short term, is there any way that during installworld/installkernel we can also set CC, etc appropriately? Otherwise we're either using the wrong compiler logic/version (installkernel) or we're just plain not going to work (installworld.) Also - why is PATH including /usr/bin:/usr/sbin when doing installkernel, but not installworld? To reproduce: * pkg install mips-gcc mips-xtoolchain-gcc mips-binutils * env MAKEOBJDIRPREFIX=/tmp/mips-obj make CROSS_TOOLCHAIN=mips-gcc TARGET=mips TARGET_ARCH=mips TARGET_CPUTYPE=mips32 DESTDIR=/tmp/mips-root -j 4 buildworld buildkernel installworld installkernel KERNCONF=MALTA ... make[4]: "/usr/home/adrian/work/freebsd/head-embedded-gcc5/src/share/mk/bsd.compiler.mk" line 50: warning: "machine: mips, X_COMPILER_TYPE: , CC: cc" make[4]: "/usr/home/adrian/work/freebsd/head-embedded-gcc5/src/share/mk/bsd.compiler.mk" line 96: warning: "Finished; COMPILER_TYPE=clang, COMPILER_VERSION=30700, COMPILER_FEATURES=c++11" .. so in the installkernel setup, the PATH includes /usr/bin which means 'cc' works, and thus it's detecting the compiler as clang even though we're supposed to be using mips-gcc. in the installworld setup, there's no /usr/bin in PATH, so it can't find cc. buildworld is ok: make[6]: "/usr/home/adrian/work/freebsd/head-embedded-gcc5/src/share/mk/bsd.compiler.mk" line 50: warning: "machine: amd64, X_COMPILER_TYPE: , CC: cc" make[6]: "/usr/home/adrian/work/freebsd/head-embedded-gcc5/src/share/mk/bsd.compiler.mk" line 96: warning: "Finished; COMPILER_TYPE=clang, COMPILER_VERSION=30700, COMPILER_FEATURES=c++11" ===> gnu/usr.bin/groff/src/devices/grops (obj) .. for the local stuff, and: make[5]: "/usr/home/adrian/work/freebsd/head-embedded-gcc5/src/share/mk/bsd.compiler.mk" line 50: warning: "machine: mips, X_COMPILER_TYPE: , CC: /usr/local/bin/mips-portbld-freebsd11.0-gcc -isystem /home/adrian/work/freebsd/head-embedded-gcc5/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded-gcc5/src/tmp/usr/include -L/home/adrian/work/freebsd/head-embedded-gcc5/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded-gcc5/src/tmp/usr/lib --sysroot=/home/adrian/work/freebsd/head-embedded-gcc5/src/../obj/mips_ap//mips.mips/usr/home/adrian/work/freebsd/head-embedded-gcc5/src/tmp -B/usr/local/mips-freebsd/bin/" make[5]: "/usr/home/adrian/work/freebsd/head-embedded-gcc5/src/share/mk/bsd.compiler.mk" line 96: warning: "Finished; COMPILER_TYPE=gcc, COMPILER_VERSION=50200, COMPILER_FEATURES=c++11" .. for the building mips stuff. So installkernel works only "by magic" because of PATH, and CC is just not being set right for installkernel/installworld. ok, so what now? :) -adrian From owner-freebsd-mips@freebsd.org Thu Nov 5 07:13:57 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F74CA26649; Thu, 5 Nov 2015 07:13:57 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ipmail06.adl2.internode.on.net (ipmail06.adl2.internode.on.net [150.101.137.129]) by mx1.freebsd.org (Postfix) with ESMTP id 87C69141E; Thu, 5 Nov 2015 07:13:55 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ppp118-210-152-215.lns20.adl6.internode.on.net (HELO midget.dons.net.au) ([118.210.152.215]) by ipmail06.adl2.internode.on.net with ESMTP; 05 Nov 2015 17:38:45 +1030 Received: from [10.0.2.26] ([10.0.2.26]) (authenticated bits=0) by midget.dons.net.au (8.15.1/8.14.9) with ESMTPSA id tA578eKW095504 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 5 Nov 2015 17:38:41 +1030 (CST) (envelope-from darius@dons.net.au) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: COMPILER_TYPE and installworld From: "O'Connor, Daniel" In-Reply-To: Date: Thu, 5 Nov 2015 17:38:40 +1030 Cc: "freebsd-arch@freebsd.org" , "freebsd-mips@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <26BD9533-2C1E-4198-9AC2-BDD77A08337D@dons.net.au> References: To: Adrian Chadd X-Mailer: Apple Mail (2.3096.5) X-Spam-Score: -2.9 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.75 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2015 07:13:57 -0000 > On 5 Nov 2015, at 16:31, Adrian Chadd wrote: > So! In the short term, is there any way that during > installworld/installkernel we can also set CC, etc appropriately? > Otherwise we're either using the wrong compiler logic/version > (installkernel) or we're just plain not going to work (installworld.) Why does installworld/kernel care what the compiler type is? Or is it just something incidental which gets pulled in that complains = because it can't work it out? If so perhaps the easiest way would be to = add a flag which turns off compiler detection and set it for install* If install* _do_ need to know the compiler type then, bleh.. -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C From owner-freebsd-mips@freebsd.org Thu Nov 5 07:28:19 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73C1FA26A13; Thu, 5 Nov 2015 07:28:19 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3D5E51AEB; Thu, 5 Nov 2015 07:28:19 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbdj2 with SMTP id dj2so5162022igb.1; Wed, 04 Nov 2015 23:28:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=UJH81/O0ErZOdSn2Z6jdZItR0zf+xTM2j83S3uDpSTY=; b=RoB0cYXPS+kNxbnm0FqFqkYDG8JcEcqwPaCuJTYvNFdxN3Q7oo9eUpVktmGClsMkq8 Xvk/RsoiXfVmRlrYvlqE5FfdCftXymJL4Iafmi3CB6n93AfJXV6dqXxbdDkYXa7sjhaq wON+Zg3FlzbaV1p0rYNwv7lAcL9W/Lly3oaqTGn/gr/+voclPtENtLfgBojcqBVE/lo2 nPUIG+vc+Yhlejz2eSSNL4nN3BWrhmTnx7EzrdsAHc4E6KFOBoGrKd30Oiu78OZSf/Ig x9GmDQGzc+kOQHzadzIzUcqzCH1+V/2HdF0ntSQga23dz2mLW4Rdw2l3/GT8momyod2M ut9g== MIME-Version: 1.0 X-Received: by 10.50.164.196 with SMTP id ys4mr1433991igb.37.1446708498705; Wed, 04 Nov 2015 23:28:18 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.217.196 with HTTP; Wed, 4 Nov 2015 23:28:18 -0800 (PST) In-Reply-To: <26BD9533-2C1E-4198-9AC2-BDD77A08337D@dons.net.au> References: <26BD9533-2C1E-4198-9AC2-BDD77A08337D@dons.net.au> Date: Wed, 4 Nov 2015 23:28:18 -0800 X-Google-Sender-Auth: wZeaTR_wo4OGqljv42c9knAtU3g Message-ID: Subject: Re: COMPILER_TYPE and installworld From: Adrian Chadd To: "O'Connor, Daniel" Cc: "freebsd-arch@freebsd.org" , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2015 07:28:19 -0000 On 4 November 2015 at 23:08, O'Connor, Daniel wrote: > >> On 5 Nov 2015, at 16:31, Adrian Chadd wrote: >> So! In the short term, is there any way that during >> installworld/installkernel we can also set CC, etc appropriately? >> Otherwise we're either using the wrong compiler logic/version >> (installkernel) or we're just plain not going to work (installworld.) > > Why does installworld/kernel care what the compiler type is? There's some stuff that's conditionally compiled based ont he compiler. Don't ask. :) -a > Or is it just something incidental which gets pulled in that complains because it can't work it out? If so perhaps the easiest way would be to add a flag which turns off compiler detection and set it for install* > > If install* _do_ need to know the compiler type then, bleh.. > > -- > Daniel O'Connor > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum > GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C > From owner-freebsd-mips@freebsd.org Thu Nov 5 07:46:24 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 57A4FA26DD3; Thu, 5 Nov 2015 07:46:24 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x230.google.com (mail-pa0-x230.google.com [IPv6:2607:f8b0:400e:c03::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 25F1A1317; Thu, 5 Nov 2015 07:46:24 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by pabfh17 with SMTP id fh17so79887729pab.0; Wed, 04 Nov 2015 23:46:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=vkdbg5npOsaCupkskya0uWlFAkvvWKeWxNqVI++XAro=; b=lJbUxcr3t5x25wRGbdi9I5IfHbDSJCuQMnUaV7KqsVzHdV/XdWHs6qvoixhHNx54rp siHsIgUqcTzaVwMF1RqeJMuBt8YpAYQm3919Hro+bM5TofjenthJq7wjrCVwpLYvI497 7zyt819Dx3KKl201v1yl7UxGHg3ju/lQ3FK7KsPwNtDkpinhgdhCqbqdj4p3OJ/caYph SMe6wGuuSD84P5I+3bfCb21j8vHK0kGxBaU0juR0fDkhdM0zk1y0k+DR2VGux82t8nsP /mwlB6qIPwx188RtsXAxo2F6TZFjm89uVaBJrBQoJpPnw31cH+ZSI8xO9c68KOQ7tOSb 5aXw== X-Received: by 10.66.160.35 with SMTP id xh3mr7718817pab.22.1446709583774; Wed, 04 Nov 2015 23:46:23 -0800 (PST) Received: from [192.168.20.7] (c-24-16-212-205.hsd1.wa.comcast.net. [24.16.212.205]) by smtp.gmail.com with ESMTPSA id ve8sm6135994pbc.48.2015.11.04.23.46.22 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Nov 2015 23:46:23 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: COMPILER_TYPE and installworld From: NGie Cooper In-Reply-To: <26BD9533-2C1E-4198-9AC2-BDD77A08337D@dons.net.au> Date: Wed, 4 Nov 2015 23:46:21 -0800 Cc: Adrian Chadd , "freebsd-mips@freebsd.org" , "freebsd-arch@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <35BA9AA9-6DFA-4CFC-8AA8-25B1D9EDD494@gmail.com> References: <26BD9533-2C1E-4198-9AC2-BDD77A08337D@dons.net.au> To: "O'Connor, Daniel" X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2015 07:46:24 -0000 > On Nov 4, 2015, at 23:08, O'Connor, Daniel wrote: >=20 >=20 >> On 5 Nov 2015, at 16:31, Adrian Chadd wrote: >> So! In the short term, is there any way that during >> installworld/installkernel we can also set CC, etc appropriately? >> Otherwise we're either using the wrong compiler logic/version >> (installkernel) or we're just plain not going to work (installworld.) >=20 > Why does installworld/kernel care what the compiler type is? >=20 > Or is it just something incidental which gets pulled in that complains = because it can't work it out? If so perhaps the easiest way would be to = add a flag which turns off compiler detection and set it for install* >=20 > If install* _do_ need to know the compiler type then, bleh.. It shouldn=E2=80=99t care. bsd.compiler.mk just has the intelligence of = a stump and Makefile.inc1 doesn=E2=80=99t tell bsd.compiler.mk to do = otherwise in the distribution/install phases. If it were up to me, CC would be false when make install* is run from = Makefile.inc1.= From owner-freebsd-mips@freebsd.org Thu Nov 5 16:02:47 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 816EBA27F5C; Thu, 5 Nov 2015 16:02:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4A1811C32; Thu, 5 Nov 2015 16:02:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igpw7 with SMTP id w7so13880040igp.1; Thu, 05 Nov 2015 08:02:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=i3VzXLmtFuqG3yCq0zxGnSzVGipIgJxaYaJBkv1vGfk=; b=VzzmjVvUrU1wF1l/ROOqzwA1fpZ1Q5fWFJFjtuAc53VdPM9VSNt6WAXpdb5xDzaYSO bpQK/fwruJafcauy6cCXVwD4qY8sk4MeapT8N/alSmLfYHZNQywEGJaq0CTZwYmQkjrt 5g+UapQBhvIJP7ID6KHfkfLXJ0vsjcru/JgKV9opH9zHRn2NnsVwwVq80wo6P2ubv0Eu AQbrQmAGANhsJBq9rywYwg8PFUHH6nB2yqSZ6MEhAhLb3rpYhl0PqUthERPO7doCaxkp bNGboyMlBFbNcNFJTPFBf43Mcsh4BQq0WpPQZtzsRLi3GifKU/4Ol8F9XExSDn9b2NcY U/Lw== MIME-Version: 1.0 X-Received: by 10.50.6.36 with SMTP id x4mr3871063igx.61.1446739366682; Thu, 05 Nov 2015 08:02:46 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.217.196 with HTTP; Thu, 5 Nov 2015 08:02:46 -0800 (PST) In-Reply-To: <35BA9AA9-6DFA-4CFC-8AA8-25B1D9EDD494@gmail.com> References: <26BD9533-2C1E-4198-9AC2-BDD77A08337D@dons.net.au> <35BA9AA9-6DFA-4CFC-8AA8-25B1D9EDD494@gmail.com> Date: Thu, 5 Nov 2015 08:02:46 -0800 X-Google-Sender-Auth: PjciV5HHLYkLsl9W4qQ2jFN0yvY Message-ID: Subject: Re: COMPILER_TYPE and installworld From: Adrian Chadd To: NGie Cooper Cc: "O'Connor, Daniel" , "freebsd-mips@freebsd.org" , "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2015 16:02:47 -0000 On 4 November 2015 at 23:46, NGie Cooper wrote: > >> On Nov 4, 2015, at 23:08, O'Connor, Daniel wrote: >> >> >>> On 5 Nov 2015, at 16:31, Adrian Chadd wrote: >>> So! In the short term, is there any way that during >>> installworld/installkernel we can also set CC, etc appropriately? >>> Otherwise we're either using the wrong compiler logic/version >>> (installkernel) or we're just plain not going to work (installworld.) >> >> Why does installworld/kernel care what the compiler type is? >> >> Or is it just something incidental which gets pulled in that complains b= ecause it can't work it out? If so perhaps the easiest way would be to add = a flag which turns off compiler detection and set it for install* >> >> If install* _do_ need to know the compiler type then, bleh.. > > It shouldn=E2=80=99t care. bsd.compiler.mk just has the intelligence of a= stump and Makefile.inc1 doesn=E2=80=99t tell bsd.compiler.mk to do otherwi= se in the distribution/install phases. > > If it were up to me, CC would be false when make install* is run from Mak= efile.inc1. I don't mind what people do, I'd just really appreciate some help fixing this up. I think we're pretty close to being able to transition mips over to using 100% external toolchain only, and this is the starting point. So, what can we do? Pretty please? :) -adrian From owner-freebsd-mips@freebsd.org Thu Nov 5 18:13:22 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D50B8A27D3E for ; Thu, 5 Nov 2015 18:13:22 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qg0-x236.google.com (mail-qg0-x236.google.com [IPv6:2607:f8b0:400d:c04::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8161B12DE for ; Thu, 5 Nov 2015 18:13:22 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by qgad10 with SMTP id d10so72998895qga.3 for ; Thu, 05 Nov 2015 10:13:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp_com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=JuZJh/soHvxEfrEIjS/a1yXqYYvhs2xau+yYS3kcMfA=; b=GBq2fSXeU7rJz9iRoKG4XgzdgdHKMug2UY1IyPCocmz7r7sOyWbzsj8d2X2TMTqwlo bIICCqtchFxhDLZgiCs3PN6gJMYKrWU7WJnc6akditk49jfBNzWarD+eHrzgL/iDGpXR J3aC3wKdliqx4jnQarimcQ2jQnCp7ZVPb3u3V5STNr2tlPgOZ5HKyiw1n2Ya+kC8XxJc saIOFS1lA0vKjNMxtVGofo9wxyz3zRtfltg42Gx62HcSji36IFFM2s6GMvwSdJ1IN3wm fYL7wUdCBnbrK7e3ljN0F3CAoyaHYH3aPdAZkVu4apebDMsnDSoLWWL8U1PQ3pjC0IbW QIJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=JuZJh/soHvxEfrEIjS/a1yXqYYvhs2xau+yYS3kcMfA=; b=m678y6UZ+JUE9MmIPwzVVBy2bJBKyHSBabSyF+ORkkBz5BALoFk+T/4SLiN2KBidbp IgGs4sbZxYyqqpkQqRC0t/ScFnMkdDSIfIY0vpbhpOmEFvGXrF0yIXYivbwVm08eZr0N VLTbeKXFqMQGtKNuxELvhIU5rg2OPw6aNe7Pn7GJrdcNG7BJVsFJNJeTmtGYOCsVqgsu Tl1YYuTZ+sYvfjV1SgUz9UVVXZEPekXCOQpXg+BwhKz5JnQDU7Wyk9fPVo4UU980Leh0 pXaqKBBknEpCqUmgJfy0fEHwqD0HxDfQteVFOQYtwknfgTxyTjGMHDxKSvHx0CLUSlmG Na+A== X-Gm-Message-State: ALoCoQmTRS07bEqWTlLhBZLL/oGtXDuEuCWwShXFpHG5Z8SF7LeiiwqwIVz5lPgU1kvTLltrX1wl MIME-Version: 1.0 X-Received: by 10.140.221.198 with SMTP id r189mr9454270qhb.94.1446747201281; Thu, 05 Nov 2015 10:13:21 -0800 (PST) Sender: wlosh@bsdimp.com Received: by 10.140.104.226 with HTTP; Thu, 5 Nov 2015 10:13:21 -0800 (PST) X-Originating-IP: [2601:280:4900:3700:1c53:4baf:e617:68c6] In-Reply-To: References: <26BD9533-2C1E-4198-9AC2-BDD77A08337D@dons.net.au> <35BA9AA9-6DFA-4CFC-8AA8-25B1D9EDD494@gmail.com> Date: Thu, 5 Nov 2015 11:13:21 -0700 X-Google-Sender-Auth: Bw3ZS6s1utCmm4GQVFCOCvqMB_g Message-ID: Subject: Re: COMPILER_TYPE and installworld From: Warner Losh To: Adrian Chadd Cc: NGie Cooper , "O'Connor, Daniel" , "freebsd-mips@freebsd.org" , "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2015 18:13:22 -0000 On Thu, Nov 5, 2015 at 9:02 AM, Adrian Chadd wrote: > On 4 November 2015 at 23:46, NGie Cooper wrote: > > > >> On Nov 4, 2015, at 23:08, O'Connor, Daniel wrote: > >> > >> > >>> On 5 Nov 2015, at 16:31, Adrian Chadd wrote: > >>> So! In the short term, is there any way that during > >>> installworld/installkernel we can also set CC, etc appropriately? > >>> Otherwise we're either using the wrong compiler logic/version > >>> (installkernel) or we're just plain not going to work (installworld.) > >> > >> Why does installworld/kernel care what the compiler type is? > >> > >> Or is it just something incidental which gets pulled in that complains > because it can't work it out? If so perhaps the easiest way would be to a= dd > a flag which turns off compiler detection and set it for install* > >> > >> If install* _do_ need to know the compiler type then, bleh.. > > > > It shouldn=E2=80=99t care. bsd.compiler.mk just has the intelligence of= a stump > and Makefile.inc1 doesn=E2=80=99t tell bsd.compiler.mk to do otherwise in= the > distribution/install phases. > > > > If it were up to me, CC would be false when make install* is run from > Makefile.inc1. > > I don't mind what people do, I'd just really appreciate some help > fixing this up. I think we're pretty close to being able to transition > mips over to using 100% external toolchain only, and this is the > starting point. > > So, what can we do? Pretty please? :) > Sadly, CC=3Dtrue (or CC=3Dfalse) doesn't solve the problem. The defaults on the system depend, stupidly[*], on the compiler you are using and it's capabilities. This means you won't install all the bits that need C++11 to build, for example. I'm joining this discussion late. What circumstances do we get CC wrong in install*? For ages, that's been working properly. What changed? I suspect 'nothing' and this is nothing more than a pilot error, but it's possible it's a real bug. Most likely it's the specific flavor of external toolchain that Bapt added isn't quite setting variables the way it should. Warner [*] I've railed against this in the past to no good effect, mind you. From owner-freebsd-mips@freebsd.org Sat Nov 7 03:57:46 2015 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B852A27EC2 for ; Sat, 7 Nov 2015 03:57:46 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DCFA618F0 for ; Sat, 7 Nov 2015 03:57:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igpw7 with SMTP id w7so45832473igp.1 for ; Fri, 06 Nov 2015 19:57:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=0bwnzXlVAENjt4Rz8JXRcXpiU6sv+dGd5JyoFLVuSP4=; b=J6YqexJjkhB4eTjITmmqc6blzRIiUXlA0WgxILnYOgTMba4R/yECTuZKuK2lH5400k 5esq6nCHHuHTv3JbJ+HuC9D7u7/YagRjH/paf3XqMPsoIvAwUwKQqtMqd3usBH07Sby3 6/7CbLydM27QrjzINQ8cD2IGeuf2JqA5L1w3I8ZoNPnpf+QQ8YW6q+fovyCJLNSgJn3V Ft11KeEtkk/YkQcf7dcmXz5MhDtlE0RRhM7gGrXTF1QQEKxBgixB7H0LR7T0HBJ/x+rO +7NdBQg+IAi5fgbWQhXgE50nn4acWq1i2eFc9LrvXzT61FYxpN9a0Gf8f7LHHIhvof5U J2nA== MIME-Version: 1.0 X-Received: by 10.50.62.104 with SMTP id x8mr11605449igr.22.1446868665232; Fri, 06 Nov 2015 19:57:45 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.217.196 with HTTP; Fri, 6 Nov 2015 19:57:45 -0800 (PST) In-Reply-To: <56370E1D.3040801@grosbein.net> References: <56348063.3090508@grosbein.net> <56348239.3050701@grosbein.net> <563500FC.8020201@grosbein.net> <5635148B.2070307@grosbein.net> <56351AA6.80903@grosbein.net> <563523CA.3040207@grosbein.net> <56367686.4090801@grosbein.net> <563707A0.3040700@grosbein.net> <56370E1D.3040801@grosbein.net> Date: Fri, 6 Nov 2015 19:57:45 -0800 X-Google-Sender-Auth: vw2L8DN8AhzBbgjYYHR_rYL6s8A Message-ID: Subject: Re: CPU underload From: Adrian Chadd To: Eugene Grosbein Cc: Warner Losh , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Nov 2015 03:57:46 -0000 On 1 November 2015 at 23:17, Eugene Grosbein wrote: > On 02.11.2015 14:04, Warner Losh wrote: > >> Next, USB flash support is not very stable as I have written before, >> lots of USB i/o can easily panic the kernel. >> >> Does your flash device support trim / delete? > > Not sure. How do I know? It is just USB pen flash. hiya, ok, this is next . What's the deal with this? can you panic it and report it please? :) -a