From owner-freebsd-mips@freebsd.org Sun Nov 8 15:51:32 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 EF227A29B2D for ; Sun, 8 Nov 2015 15:51:32 +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 626061F1C; Sun, 8 Nov 2015 15:51: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 tA8FpLGs007668 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 8 Nov 2015 16:51:24 +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 tA8FpBgp033510; Sun, 8 Nov 2015 22:51:11 +0700 (KRAT) (envelope-from eugen@grosbein.net) Subject: USB-related problem 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> <563707A0.3040700@grosbein.net> <56370E1D.3040801@grosbein.net> <563F5630.2000407@grosbein.net> Cc: "freebsd-mips@freebsd.org" From: Eugene Grosbein Message-ID: <563F6F6F.1010807@grosbein.net> Date: Sun, 8 Nov 2015 22:51:11 +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: <563F5630.2000407@grosbein.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.3 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_24_48, LOCAL_FROM autolearn=no version=3.3.2 X-Spam-Report: * 2.0 DATE_IN_FUTURE_24_48 Date: is 24 to 48 hours 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-Spam-Level: ** 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, 08 Nov 2015 15:51:33 -0000 On 08.11.2015 21:03, Eugene Grosbein wrote: >> ok, this is next . What's the deal with this? can you panic it and >> report it please? :) > > I did earlier in my letter with subject "jemalloc aborts: lloc_arena.c:363: Failed assertion: "p[i] == 0": > >> Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode) >> panic: trap >> Uptime: 3m7s >> panic: bufwrite: buffer is not busy??? >> Uptime: 3m7s > > However, I cannot reproduce the problem anymore using recent HEAD > compiled without -Os and with kernel having "options USB_HOST_ALIGN=64" > as Warner Losh suggested. Spoke too early... I run several more tests and peproduced the problem. The kernel just hangs installing packages to /usr/local mounted async using USB pen drive. I'm building debugging kernel to run more tests with KDB_TRACE and WITNES. Btw, mips/trap.c needs the following patch or else kernel with options KDB does not build due to missing "debugger_on_panic" declaration: --- sys/mips/mips/trap.c.orig 2015-11-08 17:05:21.413505000 +0700 +++ sys/mips/mips/trap.c 2015-11-08 22:14:49.092653000 +0700 @@ -49,6 +49,7 @@ __FBSDID("$FreeBSD: head/sys/mips/mips/t #include #include #include +#include #include #include #include