Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756567AbZCROW3 (ORCPT ); Wed, 18 Mar 2009 10:22:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754548AbZCROWP (ORCPT ); Wed, 18 Mar 2009 10:22:15 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:55560 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754512AbZCROWO (ORCPT ); Wed, 18 Mar 2009 10:22:14 -0400 Date: Wed, 18 Mar 2009 15:21:26 +0100 From: Ingo Molnar To: Lubomir Rintel Cc: 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, Ingo Molnar , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: forcedeth 0000:00:0a.0: DMA-API: device driver frees DMA memory with wrong function [device address=0x0000000035992232] [size=42 bytes] [mapped as single] [unmapped as page] Message-ID: <20090318142126.GA24970@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> <20090318120458.GA1601@elte.hu> <36697.89.102.207.186.1237380871.squirrel@mail.v3.sk> <20090318140949.GA20852@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090318140949.GA20852@elte.hu> 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.3 -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: 3854 Lines: 83 There's a similar-looking warning triggering for the forcedeth driver as well on another test-system (see the details below). Does anyone know whether there's a fix for this too, or is it a new warning? Ingo ----- Forwarded message from Ingo Molnar ----- Date: Wed, 18 Mar 2009 12:20:26 +0100 From: Ingo Molnar To: Joerg Roedel Subject: forcedeth 0000:00:0a.0: DMA-API: device driver frees DMA memory with wrong function [device address=0x0000000035992232] [size=42 bytes] [mapped as single] [unmapped as page] Cc: Ingo Molnar , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org -tip testing found this DMA-debug assert: [ 19.648023] eth0: no link during initialization. [ 21.952553] eth0: link up. [ 22.684073] ------------[ cut here ]------------ [ 22.688023] WARNING: at lib/dma-debug.c:562 check_unmap+0x30e/0x4b4() [ 22.688023] Hardware name: System Product Name [ 22.688023] forcedeth 0000:00:0a.0: DMA-API: device driver frees DMA memory with wrong function [device address=0x0000000035992232] [size=42 bytes] [mapped as single] [unmapped as page] [ 22.688023] Modules linked in: [ 22.688023] Pid: 1523, comm: arping Not tainted 2.6.29-rc8-tip #20999 [ 22.688023] Call Trace: [ 22.688023] [] warn_slowpath+0x76/0xad [ 22.688023] [] ? add_dma_entry+0x4b/0x51 [ 22.688023] [] ? mark_lock+0x1c/0x16f [ 22.688023] [] ? __lock_acquire+0x18c/0x296 [ 22.688023] [] ? nv_start_xmit_optimized+0x3bd/0x3eb [ 22.688023] [] ? mark_lock+0x1c/0x16f [ 22.688023] [] ? __lock_acquire+0x18c/0x296 [ 22.688023] [] check_unmap+0x30e/0x4b4 [ 22.688023] [] ? _spin_lock+0x27/0x2f [ 22.688023] [] ? _local_bh_enable_ip+0xa1/0xa7 [ 22.688023] [] ? dev_queue_xmit+0x325/0x359 [ 22.688023] [] ? trace_hardirqs_on+0x21/0x23 [ 22.688023] [] ? _local_bh_enable_ip+0xa1/0xa7 [ 22.688023] [] ? local_bh_enable+0x10/0x12 [ 22.688023] [] ? packet_sendmsg+0x1b7/0x20a [ 22.688023] [] debug_dma_unmap_page+0x59/0x61 [ 22.688023] [] pci_unmap_page+0x5b/0x66 [ 22.688023] [] nv_tx_done_optimized+0x46/0x1c5 [ 22.688023] [] nv_nic_irq_optimized+0xa7/0x233 [ 22.688023] [] handle_IRQ_event+0x85/0xdf [ 22.688023] [] handle_fasteoi_irq+0x79/0xb9 [ 22.688023] [] handle_irq+0x1f/0x24 [ 22.688023] [] do_IRQ+0x45/0x88 [ 22.688023] [] common_interrupt+0x35/0x40 [ 22.688023] [] ? do_setitimer+0x160/0x2d9 [ 22.688023] [] ? _spin_unlock_irq+0x29/0x2b [ 22.688023] [] do_setitimer+0x160/0x2d9 [ 22.688023] [] ? sys_socketcall+0xed/0x188 [ 22.688023] [] alarm_setitimer+0x39/0x58 [ 22.688023] [] sys_alarm+0x10/0x12 [ 22.688023] [] sysenter_do_call+0x12/0x32 [ 22.688023] ---[ end trace bf7fa25698012db6 ]--- [ 22.688023] Mapped at: [ 22.688023] [] debug_dma_map_page+0x6c/0x128 [ 22.688023] [] pci_map_single+0xb5/0xc1 [ 22.688023] [] nv_start_xmit_optimized+0x138/0x3eb [ 22.688023] [] dev_hard_start_xmit+0x123/0x18f [ 22.688023] [] __qdisc_run+0xd0/0x1b3 [ 23.700081] arping used greatest stack depth: 5988 bytes left [ 24.545512] Adding 3911816k swap on /dev/sda2. Priority:-1 extents:1 across:3911816k Config and full bootlog attached. Ingo -- 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/