From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751385Ab1HLEqM (ORCPT ); Fri, 12 Aug 2011 00:46:12 -0400 Received: from mga01.intel.com ([192.55.52.88]:62071 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750890Ab1HLEqJ (ORCPT ); Fri, 12 Aug 2011 00:46:09 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,360,1309762800"; d="scan'208";a="40756476" Date: Thu, 11 Aug 2011 21:46:05 -0700 From: Sarah Sharp To: Daniel Mack Cc: =?utf-8?B?TWF0xJtq?= Laitl , Alan Stern , Florian Mickler , Oliver Neukum , linux-usb@vger.kernel.org, alsa-devel@alsa-project.org, Takashi Iwai , Clemens Ladisch , pedrib@gmail.com, William Light , Greg KH , linux-kernel@vger.kernel.org, Robert Hancock Subject: Re: Allocating buffers for USB transfers (again) Message-ID: <20110812044605.GA8533@xanatos> References: <3166003.Y8gKYdUrh9@edgy> <4E446873.9020508@gmail.com> <1451239.ZLFiT5MIDr@edgy> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 12, 2011 at 03:28:42AM +0200, Daniel Mack wrote: > On Fri, Aug 12, 2011 at 1:50 AM, Matěj Laitl wrote: > > On 12. 8. 2011 Daniel Mack wrote: > >> > This patch actually makes the sound playback _worse_. Now I get strange > >> > squawks where previously at least first seconds of a song sounded > >> > normally. > >> > > >> > However, I no longer get "zero length buffer submitted" or that "... > >> > Weird." debug messages, only several megabytes of: (should I post these > >> > somewhere?) > >> > > >> > xhci_hcd 0000:05:00.0: Giveback URB ffff880114cec000, len = 880, > >> > expected = 1000, status = -115 > >> > xhci_hcd 0000:05:00.0: Giveback URB ffff880114740000, len = 352, > >> > expected = 1000, status = -115 > >> > xhci_hcd 0000:05:00.0: underrun event on endpoint > >> > >> Might be the hardware doesn't like this. As I said, the patch is blindly > >> written and I couldn't test it. Did you test this on a EHCI port as well? > > > > Good point, this patch distorts the playback also on the EHCI port. (the > > playback seems to be 10 times slower than it should be) > > And it is only this *last* patch that causes it, yes? > > If that is the case, we need empty subframes in the middle of urbs, > and we need to figure a way how to teach the XHCI driver to cope with > that, too. By empty subframes, you mean zero-length frame buffers in the middle of the URB, correct? Andiry and Alan had some suggestions for how to fix that, so I'll try to cook up a patch tomorrow. Then we'll have to "unpeel" the debug patches and make sure the system is still usable. Sarah Sharp