Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765282AbZDIMgw (ORCPT ); Thu, 9 Apr 2009 08:36:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761708AbZDIMgm (ORCPT ); Thu, 9 Apr 2009 08:36:42 -0400 Received: from mail-ew0-f165.google.com ([209.85.219.165]:63746 "EHLO mail-ew0-f165.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758080AbZDIMgk (ORCPT ); Thu, 9 Apr 2009 08:36:40 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=UazRFRvQjT48bWcqUytvzf8NhjSoqmMKJrj/33e9F6RGu2q206V1zITd0RXY6XjNw7 KrthT2LFLRHndbtChulW0EdfEYScxYn8lKBSfRBLMPIDNFwv4G3QNJzj/fZG1+QLAbLG CaHaoy9xcrAW/KIyj1kSVGrBF2O2IHymLFOtQ= MIME-Version: 1.0 Date: Thu, 9 Apr 2009 16:36:38 +0400 Message-ID: Subject: 2.6.30-rc1: ioatdma: DMA-API: device driver frees DMA memory with wrong function From: Alexander Beregalov To: Kernel Testers List , LKML , dan.j.williams@intel.com, maciej.sosnowski@intel.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3976 Lines: 83 ioatdma 0000:00:08.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 ioatdma 0000:00:08.0: setting latency timer to 64 ioatdma 0000:00:08.0: Intel(R) I/OAT DMA Engine found, 4 channels, device version 0x12, driver version 3.64 alloc irq_desc for 33 on cpu 0 node 0 alloc kstat_irqs on cpu 0 node 0 ioatdma 0000:00:08.0: irq 33 for MSI/MSI-X ------------[ cut here ]------------ WARNING: at lib/dma-debug.c:565 check_unmap+0x2f6/0x6a0() Hardware name: PowerEdge 1950 ioatdma 0000:00:08.0: DMA-API: device driver frees DMA memory with wrong function [device address=0x000000007f76f800] [size=2000 bytes] [map ped as single] [unmapped as page] Modules linked in: Pid: 1, comm: swapper Not tainted 2.6.30-rc1-00089-gf4efdd6-dirty #96 Call Trace: [] warn_slowpath+0xe8/0x160 [] ? save_trace+0x4e/0xe0 [] ? add_lock_to_list+0x67/0x110 [] ? check_irq_usage+0xb1/0x110 [] ? check_unmap+0x122/0x6a0 [] ? put_lock_stats+0x21/0x60 [] ? check_unmap+0x122/0x6a0 [] ? _spin_lock_irqsave+0x89/0xb0 [] ? check_unmap+0x122/0x6a0 [] check_unmap+0x2f6/0x6a0 [] debug_dma_unmap_page+0x5e/0x80 [] ioat_dma_unmap+0xd6/0x160 [] ioat_dma_memcpy_cleanup+0x2d2/0x3f0 [] ? tasklet_action+0x84/0x160 [] ioat_dma_cleanup_tasklet+0x20/0x50 [] ? trace_hardirqs_on+0x20/0x40 [] tasklet_action+0xb5/0x160 [] __do_softirq+0x9c/0x150 [] ? _spin_unlock+0x3f/0x80 [] call_softirq+0x1c/0x30 [] do_softirq+0x8d/0xe0 [] irq_exit+0xc5/0xe0 [] do_IRQ+0x9d/0x120 [] ret_from_intr+0x0/0xf [] ? schedule_timeout+0x1/0x220 [] ? wait_for_common+0x129/0x1c0 [] ? default_wake_function+0x0/0x40 [] ? wait_for_completion_timeout+0x21/0x40 [] ? ioat_dma_probe+0x80a/0xdf0 [] ? wait_for_common+0x52/0x1c0 [] ? ioat_probe+0x175/0x280 [] ? local_pci_probe+0x25/0x40 [] ? pci_device_probe+0xa0/0xd0 [] ? driver_probe_device+0xdc/0x2f0 [] ? __driver_attach+0xb3/0xc0 [] ? __driver_attach+0x0/0xc0 [] ? bus_for_each_dev+0x7b/0xc0 [] ? driver_attach+0x2f/0x50 [] ? bus_add_driver+0x175/0x2c0 [] ? ioat_init_module+0x0/0x50 [] ? driver_register+0x8f/0x190 [] ? ioat_init_module+0x0/0x50 [] ? __pci_register_driver+0x79/0x110 [] ? cpuidle_register_governor+0xe9/0x100 [] ? ioat_init_module+0x0/0x50 [] ? ioat_init_module+0x2c/0x50 [] ? do_one_initcall+0x4b/0x1a0 [] ? __mb_cache_entry_forget+0x20/0xa0 [] ? kernel_init+0x1ae/0x250 [] ? child_rip+0xa/0x20 [] ? restore_args+0x0/0x30 [] ? kernel_init+0x0/0x250 [] ? child_rip+0x0/0x20 ---[ end trace 66cfcd7e86ff08dc ]--- Mapped at: [] debug_dma_map_page+0x95/0x190 [] ioat_dma_probe+0x767/0xdf0 [] ioat_probe+0x175/0x280 [] local_pci_probe+0x25/0x40 [] pci_device_probe+0xa0/0xd0 ioatdma 0000:00:08.0: DCA is disabled in BIOS -- 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/