From patchwork Thu Dec 20 04:39:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 1898401 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 5F699DF25A for ; Thu, 20 Dec 2012 04:42:59 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TlXvR-0000eG-2s; Thu, 20 Dec 2012 04:40:05 +0000 Received: from am1ehsobe005.messaging.microsoft.com ([213.199.154.208] helo=am1outboundpool.messaging.microsoft.com) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TlXvN-0000dr-6R for linux-arm-kernel@lists.infradead.org; Thu, 20 Dec 2012 04:40:02 +0000 Received: from mail30-am1-R.bigfish.com (10.3.201.244) by AM1EHSOBE006.bigfish.com (10.3.204.26) with Microsoft SMTP Server id 14.1.225.23; Thu, 20 Dec 2012 04:39:57 +0000 Received: from mail30-am1 (localhost [127.0.0.1]) by mail30-am1-R.bigfish.com (Postfix) with ESMTP id 69B15160208; Thu, 20 Dec 2012 04:39:57 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: -4 X-BigFish: VS-4(zz98dI9371I1432I4015Izz1de0h1202h1e76h1d1ah1d2ahz8dhz8275bhz2dh2a8h668h839h944hd25hd2bhf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h1155h) Received: from mail30-am1 (localhost.localdomain [127.0.0.1]) by mail30-am1 (MessageSwitch) id 1355978394841541_27667; Thu, 20 Dec 2012 04:39:54 +0000 (UTC) Received: from AM1EHSMHS013.bigfish.com (unknown [10.3.201.245]) by mail30-am1.bigfish.com (Postfix) with ESMTP id C82E84A0055; Thu, 20 Dec 2012 04:39:54 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by AM1EHSMHS013.bigfish.com (10.3.207.151) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 20 Dec 2012 04:39:54 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server (TLS) id 14.2.318.3; Thu, 20 Dec 2012 04:39:52 +0000 Received: from nchen-desktop (nchen-desktop.ap.freescale.net [10.192.242.40]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id qBK4dk8m008299; Wed, 19 Dec 2012 21:39:47 -0700 Date: Thu, 20 Dec 2012 12:39:44 +0800 From: Peter Chen To: Fabio Estevam Subject: Re: 3.7 kernel hangs when doing scp Message-ID: <20121220043943.GA992@nchen-desktop> References: <20121218024353.GA17118@kroah.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121219_234001_704633_0D9204F9 X-CRM114-Status: GOOD ( 22.66 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [213.199.154.208 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Li Frank-B20596 , Greg KH , USB list , sebastian@breakpoint.cc, Sascha Hauer , Chen Peter-B29397 , Shawn Guo , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org On Wed, Dec 19, 2012 at 12:56:12PM -0200, Fabio Estevam wrote: > Hi Greg, > > On Tue, Dec 18, 2012 at 12:43 AM, Greg KH wrote: > > On Tue, Dec 18, 2012 at 12:01:35AM -0200, Fabio Estevam wrote: > >> Hi, > >> > >> Booting a 3.7 kernel on a mx6qsabrelite board via NFS and using an > >> asix USB/Ethernet adapter and then I try to transfer a 10MB file from > >> the target to the host: > > > > Has this ever worked before on any older kernel? > > We did more experiments on this and we noticed that: > > - mx51 running kernel 3.7 does not show this problem (tested a non-dt > mx51 kernel, which uses drivers/usb/host/ehci-mxc.c instead of the > chipidea driver.) > - x86 running 3.2 kernel does not show this problem > - usb support on mx6 has appeared on 3.6, but running an out-of-tree > 3.0.35 kernel also shows the same issue. > - Doing long file transfers via mass storage on mx6 running 3.7 works fine. > > Shawn/Sascha/Peter, > > Any suggestions as to how debug this? By looking at the kernel dumps > it seems to point to 'gic_handle_irq' area. Hi Fabio, Please to see if the Stream mode disable (bit4, usbmode) is set or not? If it is not, please try below patch > > Thanks, > > Fabio Estevam > diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index c97503b..258bc02 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -227,6 +227,7 @@ static void tdi_reset (struct ehci_hcd *ehci) tmp = ehci_readl(ehci, &ehci->regs->usbmode); tmp |= USBMODE_CM_HC; + tmp |= (1 << 4); /* disable stream mode */ /* The default byte access to MMR space is LE after * controller reset. Set the required endian mode * for transfer buffers to match the host microprocessor