pages, 42852K, 41M) [ 274.091768] [TTM] placement[0]=0x00070002 (1) [ 274.091772] [TTM] has_type: 1 [ 274.091775] [TTM] use_type: 1 [ 274.091779] [TTM] flags: 0x0000000A [ 274.091783] [TTM] gpu_offset: 0x60000000 [ 274.091787] [TTM] size: 8192 [ 274.091790] [TTM] available_caching: 0x00070000 [ 274.091794] [TTM] default_caching: 0x00010000 [ 274.091800] [TTM] 0x00000000-0x00000100: 256: used [ 274.091806] [TTM] 0x00000100-0x00000101: 1: used [ 274.091812] [TTM] 0x00000101-0x00000201: 256: used [ 274.091818] [TTM] 0x00000201-0x00002000: 7679: free [ 274.091823] [TTM] total: 8192, used 513 free 7679 [ 274.091828] [TTM] ttm_bo_move_buffer returned -12 [ 274.091832] [TTM] ttm_bo_validate returned -12 [ 274.091838] radeon_ttm_bo_destroy: Calling list_del_init with bo->list.prev: ffffffff8120a150 and bo->list.next: (null) [ 274.091846] [TTM] ttm_bo_mem_compat returned -1, moving buffer [ 274.091852] [TTM] Failed to find memory space for buffer 0xffff88004b3be448 eviction. [ 274.091858] [TTM] No space for ffff88004b3be448 (10713 pages, 42852K, 41M) [ 274.091864] [TTM] placement[0]=0x00070002 (1) [ 274.091868] [TTM] has_type: 1 [ 274.091871] [TTM] use_type: 1 [ 274.091875] [TTM] flags: 0x0000000A [ 274.091879] [TTM] gpu_offset: 0x60000000 [ 274.091882] [TTM] size: 8192 [ 274.091886] [TTM] available_caching: 0x00070000 [ 274.091890] [TTM] default_caching: 0x00010000 [ 274.091895] [TTM] 0x00000000-0x00000100: 256: used [ 274.091901] [TTM] 0x00000100-0x00000101: 1: used [ 274.091907] [TTM] 0x00000101-0x00000201: 256: used [ 274.091913] [TTM] 0x00000201-0x00002000: 7679: free [ 274.091918] [TTM] total: 8192, used 513 free 7679 [ 274.091923] [TTM] ttm_bo_move_buffer returned -12 [ 274.091927] [TTM] ttm_bo_validate returned -12 [ 274.091932] radeon_ttm_bo_destroy: Calling list_del_init with bo->list.prev: ffffffff8120a150 and bo->list.next: (null) [ 274.091940] radeon 0000:01:05.0: object_init failed for (43880448, 0x00000006) [ 274.091948] [drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (43880448, 4, 4096, -12) [ 274.093401] [TTM] ttm_bo_mem_compat returned -1, moving buffer [ 274.093413] [TTM] Failed to find memory space for buffer 0xffff88004b3be448 eviction. [ 274.093420] [TTM] No space for ffff88004b3be448 (10713 pages, 42852K, 41M) [ 274.093426] [TTM] placement[0]=0x00070002 (1) [ 274.093430] [TTM] has_type: 1 [ 274.093433] [TTM] use_type: 1 [ 274.093437] [TTM] flags: 0x0000000A [ 274.093441] [TTM] gpu_offset: 0x60000000 [ 274.093444] [TTM] size: 8192 [ 274.093448] [TTM] available_caching: 0x00070000 [ 274.093452] [TTM] default_caching: 0x00010000 [ 274.093458] [TTM] 0x00000000-0x00000100: 256: used [ 274.093464] [TTM] 0x00000100-0x00000101: 1: used [ 274.093470] [TTM] 0x00000101-0x00000201: 256: used [ 274.093476] [TTM] 0x00000201-0x00002000: 7679: free [ 274.093481] [TTM] total: 8192, used 513 free 7679 [ 274.093486] [TTM] ttm_bo_move_buffer returned -12 [ 274.093490] [TTM] ttm_bo_validate returned -12 [ 274.093497] radeon_ttm_bo_destroy: Calling list_del_init with bo->list.prev: ffffffff8120a150 and bo->list.next: (null) [ 274.093505] [TTM] ttm_bo_mem_compat returned -1, moving buffer [ 274.093511] [TTM] Failed to find memory space for buffer 0xffff88004b3be448 eviction. [ 274.093517] [TTM] No space for ffff88004b3be448 (10713 pages, 42852K, 41M) [ 274.093523] [TTM] placement[0]=0x00070002 (1) [ 274.093527] [TTM] has_type: 1 [ 274.093530] [TTM] use_type: 1 [ 274.093533] [TTM] flags: 0x0000000A [ 274.093537] [TTM] gpu_offset: 0x60000000 [ 274.093541] [TTM] size: 8192 [ 274.093544] [TTM] available_caching: 0x00070000 [ 274.093548] [TTM] default_caching: 0x00010000 [ 274.093554] [TTM] 0x00000000-0x00000100: 256: used [ 274.093560] [TTM] 0x00000100-0x00000101: 1: used [ 274.093566] [TTM] 0x00000101-0x00000201: 256: used [ 274.093572] [TTM] 0x00000201-0x00002000: 7679: free [ 274.093577] [TTM] total: 8192, used 513 free 7679 [ 274.093582] [TTM] ttm_bo_move_buffer returned -12 [ 274.093586] [TTM] ttm_bo_validate returned -12 [ 274.093591] radeon_ttm_bo_destroy: Calling list_del_init with bo->list.prev: ffffffff8120a150 and bo->list.next: (null) [ 274.093599] radeon 0000:01:05.0: object_init failed for (43880448, 0x00000006) [ 274.093606] [drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (43880448, 4, 4096, -12) [ 274.095056] [TTM] ttm_bo_mem_compat returned -1, moving buffer [ 274.095068] [TTM] Failed to find memory space for buffer 0xffff88004b3be448 eviction. [ 274.095075] [TTM] No space for ffff88004b3be448 (10713 pages, 42852K, 41M) [ 274.095081] [TTM] placement[0]=0x00070002 (1) [ 274.095085] [TTM] has_type: 1 [ 274.095088] [TTM] use_type: 1 [ 274.095092] [TTM] flags: 0x0000000A [ 274.095095] [TTM] gpu_offset: 0x60000000 [ 274.095099] [TTM] size: 8192 [ 274.095103] [TTM] available_caching: 0x00070000 [ 274.095107] [TTM] default_caching: 0x00010000 [ 274.095113] [TTM] 0x00000000-0x00000100: 256: used [ 274.095119] [TTM] 0x00000100-0x00000101: 1: used [ 274.095124] [TTM] 0x00000101-0x00000201: 256: used [ 274.095130] [TTM] 0x00000201-0x00002000: 7679: free [ 274.095136] [TTM] total: 8192, used 513 free 7679 [ 274.095141] [TTM] ttm_bo_move_buffer returned -12 [ 274.095145] [TTM] ttm_bo_validate returned -12 [ 274.095152] radeon_ttm_bo_destroy: Calling list_del_init with bo->list.prev: ffffffff8120a150 and bo->list.next: (null) [ 274.095159] [TTM] ttm_bo_mem_compat returned -1, moving buffer [ 274.095165] [TTM] Failed to find memory space for buffer 0xffff88004b3be448 eviction. [ 274.095171] [TTM] No space for ffff88004b3be448 (10713 pages, 42852K, 41M) [ 274.095177] [TTM] placement[0]=0x00070002 (1) [ 274.095181] [TTM] has_type: 1 [ 274.095185] [TTM] use_type: 1 [ 274.095188] [TTM] flags: 0x0000000A [ 274.095192] [TTM] gpu_offset: 0x60000000 [ 274.095196] [TTM] size: 8192 [ 274.095199] [TTM] available_caching: 0x00070000 [ 274.095203] [TTM] default_caching: 0x00010000 [ 274.095209] [TTM] 0x00000000-0x00000100: 256: used [ 274.095215] [TTM] 0x00000100-0x00000101: 1: used [ 274.095220] [TTM] 0x00000101-0x00000201: 256: used [ 274.095226] [TTM] 0x00000201-0x00002000: 7679: free [ 274.095232] [TTM] total: 8192, used 513 free 7679 [ 274.095236] [TTM] ttm_bo_move_buffer returned -12 [ 274.095240] [TTM] ttm_bo_validate returned -12 [ 274.095246] radeon_ttm_bo_destroy: Calling list_del_init with bo->list.prev: ffffffff8120a150 and bo->list.next: (null) [ 274.095254] radeon 0000:01:05.0: object_init failed for (43880448, 0x00000006) [ 274.095261] [drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (43880448, 4, 4096, -12) [ 274.096754] [TTM] ttm_bo_mem_compat returned -1, moving buffer [ 274.096766] [TTM] Failed to find memory space for buffer 0xffff88004b3be448 eviction. [ 274.096773] [TTM] No space for ffff88004b3be448 (10713 pages, 42852K, 41M) [ 274.096778] [TTM] placement[0]=0x00070002 (1) [ 274.096782] [TTM] has_type: 1 [ 274.096786] [TTM] use_type: 1 [ 274.096789] [TTM] flags: 0x0000000A [ 274.096793] [TTM] gpu_offset: 0x60000000 [ 274.096797] [TTM] size: 8192 [ 274.096800] [TTM] available_caching: 0x00070000 [ 274.096804] [TTM] default_caching: 0x00010000 [ 274.096811] [TTM] 0x00000000-0x00000100: 256: used [ 274.096816] [TTM] 0x00000100-0x00000101: 1: used [ 274.096822] [TTM] 0x00000101-0x00000201: 256: used [ 274.096828] [TTM] 0x00000201-0x00002000: 7679: free [ 274.096834] [TTM] total: 8192, used 513 free 7679 [ 274.096838] [TTM] ttm_bo_move_buffer returned -12 [ 274.096842] [TTM] ttm_bo_validate returned -12 [ 274.096849] radeon_ttm_bo_destroy: Calling list_del_init with bo->list.prev: ffffffff8120a150 and bo->list.next: (null) [ 274.096857] [TTM] ttm_bo_mem_compat returned -1, moving buffer [ 274.096863] [TTM] Failed to find memory space for buffer 0xffff88004b3be448 eviction. [ 274.096869] [TTM] No space for ffff88004b3be448 (10713 pages, 42852K, 41M) [ 274.096875] [TTM] placement[0]=0x00070002 (1) [ 274.096879] [TTM] has_type: 1 [ 274.096882] [TTM] use_type: 1 [ 274.096886] [TTM] flags: 0x0000000A [ 274.096890] [TTM] gpu_offset: 0x60000000 [ 274.096893] [TTM] size: 8192 [ 274.096897] [TTM] available_caching: 0x00070000 [ 274.096901] [TTM] default_caching: 0x00010000 [ 274.096907] [TTM] 0x00000000-0x00000100: 256: used [ 274.096912] [TTM] 0x00000100-0x00000101: 1: used [ 274.096918] [TTM] 0x00000101-0x00000201: 256: used [ 274.096924] [TTM] 0x00000201-0x00002000: 7679: free [ 274.096930] [TTM] total: 8192, used 513 free 7679 [ 274.096934] [TTM] ttm_bo_move_buffer returned -12 [ 274.096938] [TTM] ttm_bo_validate returned -12 [ 274.096944] radeon_ttm_bo_destroy: Calling list_del_init with bo->list.prev: ffffffff8120a150 and bo->list.next: (null) [ 274.096952] radeon 0000:01:05.0: object_init failed for (43880448, 0x00000006) [ 274.096959] [drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (43880448, 4, 4096, -12) [ 274.103456] [TTM] ttm_bo_mem_compat returned -1, moving buffer [ 274.103472] [TTM] Failed to find memory space for buffer 0xffff88004b3be448 eviction. [ 274.103479] [TTM] No space for ffff88004b3be448 (10713 pages, 42852K, 41M) [ 274.103485] [TTM] placement[0]=0x00070002 (1) [ 274.103489] [TTM] has_type: 1 [ 274.103493] [TTM] use_type: 1 [ 274.103496] [TTM] flags: 0x0000000A [ 274.103500] [TTM] gpu_offset: 0x60000000 [ 274.103504] [TTM] size: 8192 [ 274.103507] [TTM] available_caching: 0x00070000 [ 274.103511] [TTM] default_caching: 0x00010000 [ 274.103518] [TTM] 0x00000000-0x00000100: 256: used [ 274.103523] [TTM] 0x00000100-0x00000101: 1: used [ 274.103529] [TTM] 0x00000101-0x00000201: 256: used [ 274.103535] [TTM] 0x00000201-0x00002000: 7679: free [ 274.103541] [TTM] total: 8192, used 513 free 7679 [ 274.103546] [TTM] ttm_bo_move_buffer returned -12 [ 274.103550] [TTM] ttm_bo_validate returned -12 [ 274.103558] radeon_ttm_bo_destroy: Calling list_del_init with bo->list.prev: ffffffff8120a150 and bo->list.next: (null) [ 274.103566] [TTM] ttm_bo_mem_compat returned -1, moving buffer [ 274.103572] [TTM] Failed to find memory space for buffer 0xffff88004b3be448 eviction. [ 274.103578] [TTM] No space for ffff88004b3be448 (10713 pages, 42852K, 41M) [ 274.103584] [TTM] placement[0]=0x00070002 (1) [ 274.103588] [TTM] has_type: 1 [ 274.103591] [TTM] use_type: 1 [ 274.103595] [TTM] flags: 0x0000000A [ 274.103598] [TTM] gpu_offset: 0x60000000 [ 274.103602] [TTM] size: 8192 [ 274.103606] [TTM] available_caching: 0x00070000 [ 274.103609] [TTM] default_caching: 0x00010000 [ 274.103615] [TTM] 0x00000000-0x00000100: 256: used [ 274.103621] [TTM] 0x00000100-0x00000101: 1: used [ 274.103627] [TTM] 0x00000101-0x00000201: 256: used [ 274.103633] [TTM] 0x00000201-0x00002000: 7679: free [ 274.103638] [TTM] total: 8192, used 513 free 7679 [ 274.103643] [TTM] ttm_bo_move_buffer returned -12 [ 274.103647] [TTM] ttm_bo_validate returned -12 [ 274.103652] radeon_ttm_bo_destroy: Calling list_del_init with bo->list.prev: ffffffff8120a150 and bo->list.next: (null) [ 274.103660] radeon 0000:01:05.0: object_init failed for (43880448, 0x00000006) [ 274.103668] [drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (43880448, 4, 4096, -12) [ 274.104714] [TTM] ttm_bo_mem_compat returned -1, moving buffer [ 274.104727] [TTM] ttm_bo_move_buffer returned 0 [ 274.104930] ------------[ cut here ]------------ [ 274.104937] kernel BUG at drivers/gpu/drm/ttm/ttm_bo.c:1614! [ 274.104943] invalid opcode: 0000 [#2] [ 274.104948] last sysfs file: /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor [ 274.104953] CPU 0 [ 274.104957] Modules linked in: cpufreq_ondemand vboxnetadp vboxnetflt vboxdrv sco bnep rfcomm l2cap crc16 ipv6 af_packet fuse dm_snapshot snd_atiixp snd_atiixp_modem snd_ac97_codec snd_usb_audio ac97_bus snd_pcm_oss snd_mixer_oss rt2500pci rt2x00pci rt2x00lib snd_pcm pcmcia snd_hwdep mac80211 snd_usbmidi_lib cp210x wacom snd_seq_midi snd_seq_midi_event btusb cfg80211 bluetooth snd_rawmidi snd_seq usbserial snd_timer snd_seq_device yenta_socket snd eeprom_93cx6 rtc_cmos msi_laptop pcmcia_rsrc rfkill psmouse pcmcia_core rtc_core soundcore serio_raw snd_page_alloc rtc_lib evdev usbhid hid sdhci_pci sg ohci_hcd sdhci ehci_hcd usbcore 8139too mmc_core sd_mod sr_mod cdrom mii unix [last unloaded: scsi_wait_scan] [ 274.105012] [ 274.105012] Pid: 2855, comm: Xorg Tainted: G DA 2.6.35.2 #3 /MS-1013 [ 274.105012] RIP: 0010:[] [] ttm_bo_init+0x31b/0x350 [ 274.105012] RSP: 0018:ffff880058843bc8 EFLAGS: 00010246 [ 274.105012] RAX: ffff88004bcd2d60 RBX: ffff88004bcd2c20 RCX: ffff88004bd0ad60 [ 274.105012] RDX: ffff88004bcc3de0 RSI: ffff88005b9a4848 RDI: 0000000000101cbb [ 274.105012] RBP: ffff880058843c18 R08: ffffffff81635a18 R09: ffff88004b145360 [ 274.105012] R10: 000000000000001d R11: ffff8800582c0a80 R12: ffff88004bcd2c48 [ 274.105012] R13: 0000000000000001 R14: ffff88005b9a4850 R15: 0000000000000000 [ 274.105012] FS: 00007f71d7ad8700(0000) GS:ffffffff8161b000(0000) knlGS:0000000000000000 [ 274.105012] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 274.105012] CR2: 00007f71d7aee000 CR3: 000000005b9e5000 CR4: 00000000000006f0 [ 274.105012] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 274.105012] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [ 274.105012] Process Xorg (pid: 2855, threadinfo ffff880058842000, task ffff880037d0f840) [ 274.105012] Stack: [ 274.105012] ffff880058843bf8 ffffffff00000000 0000000000000001 ffff88004bcd2c48 [ 274.105012] <0> ffff880058843c28 ffff88004bcd2c00 ffff88005b9a4000 0000000000000000 [ 274.105012] <0> 00000000fffffff4 ffff880058843cf0 ffff880058843cc8 ffffffff8123ec8a [ 274.105012] Call Trace: [ 274.105012] [] radeon_bo_create+0x12a/0x210 [ 274.105012] [] ? radeon_ttm_bo_destroy+0x0/0xc0 [ 274.105012] [] radeon_gem_object_create+0x83/0xf0 [ 274.105012] [] radeon_gem_create_ioctl+0x4f/0xd0 [ 274.105012] [] ? radeon_gem_wait_idle_ioctl+0xb3/0x110 [ 274.105012] [] drm_ioctl+0x2c2/0x430 [ 274.105012] [] ? radeon_gem_create_ioctl+0x0/0xd0 [ 274.105012] [] ? do_page_fault+0x184/0x380 [ 274.105012] [] vfs_ioctl+0x18/0x70 [ 274.105012] [] do_vfs_ioctl+0x7d/0x550 [ 274.105012] [] ? do_mmap_pgoff+0x34c/0x3a0 [ 274.105012] [] sys_ioctl+0x4a/0x80 [ 274.105012] [] system_call_fastpath+0x16/0x1b [ 274.105012] Code: 83 c4 28 44 89 f8 5b 41 5c 41 5d 41 5e 41 5f c9 c3 41 bf f4 ff ff ff 48 8b 7d c8 e8 10 d8 ff ff 48 8d 7d c8 e8 b7 d7 ff ff eb d4 <0f> 0b eb fe 89 c6 48 c7 c7 f0 7b 51 81 31 c0 e8 b5 79 17 00 eb [ 274.105012] RIP [] ttm_bo_init+0x31b/0x350 [ 274.105012] RSP [ 274.105517] ---[ end trace c2b1df2bc1c395c7 ]--- Index: linux/drivers/gpu/drm/radeon/radeon_object.c =================================================================== --- linux.orig/drivers/gpu/drm/radeon/radeon_object.c 2010-10-12 11:08:05.000000000 +0200 +++ linux/drivers/gpu/drm/radeon/radeon_object.c 2010-10-12 11:12:08.000000000 +0200 @@ -51,6 +51,7 @@ bo = container_of(tbo, struct radeon_bo, tbo); mutex_lock(&bo->rdev->gem.mutex); + printk(KERN_ERR "radeon_ttm_bo_destroy: Calling list_del_init with bo->list.prev: %p and bo->list.next: %p\n"); list_del_init(&bo->list); mutex_unlock(&bo->rdev->gem.mutex); radeon_bo_clear_surface_reg(bo); Index: linux/drivers/gpu/drm/ttm/ttm_bo.c =================================================================== --- linux.orig/drivers/gpu/drm/ttm/ttm_bo.c 2010-10-12 10:55:39.000000000 +0200 +++ linux/drivers/gpu/drm/ttm/ttm_bo.c 2010-10-12 11:15:52.000000000 +0200 @@ -1075,7 +1075,9 @@ */ ret = ttm_bo_mem_compat(placement, &bo->mem); if (ret < 0) { + printk(KERN_ERR TTM_PFX "ttm_bo_mem_compat returned %d, moving buffer\n", ret); ret = ttm_bo_move_buffer(bo, placement, interruptible, no_wait_reserve, no_wait_gpu); + printk(KERN_ERR TTM_PFX "ttm_bo_move_buffer returned %d\n", ret); if (ret) return ret; } else { @@ -1198,8 +1200,11 @@ } ret = ttm_bo_validate(bo, placement, interruptible, false, false); - if (ret) + + if (ret) { + printk(KERN_ERR TTM_PFX "ttm_bo_validate returned %d\n", ret); goto out_err; + } ttm_bo_unreserve(bo); return 0;