Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756110Ab1DLT21 (ORCPT ); Tue, 12 Apr 2011 15:28:27 -0400 Received: from ud10.udmedia.de ([194.117.254.50]:41447 "EHLO mail.ud10.udmedia.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755698Ab1DLT20 (ORCPT ); Tue, 12 Apr 2011 15:28:26 -0400 Date: Tue, 12 Apr 2011 21:28:24 +0200 From: Markus Trippelsdorf To: Stefan Richter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: kernel 2.6.39-rc3 drm, radeon: device driver tries to free DMA memory it has not allocated Message-ID: <20110412192823.GA1634@x4.trippels.de> References: <20110412210940.0b3d598b@stein> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110412210940.0b3d598b@stein> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3076 Lines: 60 On 2011.04.12 at 21:09 +0200, Stefan Richter wrote: > Hi, > > I just switched from 2.6.38-rc7 to 2.6.39-rc3 and got this at some point > during userland startup: > > WARNING: at lib/dma-debug.c:803 check_unmap+0x19a/0x696() > Hardware name: System Product Name > NULL NULL: DMA-API: device driver tries to free DMA memory it has not allocated [device address=0x00000000ce47b000] [size=4096 bytes] > Modules linked in: cpufreq_ondemand powernow_k8 freq_table mperf snd_pcm_oss snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device nfsd lockd it87 hwmon_vid sunrpc ext4 jbd2 crc16 sr_mod cdrom snd_hda_codec_realtek k10temp yenta_socket snd_hda_intel pcmcia_core pcmcia_rsrc snd_hda_codec snd_pcm pata_atiixp snd_timer sg snd snd_page_alloc r8169 mii processor usb_storage > Pid: 4397, comm: X Tainted: G W 2.6.39-rc3 #2 > Call Trace: > [] warn_slowpath_common+0x80/0x98 > [] warn_slowpath_fmt+0x41/0x43 > [] ? _raw_spin_lock_irqsave+0x49/0x53 > [] ? check_unmap+0x102/0x696 > [] check_unmap+0x19a/0x696 > [] ? __change_page_attr_set_clr+0x16d/0x99d > [] debug_dma_free_coherent+0x6c/0x7a > [] ttm_put_pages+0x117/0x255 > [] ttm_tt_free_alloced_pages+0xbc/0xe2 > [] ttm_tt_destroy+0x50/0xda > [] ttm_bo_cleanup_memtype_use+0x29/0x63 > [] ttm_bo_release+0x112/0x1df > [] ? ttm_bo_create+0xff/0xff > [] kref_put+0x43/0x4d > [] ttm_bo_unref+0x33/0x40 > [] radeon_bo_unref+0x3f/0x5e > [] ? drm_gem_handle_delete+0x89/0xab > [] ? drm_gem_object_release_handle+0x5a/0x5a > [] radeon_gem_object_free+0x1e/0x20 > [] drm_gem_object_free+0x28/0x2a > [] kref_put+0x43/0x4d > [] drm_gem_handle_delete+0x98/0xab > [] drm_gem_close_ioctl+0x23/0x25 > [] drm_ioctl+0x277/0x343 > [] ? drm_gem_handle_delete+0xab/0xab > [] ? get_parent_ip+0x11/0x41 > [] ? trace_hardirqs_on+0xd/0xf > [] do_vfs_ioctl+0x464/0x4b3 > [] ? remove_vma+0x69/0x71 > [] sys_ioctl+0x42/0x65 > [] system_call_fastpath+0x16/0x1b > ---[ end trace 6a2f7052e2c76f52 ]--- > DMA-API: debugging out of memory - disabling > > This is an AMD RS780/ ATI Radeon HD 3200 system with Gentoo xorg-server > 1.9.4 and xf86-video-ati 6.14.1. Looks similar to: http://thread.gmane.org/gmane.linux.kernel/1119774 Try reverting 69a07f0b117a40fcc1a479358d8e1f41793617f2 -- Markus -- 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/