From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753428Ab0BUXV7 (ORCPT ); Sun, 21 Feb 2010 18:21:59 -0500 Received: from tulikuusama.dnainternet.net ([83.102.40.132]:52598 "EHLO tulikuusama.dnainternet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752281Ab0BUXV5 (ORCPT ); Sun, 21 Feb 2010 18:21:57 -0500 X-Spam-Flag: NO X-Spam-Score: 0 From: Anssi Hannula To: Oliver Neukum Subject: Re: [REGRESSION] "USB: use kfifo to buffer usb-generic serial writes" causes gobi_loader to hang Date: Mon, 22 Feb 2010 01:21:53 +0200 User-Agent: KMail/1.13.0 (Linux/2.6.33-desktop-0.rc8.1mnb; KDE/4.4.0; x86_64; ; ) Cc: Alan Stern , Matthew Garrett , dvomlehn@cisco.com, gregkh@suse.de, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <201002220106.36476.anssi.hannula@iki.fi> <201002220113.35941.anssi.hannula@iki.fi> In-Reply-To: <201002220113.35941.anssi.hannula@iki.fi> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201002220121.53882.anssi.hannula@iki.fi> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On maanantai 22 helmikuu 2010 01:13:35 Anssi Hannula wrote: > On maanantai 22 helmikuu 2010 01:06:36 Anssi Hannula wrote: > > On maanantai 22 helmikuu 2010 00:12:36 Oliver Neukum wrote: > > > Am Sonntag, 21. Februar 2010 22:42:12 schrieb Anssi Hannula: > > > > And of course this doesn't explain why it hangs (and the WARNING) if > > > > I remove the sleep calls I added in gobi_loader. > > > > > > Please tell us where you put a delay. > > > > As I said earlier, the delay was put *before* most of the data gets > > written. > > > > More specifically, I inserted a delay of one second between transmission > > of magic1 and magic2, one between magic2 and magic3, and one between > > magic3 and the first firmware file. > > > > If I additionally insert a one-second delay before the fd is closed, I > > get this usbmon log: > > http://stuff.onse.fi/gobi2000/gobi-regression5.mon.log > > > > The firmware upload is still unsuccessful. > > If I use the option driver instead of qcserial, the firmware upload is > always successful (without any added delays needed). The usbmon log for > that case can be found here: > http://stuff.onse.fi/gobi2000/gobi-regression6.mon.log I installed 2.6.31.12 to get a usbmon log with qcserial before the regression as well (without delays, upload successful): http://stuff.onse.fi/gobi2000/gobi-regression7.mon.log -- Anssi Hannula