Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757121AbZCRMFr (ORCPT ); Wed, 18 Mar 2009 08:05:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755541AbZCRMFe (ORCPT ); Wed, 18 Mar 2009 08:05:34 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:47206 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753531AbZCRMFd (ORCPT ); Wed, 18 Mar 2009 08:05:33 -0400 Date: Wed, 18 Mar 2009 13:04:58 +0100 From: Ingo Molnar To: Joerg Roedel , netdev@vger.kernel.org, jeffrey.t.kirsher@intel.com, jesse.brandeburg@intel.com, bruce.w.allan@intel.com, peter.p.waskiewicz.jr@intel.com, john.ronciak@intel.com, e1000-devel@lists.sourceforge.net Cc: Ingo Molnar , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: e1000e 0000:00:19.0: DMA-API: device driver tries to free DMA memory it has not allocated [device address=0x0000000052ff084a] [size=90 bytes] Message-ID: <20090318120458.GA1601@elte.hu> References: <1237223130-26519-1-git-send-email-joerg.roedel@amd.com> <20090317120112.GP6159@amd.com> <20090318093847.GC5879@elte.hu> <20090318115615.GS6159@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20090318115615.GS6159@amd.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3381 Lines: 71 ( e1000e Cc:s added. A new debug feature, CONFIG_DMA_API_DEBUG=y, has triggered the warning below in e1000_put_txbuf(). ) * Joerg Roedel wrote: > On Wed, Mar 18, 2009 at 10:38:47AM +0100, Ingo Molnar wrote: > > e1000e 0000:00:19.0: irq 30 for MSI/MSI-X > > e1000e 0000:00:19.0: irq 30 for MSI/MSI-X > > ADDRCONF(NETDEV_UP): eth0: link is not ready > > e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX/TX > > 0000:00:19.0: eth0: 10/100 speed: disabling TSO > > ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready > > ------------[ cut here ]------------ > > WARNING: at lib/dma-debug.c:461 check_unmap+0xd4/0x3dd() (Not tainted) > > Hardware name: 2241B48 > > e1000e 0000:00:19.0: DMA-API: device driver tries to free DMA memory > > it has not allocated [device address=0x0000000052ff084a] [size=90 bytes] > > [] check_unmap+0xd4/0x3dd > > [] debug_dma_unmap_page+0x50/0x52 > > [] pci_unmap_page+0x4e/0x57 [e1000e] > > [] e1000_put_txbuf+0x2e/0x4f [e1000e] > > [] e1000_clean_tx_irq+0xc8/0x2c2 [e1000e] > > [] ? e1000_clean+0x6b/0x246 [e1000e] > > [] e1000_clean+0x77/0x246 [e1000e] > > [] net_rx_action+0xb6/0x1ee > > [] ? net_rx_action+0x1a5/0x1ee > > [] __do_softirq+0x94/0x179 > > [] call_softirq+0x1c/0x30 > > [] do_softirq+0x52/0xb9 > > [] irq_exit+0x53/0x90 > > [] do_IRQ+0x12c/0x151 > > [] ret_from_intr+0x0/0x2e > > [] ? acpi_idle_enter_bm+0x287/0x2de > > [] ? trace_hardirqs_on+0xd/0xf > > [] ? acpi_idle_enter_bm+0x28f/0x2de > > [] ? acpi_idle_enter_bm+0x287/0x2de > > [] ? __atomic_notifier_call_chain+0x0/0x86 > > [] ? cpuidle_idle_call+0x8d/0xc4 > > [] ? cpu_idle+0x68/0xb3 > > [] ? rest_init+0x6b/0x6d > > ---[ end trace b8ae2341b2e9bbc2 ]--- > > > > i have some vague memories of this being discussed somewhere - it > > got fixed in the driver, right? If yes, do you have an URL to that > > fix? (if it's not upstream yet i will pick it up into > > tip:out-of-tree to not have already-fixed warnings) > > We had this issue in the ixgbe driver and it was fixed there. As far as > I know for e1000e this is a new issue. > > Joerg > > -- > | Advanced Micro Devices GmbH > Operating | Karl-Hammerschmidt-Str. 34, 85609 Dornach bei M?nchen > System | > Research | Gesch?ftsf?hrer: Jochen Polster, Thomas M. McCoy, Giuliano Meroni > Center | Sitz: Dornach, Gemeinde Aschheim, Landkreis M?nchen > | Registergericht M?nchen, HRB Nr. 43632 > > -- > 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/ -- 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/