From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Horman Subject: Re: [Bugme-new] [Bug 38102] New: BUG kmalloc-2048: Poison overwritten Date: Tue, 5 Jul 2011 13:21:51 -0400 Message-ID: <20110705172151.GE2959@hmsreliant.think-freely.org> References: <1309840708.2720.31.camel@edumazet-laptop> <1309842642.2720.36.camel@edumazet-laptop> <1309844009.2720.39.camel@edumazet-laptop> <1309845573.2720.41.camel@edumazet-laptop> <20110705160531.GC2959@hmsreliant.think-freely.org> <1309882352.2271.19.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> <20110705164202.GD2959@hmsreliant.think-freely.org> <1309884441.2271.34.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Alexey Zaytsev , Michael =?iso-8859-1?Q?B=FCsch?= , Andrew Morton , netdev@vger.kernel.org, Gary Zambrano , bugme-daemon@bugzilla.kernel.org, "David S. Miller" , Pekka Pietikainen , Florian Schirmer , Felix Fietkau , Michael Buesch To: Eric Dumazet Return-path: Received: from charlotte.tuxdriver.com ([70.61.120.58]:48753 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752495Ab1GERWJ (ORCPT ); Tue, 5 Jul 2011 13:22:09 -0400 Content-Disposition: inline In-Reply-To: <1309884441.2271.34.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Jul 05, 2011 at 06:47:21PM +0200, Eric Dumazet wrote: > Le mardi 05 juillet 2011 =E0 12:42 -0400, Neil Horman a =E9crit : > > On Tue, Jul 05, 2011 at 06:12:32PM +0200, Eric Dumazet wrote: >=20 > > > So all descriptors before prod are guaranteed to be ready for hos= t > > > consume... Fact that a dma access is running on 'next descriptor'= should > > > be irrelevant. > > >=20 > > But we handle more than one descriptor per b44_rx call - theres a w= hile loop in > > there where we do advance to the next descriptor. >=20 > Yes, but we advance up to 'prod', which is the very last safe > descriptor. >=20 > If hardware advertises descriptor X being ready to be handled by host= , > while DMA on this X descriptor is not yet finished, this would be a > really useless hardware ;) >=20 Doh, sorry, I completely missed the fact that the status register index= value might be more than 1 entry ahead of cons, and that we advance cons up t= o prod, but not past. I assume then, that the dma state refers to the state of= the channel, rather than the state of the packet that the status register c= urrently indexes? Please disregard everything I said :) Neil >=20 >=20 > -- > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >=20