From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael =?UTF-8?B?QsO8c2No?= Subject: Re: [Bugme-new] [Bug 38102] New: BUG kmalloc-2048: Poison overwritten Date: Mon, 4 Jul 2011 16:27:26 +0200 Message-ID: <20110704162726.4072e715@maggie> References: <20110629145135.5179fb0c.akpm@linux-foundation.org> <1309707971.2523.20.camel@edumazet-laptop> <20110704130531.37cf876e@Nokia-N900> <1309787822.2247.6.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Alexey Zaytsev , 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 bues.ch ([80.190.117.144]:58342 "EHLO bues.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753459Ab1GDO1n (ORCPT ); Mon, 4 Jul 2011 10:27:43 -0400 In-Reply-To: <1309787822.2247.6.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> Sender: netdev-owner@vger.kernel.org List-ID: On Mon, 04 Jul 2011 15:57:02 +0200 Eric Dumazet wrote: > I dont have the b44 specs, but : It uses the 30-bit version of the Broadcom HND engine, for which complete specs are available here: http://bcm-v4.sipsolutions.net/802.11/DMA > For sure, addr should be set before ctl, just in case ctl allows chip to > start a dma transfert (to previous packet), because a OWN bit is unset > for example... Certainly not. The device does not know about the buffer until this line: bw32(bp, B44_DMARX_PTR, cons * sizeof(struct dma_desc)); which advances the DMA descriptor pointer. However, I do think we probably need a wmb() right before that bw32() line, to make sure memory is committed before we tell the device it's OK to access it. We do this in b43, which has exactly the same DMA engine.