Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759412AbZDQCid (ORCPT ); Thu, 16 Apr 2009 22:38:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759541AbZDQCiV (ORCPT ); Thu, 16 Apr 2009 22:38:21 -0400 Received: from sh.osrg.net ([192.16.179.4]:46501 "EHLO sh.osrg.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759439AbZDQCiT convert rfc822-to-8bit (ORCPT ); Thu, 16 Apr 2009 22:38:19 -0400 Date: Fri, 17 Apr 2009 11:38:09 +0900 To: dan.j.williams@intel.com Cc: a.beregalov@gmail.com, kernel-testers@vger.kernel.org, linux-kernel@vger.kernel.org, maciej.sosnowski@intel.com Subject: Re: 2.6.30-rc1: ioatdma: DMA-API: device driver frees DMA memory with wrong function From: FUJITA Tomonori In-Reply-To: References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Message-Id: <20090417113814J.fujita.tomonori@lab.ntt.co.jp> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (sh.osrg.net [192.16.179.4]); Fri, 17 Apr 2009 11:38:10 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1536 Lines: 33 On Wed, 15 Apr 2009 10:27:48 -0700 Dan Williams wrote: > On Wed, Apr 15, 2009 at 5:39 AM, Alexander Beregalov > wrote: > > 2009/4/9 Alexander Beregalov : > >> 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] > > > > The problem still persists. > > Thanks for the report Alexander. Maciej and I are looking into a fix. Looks like the driver uses pci_unmap_page() to unmap the region previously mapped by dma_map_single(), right? It's not the proper usage of DMA API but it doesn't cause any problems. This is not a urgent issue though it's better to fix it. -- 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/