Bug 73449

Summary: WARNING: CPU: 0 PID: 65 at drivers/gpu/drm/ttm/ttm_page_alloc_dma.c:533 and WARNING: CPU: 0 PID: 65 at drivers/gpu/drm/drm_mm.c:578
Product: DRI Reporter: gsingh_2011
Component: DRM/RadeonAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium    
Version: XOrg git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description gsingh_2011 2014-01-09 20:38:50 UTC
I'm running Arch Linux. When I run dmesg, I see the following warnings:

[   38.904494] radeon: switched off
[   38.904530] [drm] Disabling audio 0 support
[   38.978265] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=none,decodes=io+mem:owns=none
[   38.978931] [drm] radeon: finishing device.
[   38.980108] radeon 0000:01:00.0: ffff880097f6b000 unpin not necessary
[   38.986652] ------------[ cut here ]------------
[   38.986671] WARNING: CPU: 0 PID: 65 at drivers/gpu/drm/drm_mm.c:578 drm_mm_takedown+0x2e/0x30 [drm]()
[   38.986672] Memory manager not clean during takedown.
[   38.986673] Modules linked in: fuse xt_LOG xt_limit xt_tcpudp nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack iptable_filter iptable_raw ip_tables x_tables vsock hp_wmi sparse_keymap uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core x86_pkg_temp_thermal videodev intel_powerclamp media coretemp kvm_intel kvm crct10dif_pclmul btusb bluetooth crct10dif_common joydev crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel arc4 iwldvm mac80211 aes_x86_64 lrw radeon ttm gf128mul glue_helper ablk_helper cryptd iTCO_wdt iTCO_vendor_support i915 snd_hda_codec_hdmi r8169 mii rtsx_pci_ms memstick evdev iwlwifi cfg80211 rfkill intel_agp intel_gtt drm_kms_helper drm ac battery snd_hda_codec_idt lpc_ich wmi hp_accel thermal lis3lv02d psmouse input_polldev i2c_algo_bit snd_hda_intel processor
[   38.986706]  button video i2c_i801 i2c_core shpchp mei_me mei snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_timer snd soundcore serio_raw microcode vboxdrv(O) ext4 crc16 mbcache jbd2 sr_mod sd_mod cdrom rtsx_pci_sdmmc ahci libahci libata sdhci_pci sdhci ehci_pci xhci_hcd ehci_hcd scsi_mod mmc_core rtsx_pci usbcore usb_common
[   38.986727] CPU: 0 PID: 65 Comm: kworker/0:2 Tainted: G           O 3.12.6-1-ARCH #1
[   38.986729] Hardware name: Hewlett-Packard HP Pavilion dv6 Notebook PC/17F9, BIOS F.12 10/26/2011
[   38.986733] Workqueue: kacpi_hotplug hotplug_event_work
[   38.986735]  0000000000000009 ffff880253321a48 ffffffff814ee4fb ffff880253321a90
[   38.986738]  ffff880253321a80 ffffffff81062bcd ffff8800986ee600 ffff8800986ee6a8
[   38.986740]  ffff88024fc54ae8 ffffffffa0938e80 ffff880253d3d000 ffff880253321ae0
[   38.986742] Call Trace:
[   38.986747]  [<ffffffff814ee4fb>] dump_stack+0x54/0x8d
[   38.986751]  [<ffffffff81062bcd>] warn_slowpath_common+0x7d/0xa0
[   38.986754]  [<ffffffff81062c3c>] warn_slowpath_fmt+0x4c/0x50
[   38.986759]  [<ffffffffa01405b5>] ? ttm_bo_release+0x185/0x2b0 [ttm]
[   38.986762]  [<ffffffffa0147068>] ? ttm_bo_man_takedown+0x48/0x70 [ttm]
[   38.986767]  [<ffffffffa05e44ae>] drm_mm_takedown+0x2e/0x30 [drm]
[   38.986770]  [<ffffffffa0147058>] ttm_bo_man_takedown+0x38/0x70 [ttm]
[   38.986774]  [<ffffffffa0141c19>] ttm_bo_clean_mm+0x49/0x80 [ttm]
[   38.986784]  [<ffffffffa083eb2d>] radeon_ttm_fini+0xbd/0x190 [radeon]
[   38.986793]  [<ffffffffa083f5e2>] radeon_bo_fini+0x12/0x20 [radeon]
[   38.986805]  [<ffffffffa08897b3>] evergreen_fini+0xa3/0xd0 [radeon]
[   38.986811]  [<ffffffffa0823cce>] radeon_device_fini+0x3e/0x120 [radeon]
[   38.986818]  [<ffffffffa0825b2d>] radeon_driver_unload_kms+0x3d/0x60 [radeon]
[   38.986824]  [<ffffffffa05dfe53>] drm_put_dev+0x63/0x1b0 [drm]
[   38.986829]  [<ffffffffa082206d>] radeon_pci_remove+0x1d/0x20 [radeon]
[   38.986833]  [<ffffffff812c4c1b>] pci_device_remove+0x3b/0xb0
[   38.986836]  [<ffffffff81389e5f>] __device_release_driver+0x7f/0xf0
[   38.986839]  [<ffffffff81389ef3>] device_release_driver+0x23/0x30
[   38.986841]  [<ffffffff81389688>] bus_remove_device+0x108/0x180
[   38.986843]  [<ffffffff81386025>] device_del+0x135/0x1d0
[   38.986845]  [<ffffffff812bf2c4>] pci_stop_bus_device+0x94/0xa0
[   38.986847]  [<ffffffff812bf3d2>] pci_stop_and_remove_bus_device+0x12/0x20
[   38.986850]  [<ffffffff812dc996>] disable_slot+0x76/0xd0
[   38.986852]  [<ffffffff812dca98>] acpiphp_check_bridge+0xa8/0xd0
[   38.986855]  [<ffffffff812dd032>] hotplug_event+0x102/0x250
[   38.986857]  [<ffffffff812dd1a7>] hotplug_event_work+0x27/0x70
[   38.986859]  [<ffffffff8107dbc7>] process_one_work+0x167/0x450
[   38.986861]  [<ffffffff8107e5d1>] worker_thread+0x121/0x3a0
[   38.986864]  [<ffffffff8107e4b0>] ? manage_workers.isra.23+0x2b0/0x2b0
[   38.986866]  [<ffffffff81084fe0>] kthread+0xc0/0xd0
[   38.986869]  [<ffffffff81084f20>] ? kthread_create_on_node+0x120/0x120
[   38.986871]  [<ffffffff814fcffc>] ret_from_fork+0x7c/0xb0
[   38.986874]  [<ffffffff81084f20>] ? kthread_create_on_node+0x120/0x120
[   38.986875] ---[ end trace 482ec37d2a89ca94 ]---
[   38.986882] [TTM] Finalizing pool allocator
[   38.986885] [TTM] Finalizing DMA pool allocator
[   38.986889] ------------[ cut here ]------------
[   38.986892] WARNING: CPU: 0 PID: 65 at drivers/gpu/drm/ttm/ttm_page_alloc_dma.c:533 ttm_dma_free_pool+0x12b/0x130 [ttm]()
[   38.986893] Modules linked in: fuse xt_LOG xt_limit xt_tcpudp nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack iptable_filter iptable_raw ip_tables x_tables vsock hp_wmi sparse_keymap uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core x86_pkg_temp_thermal videodev intel_powerclamp media coretemp kvm_intel kvm crct10dif_pclmul btusb bluetooth crct10dif_common joydev crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel arc4 iwldvm mac80211 aes_x86_64 lrw radeon ttm gf128mul glue_helper ablk_helper cryptd iTCO_wdt iTCO_vendor_support i915 snd_hda_codec_hdmi r8169 mii rtsx_pci_ms memstick evdev iwlwifi cfg80211 rfkill intel_agp intel_gtt drm_kms_helper drm ac battery snd_hda_codec_idt lpc_ich wmi hp_accel thermal lis3lv02d psmouse input_polldev i2c_algo_bit snd_hda_intel processor
[   38.986921]  button video i2c_i801 i2c_core shpchp mei_me mei snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_timer snd soundcore serio_raw microcode vboxdrv(O) ext4 crc16 mbcache jbd2 sr_mod sd_mod cdrom rtsx_pci_sdmmc ahci libahci libata sdhci_pci sdhci ehci_pci xhci_hcd ehci_hcd scsi_mod mmc_core rtsx_pci usbcore usb_common
[   38.986936] CPU: 0 PID: 65 Comm: kworker/0:2 Tainted: G        W  O 3.12.6-1-ARCH #1
[   38.986938] Hardware name: Hewlett-Packard HP Pavilion dv6 Notebook PC/17F9, BIOS F.12 10/26/2011
[   38.986940] Workqueue: kacpi_hotplug hotplug_event_work
[   38.986941]  0000000000000009 ffff880253321a40 ffffffff814ee4fb 0000000000000000
[   38.986943]  ffff880253321a78 ffffffff81062bcd ffff88024fe01000 ffff880253e38290
[   38.986945]  0000000000000008 ffffffffa0938e80 ffff880253d3d000 ffff880253321a88
[   38.986947] Call Trace:
[   38.986949]  [<ffffffff814ee4fb>] dump_stack+0x54/0x8d
[   38.986952]  [<ffffffff81062bcd>] warn_slowpath_common+0x7d/0xa0
[   38.986955]  [<ffffffff81062caa>] warn_slowpath_null+0x1a/0x20
[   38.986958]  [<ffffffffa014784b>] ttm_dma_free_pool+0x12b/0x130 [ttm]
[   38.986961]  [<ffffffffa014899e>] ttm_dma_page_alloc_fini+0x8e/0x104 [ttm]
[   38.986965]  [<ffffffffa013e549>] ttm_mem_global_release+0x19/0x90 [ttm]
[   38.986972]  [<ffffffffa083d7f2>] radeon_ttm_mem_global_release+0x12/0x20 [radeon]
[   38.986977]  [<ffffffffa05f1553>] drm_global_item_unref+0x53/0x80 [drm]
[   38.986985]  [<ffffffffa083eb5e>] radeon_ttm_fini+0xee/0x190 [radeon]
[   38.986993]  [<ffffffffa083f5e2>] radeon_bo_fini+0x12/0x20 [radeon]
[   38.987004]  [<ffffffffa08897b3>] evergreen_fini+0xa3/0xd0 [radeon]
[   38.987010]  [<ffffffffa0823cce>] radeon_device_fini+0x3e/0x120 [radeon]
[   38.987016]  [<ffffffffa0825b2d>] radeon_driver_unload_kms+0x3d/0x60 [radeon]
[   38.987022]  [<ffffffffa05dfe53>] drm_put_dev+0x63/0x1b0 [drm]
[   38.987027]  [<ffffffffa082206d>] radeon_pci_remove+0x1d/0x20 [radeon]
[   38.987030]  [<ffffffff812c4c1b>] pci_device_remove+0x3b/0xb0
[   38.987033]  [<ffffffff81389e5f>] __device_release_driver+0x7f/0xf0
[   38.987035]  [<ffffffff81389ef3>] device_release_driver+0x23/0x30
[   38.987037]  [<ffffffff81389688>] bus_remove_device+0x108/0x180
[   38.987039]  [<ffffffff81386025>] device_del+0x135/0x1d0
[   38.987041]  [<ffffffff812bf2c4>] pci_stop_bus_device+0x94/0xa0
[   38.987043]  [<ffffffff812bf3d2>] pci_stop_and_remove_bus_device+0x12/0x20
[   38.987045]  [<ffffffff812dc996>] disable_slot+0x76/0xd0
[   38.987048]  [<ffffffff812dca98>] acpiphp_check_bridge+0xa8/0xd0
[   38.987050]  [<ffffffff812dd032>] hotplug_event+0x102/0x250
[   38.987053]  [<ffffffff812dd1a7>] hotplug_event_work+0x27/0x70
[   38.987055]  [<ffffffff8107dbc7>] process_one_work+0x167/0x450
[   38.987057]  [<ffffffff8107e5d1>] worker_thread+0x121/0x3a0
[   38.987059]  [<ffffffff8107e4b0>] ? manage_workers.isra.23+0x2b0/0x2b0
[   38.987061]  [<ffffffff81084fe0>] kthread+0xc0/0xd0
[   38.987064]  [<ffffffff81084f20>] ? kthread_create_on_node+0x120/0x120
[   38.987066]  [<ffffffff814fcffc>] ret_from_fork+0x7c/0xb0
[   38.987068]  [<ffffffff81084f20>] ? kthread_create_on_node+0x120/0x120
[   38.987069] ---[ end trace 482ec37d2a89ca95 ]---
[   38.987095] [TTM] Zone  kernel: Used memory at exit: 13 kiB
[   38.987097] [TTM] Zone   dma32: Used memory at exit: 9 kiB
[   38.987099] [drm] radeon: ttm finalized
[   38.987102] vga_switcheroo: disabled

I also can't see my ATI Radeon graphics card with lspci, I'm not sure if that's related to this. In Ubuntu, this is what lspci shows for my graphics card:

01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Seymour [Radeon HD 6400M/7400M Series] (rev ff)

I have libdrm 2.4.51-1 installed.
Comment 1 Alex Deucher 2014-01-09 20:51:30 UTC
Probably a duplicate of bug 70687 which was fixed by this patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=f244d8b623dae7a7bc695b0336f67729b95a9736
Make sure your kernel has this patch.
Comment 2 gsingh_2011 2014-01-09 21:18:00 UTC
Thanks for the response. I'm still on 3.12 so I don't have that patch yet, but it looks like it'll solve the problem. Looks like 3.13 will be out soon, so I'll wait for that release instead of building the kernel myself, and I'll confirm that the bug is fixed then.
Comment 3 gsingh_2011 2014-01-10 04:46:55 UTC
I ended up trying out 3.13.0-rc7, and the bug was fixed. I can also see my graphics card which wasn't showing up before. Thanks for the help, I'm closing this bug now.

*** This bug has been marked as a duplicate of bug 70687 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.