From owner-freebsd-mips@freebsd.org Sun Nov 8 17:44: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 948D0A29716 for ; Sun, 8 Nov 2015 17:44:32 +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 5763F1161 for ; Sun, 8 Nov 2015 17:44:32 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iody8 with SMTP id y8so165999646iod.1 for ; Sun, 08 Nov 2015 09:44:31 -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=t9E0vcCI/le3DfFoTZSHGd+YAqUmfaMQ+GHW9FkzJ9U=; b=LDsqTyyYYXsFxTNNdA08Ll55ZEC0WPjWnsCMfufasUkTZt1RYeSQKThFZ+BzKs+laz 4i21P2yXsfqalMoCFBGKuUPjuiGVSTf+R5xW8kj/0sX60UkCYd7v2TJ8el4BAsrucM+z P8OQJnNzmatE7He+rQay86YYyKS9joOg0a/WcVHUmhn9mk2Tp6qF6hnPybKLAodJjqIs S35WoNFwNx9Auid9HVNb0T23QmCs3bHFyWzbOl/y6z8ObiOlBj3PYIjYVzxpUQ9RkQIf Xww6ybVoI2KBv4XSjf6FJmZImNeRnZMZqOP57KohDrO5C7jsMol4D3kOGnX0NVDZ9mDb WlVg== MIME-Version: 1.0 X-Received: by 10.107.46.142 with SMTP id u14mr22600168iou.165.1447004671883; Sun, 08 Nov 2015 09:44:31 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.36.217.196 with HTTP; Sun, 8 Nov 2015 09:44:31 -0800 (PST) In-Reply-To: <563F6F6F.1010807@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> <563F5630.2000407@grosbein.net> <563F6F6F.1010807@grosbein.net> Date: Sun, 8 Nov 2015 09:44:31 -0800 X-Google-Sender-Auth: lnQUxLANvAChZl_2E7JALK5lIkk Message-ID: Subject: Re: USB-related problem 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, 08 Nov 2015 17:44:32 -0000 hiya, try updating. I committed a workaround fix yesterday. -adrian On 8 November 2015 at 07:51, Eugene Grosbein wrote: > 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