Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753535Ab3CUWQZ (ORCPT ); Thu, 21 Mar 2013 18:16:25 -0400 Received: from mout.web.de ([212.227.17.11]:51665 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750899Ab3CUWQX (ORCPT ); Thu, 21 Mar 2013 18:16:23 -0400 Message-ID: <514B86A9.60401@web.de> Date: Thu, 21 Mar 2013 23:16:09 +0100 From: Soeren Moch User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: Alan Stern CC: Andrew Lunn , Arnd Bergmann , USB list , Jason Cooper , Sebastian Hesselbarth , linux-mm@kvack.org, Kernel development list , linux-arm-kernel@lists.infradead.org, michael@amarulasolutions.com Subject: Re: [PATCH] USB: EHCI: fix for leaking isochronous data References: <20130321212033.GQ21478@lunn.ch> In-Reply-To: <20130321212033.GQ21478@lunn.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:mJzYz2tj48j70ZUdzABUauokIfMXq1hdeJzRj2ieH/e di7Cw06aH9W0pti7rbE8zB14GORbk4Y8SgqgCi0i7nqZUVCYpA 5Df4y0JGHIYdsBiJaQ7zkVrjQBgzts2CN6KxFrMr1EV4zFE70b uz259iGcZbUSj8Sd5Z4Hz8X6tmcTH/aOHgyrJT1b4rv1qB07Pw Y/Ov+WSgyYZzc4k1+136A== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1848 Lines: 50 On 21.03.2013 22:20, Andrew Lunn wrote: > On Thu, Mar 21, 2013 at 05:12:01PM -0400, Alan Stern wrote: >> On Thu, 21 Mar 2013, Alan Stern wrote: >> >>> On Thu, 21 Mar 2013, Soeren Moch wrote: >>> >>>> Now I found out what is going on here: >>>> >>>> In itd_urb_transaction() we allocate 9 iTDs for each URB with >>>> number_of_packets == 64 in my case. The iTDs are added to >>>> sched->td_list. For a frame-aligned scheduling we need 8 iTDs, the 9th >>>> one is released back to the front of the streams free_list in >>>> iso_sched_free(). This iTD was cleared after allocation and has a frame >>>> number of 0 now. So for each allocation when now_frame == 0 we allocate >>>> from the dma_pool, not from the free_list. >>> >>> Okay, that is a problem. But it shouldn't be such a big problem, >>> because now_frame should not be equal to 0 very often. >> >> Oh, wait, now I get it. We never reach a steady state, because the >> free list never shrinks, but occasionally it does increase when >> now_frame is equal to 0. Even though that doesn't happen very often, >> the effects add up. >> >> Very good; tomorrow I will send your patch in. > > Hi Alan, Soeren > > Could you word the description a bit better. If Alan did not get it > without a bit of thought, few others are going to understand it > without a better explanation. > > Thanks > Andrew > Alan, can you come up with a better explanation, please? I think your description how it is supposed to work from here http://marc.info/?l=linux-usb&m=136345559432055&w=2 is required to understand the problem and the fix. Thanks, Soeren -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/