Yesterday on using a translation plasmoid on KDE 4.5.3/4.5.1 I got a backtrace loop with scheduling while atomic on my ThinkPad T42 with Radeon KMS. Since I hadn't another machine up to SSH into my laptop and I was not able to get into a tty, I rebooted it. But I think the kernel was still running. Harddisk LED were active from time to time. Nov 22 21:56:51 shambhala kernel: [drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation -12! Nov 22 22:02:18 shambhala kernel: [drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation -12! Nov 22 22:03:48 shambhala kernel: [drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation -12! Nov 22 22:05:02 shambhala /USR/SBIN/CRON[14505]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Nov 22 22:06:05 shambhala kernel: [TTM] Failed to find memory space for buffer 0xeff8902c eviction. Nov 22 22:06:05 shambhala kernel: [TTM] No space for eff8902c (1444 pages, 5776K, 5M) Nov 22 22:06:05 shambhala kernel: [TTM] placement[0]=0x00070002 (1) Nov 22 22:06:05 shambhala kernel: [TTM] has_type: 1 Nov 22 22:06:05 shambhala kernel: [TTM] use_type: 1 Nov 22 22:06:05 shambhala kernel: [TTM] flags: 0x00000002 Nov 22 22:06:05 shambhala kernel: [TTM] gpu_offset: 0xD0000000 Nov 22 22:06:05 shambhala kernel: [TTM] size: 65536 Nov 22 22:06:05 shambhala kernel: [TTM] available_caching: 0x00060000 Nov 22 22:06:05 shambhala kernel: [TTM] default_caching: 0x00040000 Nov 22 22:06:05 shambhala kernel: [TTM] 0x00000000-0x00000100: 256: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00000100-0x00000101: 1: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00000101-0x00000201: 256: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00000201-0x000007a5: 1444: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x000007a5-0x00000d51: 1452: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00000d51-0x00000da7: 86: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00000da7-0x00000de5: 62: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00000de5-0x00000e19: 52: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00000e19-0x00000e23: 10: free Nov 22 22:06:05 shambhala kernel: [TTM] 0x00000e23-0x00000e51: 46: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00000e51-0x0000125a: 1033: free Nov 22 22:06:05 shambhala kernel: [TTM] 0x0000125a-0x0000146a: 528: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x0000146a-0x000015ea: 384: free Nov 22 22:06:05 shambhala kernel: [TTM] 0x000015ea-0x00001614: 42: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00001614-0x00001633: 31: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00001633-0x00001651: 30: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00001651-0x00001b30: 1247: free Nov 22 22:06:05 shambhala kernel: [TTM] 0x00001b30-0x00001b4f: 31: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00001b4f-0x00001b8d: 62: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00001b8d-0x00001b9b: 14: free Nov 22 22:06:05 shambhala kernel: [TTM] 0x00001b9b-0x00001bcd: 50: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00001bcd-0x00001d6b: 414: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00001d6b-0x00001d8a: 31: free Nov 22 22:06:05 shambhala kernel: [TTM] 0x00001d8a-0x00001f88: 510: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00001f88-0x0000252c: 1444: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x0000252c-0x000026b3: 391: free Nov 22 22:06:05 shambhala kernel: [TTM] 0x000026b3-0x00002709: 86: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00002709-0x0000275f: 86: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x0000275f-0x00002793: 52: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00002793-0x000027eb: 88: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x000027eb-0x0000283a: 79: free Nov 22 22:06:05 shambhala kernel: [TTM] 0x0000283a-0x00002886: 76: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00002886-0x000028b0: 42: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x000028b0-0x000028b4: 4: free Nov 22 22:06:05 shambhala kernel: [TTM] 0x000028b4-0x00002dbf: 1291: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00002dbf-0x00002de9: 42: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00002de9-0x00002e1a: 49: free Nov 22 22:06:05 shambhala kernel: [TTM] 0x00002e1a-0x00002e58: 62: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00002e58-0x00002e7d: 37: free Nov 22 22:06:05 shambhala kernel: [TTM] 0x00002e7d-0x00002ec3: 70: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00002ec3-0x00003403: 1344: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00003403-0x0000345b: 88: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x0000345b-0x00003499: 62: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00003499-0x0000349b: 2: free Nov 22 22:06:05 shambhala kernel: [TTM] 0x0000349b-0x000034c9: 46: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x000034c9-0x00003520: 87: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00003520-0x00003a60: 1344: used Nov 22 22:06:05 shambhala kernel: [TTM] 0x00003a60-0x00010000: 50592: free Nov 22 22:06:05 shambhala kernel: [TTM] total: 65536, used 11663 free 53873 Nov 22 22:06:05 shambhala kernel: BUG: unable to handle kernel NULL pointer dereference at (null) Nov 22 22:06:05 shambhala kernel: IP: [<f83eb8d1>] ttm_bo_reserve+0x61/0xe0 [ttm] Nov 22 22:06:05 shambhala kernel: *pde = 00000000 Nov 22 22:06:05 shambhala kernel: Oops: 0002 [#1] PREEMPT Nov 22 22:06:05 shambhala kernel: last sysfs file: /sys/devices/pci0000:00/0000:00:1e.0/0000:02:02.0/rf_kill Nov 22 22:06:05 shambhala kernel: Modules linked in: uvcvideo snd_usb_audio snd_hwdep snd_usbmidi_lib videodev vboxnetadp vboxnetflt vboxdrv acpi_cpufreq mperf cpufreq_userspace cpufreq_stats cpufreq_conservative cpufreq_powersave ipv6 ppdev lp cn microcode fuse tun usblp ohci_hcd usb_storage usb_libusual nls_iso8859_15 nls_iso8859_1 nls_cp850 ntfs vfat msdos fat reiserfs isofs udf crc_itu_t smbfs pktcdvd uinput hdaps tp_smapi thinkpad_ec dm_crypt sata_sil snd_intel8x0 snd_intel8x0m snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq pcmcia ipw2200 snd_timer yenta_socket libipw video pcmcia_rsrc thinkpad_acpi cfg80211 led_class snd_seq_device rtc_cmos rtc_core snd joydev evdev nvram output pcmcia_core rtc_lib snd_page_alloc rfkill i2c_i801 parport_pc lib80211 parport processor ac battery button dm_mod raid10 raid456 async_pq async_xor xor async_memcpy async_raid6_recov raid6_pq async_tx raid1 raid0 linear md_mod usbhid btrfs zlib_de Nov 22 22:06:05 shambhala kernel: flate crc32c libcrc32c radeon ttm drm_kms_helper drm hwmon i2c_algo_bit uhci_hcd ehci_hcd sg usbcore intel_agp sr_mod cdrom agpgart thermal [last unloaded: uvcvideo] Nov 22 22:06:05 shambhala kernel: Nov 22 22:06:05 shambhala kernel: Pid: 2169, comm: Xorg Not tainted 2.6.36-tp42-gtt-vram-apart-v2-dirty #1 2373CXG/2373CXG Nov 22 22:06:05 shambhala kernel: EIP: 0060:[<f83eb8d1>] EFLAGS: 00213206 CPU: 0 Nov 22 22:06:05 shambhala kernel: EIP is at ttm_bo_reserve+0x61/0xe0 [ttm] Nov 22 22:06:05 shambhala kernel: EAX: 00000000 EBX: f381ec2c ECX: c33802ac EDX: f381ecac Nov 22 22:06:05 shambhala kernel: ESI: f381ec00 EDI: 00000000 EBP: ef2c3d38 ESP: ef2c3d1c Nov 22 22:06:05 shambhala kernel: DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 Nov 22 22:06:05 shambhala kernel: Process Xorg (pid: 2169, ti=ef2c2000 task=f6374b00 task.ti=ef2c2000) Nov 22 22:06:05 shambhala kernel: Stack: Nov 22 22:06:05 shambhala kernel: 00000000 00000000 ef2c3d34 00a51a00 f63675b0 f381ec00 ef2c3e0c ef2c3d5c Nov 22 22:06:05 shambhala kernel: <0> f851a92f 00000000 00000000 00203202 f85300c9 ef2c3de4 f6367540 ef2c3e0c Nov 22 22:06:05 shambhala kernel: <0> ef2c3d88 f851a9b7 000080d0 0000009c 00000003 f00acea0 f00acea0 ef2c3d88 Nov 22 22:06:05 shambhala kernel: Call Trace: Nov 22 22:06:05 shambhala kernel: [<f851a92f>] ? radeon_bo_list_reserve+0x3f/0x90 [radeon] Nov 22 22:06:05 shambhala kernel: [<f85300c9>] ? T.619+0x29/0x50 [radeon] Nov 22 22:06:05 shambhala kernel: [<f851a9b7>] ? radeon_bo_list_validate+0x37/0x100 [radeon] Nov 22 22:06:05 shambhala kernel: [<f85302dc>] ? radeon_cs_parser_relocs+0x1ec/0x230 [radeon] Nov 22 22:06:05 shambhala kernel: [<f85305d1>] ? radeon_cs_parser_init+0x211/0x290 [radeon] Nov 22 22:06:05 shambhala kernel: [<f85307a7>] ? radeon_cs_ioctl+0x97/0x1a0 [radeon] Nov 22 22:06:05 shambhala kernel: [<c1059850>] ? enqueue_hrtimer+0x80/0xd0 Nov 22 22:06:05 shambhala kernel: [<f8383d57>] ? drm_ioctl+0x1d7/0x4c0 [drm] Nov 22 22:06:05 shambhala kernel: [<f8530710>] ? radeon_cs_ioctl+0x0/0x1a0 [radeon] Nov 22 22:06:05 shambhala kernel: [<c100b306>] ? restore_i387_fxsave+0x76/0x80 Nov 22 22:06:05 shambhala kernel: [<f8383b80>] ? drm_ioctl+0x0/0x4c0 [drm] Nov 22 22:06:05 shambhala kernel: [<c10f17cd>] ? do_vfs_ioctl+0x8d/0x610 Nov 22 22:06:05 shambhala kernel: [<c103c349>] ? do_setitimer+0xb9/0x200 Nov 22 22:06:05 shambhala kernel: [<c102e25b>] ? pick_next_task_fair+0xdb/0x100 Nov 22 22:06:05 shambhala kernel: [<c103c4e1>] ? sys_setitimer+0x51/0xb0 Nov 22 22:06:05 shambhala kernel: [<c10f1d8e>] ? sys_ioctl+0x3e/0x60 Nov 22 22:06:05 shambhala kernel: [<c1002f23>] ? sysenter_do_call+0x12/0x2c Nov 22 22:06:05 shambhala kernel: Code: d8 e8 a4 fd ff ff 85 c0 89 c7 0f 85 86 00 00 00 8b 8b 80 00 00 00 8d 93 80 00 00 00 31 c0 39 ca 74 1c 8b 83 84 00 00 00 89 41 04 <89> 08 b8 01 00 00 00 89 93 80 00 00 00 89 93 84 00 00 00 8b 4b Nov 22 22:06:05 shambhala kernel: EIP: [<f83eb8d1>] ttm_bo_reserve+0x61/0xe0 [ttm] SS:ESP 0068:ef2c3d1c Nov 22 22:06:05 shambhala kernel: CR2: 0000000000000000 Nov 22 22:06:05 shambhala kernel: ---[ end trace 6a77c2cbfab014c4 ]--- Nov 22 22:06:05 shambhala kernel: note: Xorg[2169] exited with preempt_count 1 Nov 22 22:06:05 shambhala kernel: BUG: scheduling while atomic: Xorg/2169/0x10000002 Nov 22 22:06:05 shambhala kernel: Modules linked in: uvcvideo snd_usb_audio snd_hwdep snd_usbmidi_lib videodev vboxnetadp vboxnetflt vboxdrv acpi_cpufreq mperf cpufreq_userspace cpufreq_stats cpufreq_conservative cpufreq_powersave ipv6 ppdev lp cn microcode fuse tun usblp ohci_hcd usb_storage usb_libusual nls_iso8859_15 nls_iso8859_1 nls_cp850 ntfs vfat msdos fat reiserfs isofs udf crc_itu_t smbfs pktcdvd uinput hdaps tp_smapi thinkpad_ec dm_crypt sata_sil snd_intel8x0 snd_intel8x0m snd_ac97_codec ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq pcmcia ipw2200 snd_timer yenta_socket libipw video pcmcia_rsrc thinkpad_acpi cfg80211 led_class snd_seq_device rtc_cmos rtc_core snd joydev evdev nvram output pcmcia_core rtc_lib snd_page_alloc rfkill i2c_i801 parport_pc lib80211 parport processor ac battery button dm_mod raid10 raid456 async_pq async_xor xor async_memcpy async_raid6_recov raid6_pq async_tx raid1 raid0 linear md_mod usbhid btrfs zlib_de Nov 22 22:06:05 shambhala kernel: flate crc32c libcrc32c radeon ttm drm_kms_helper drm hwmon i2c_algo_bit uhci_hcd ehci_hcd sg usbcore intel_agp sr_mod cdrom agpgart thermal [last unloaded: uvcvideo] Nov 22 22:06:05 shambhala kernel: Pid: 2169, comm: Xorg Tainted: G D 2.6.36-tp42-gtt-vram-apart-v2-dirty #1 Nov 22 22:06:05 shambhala kernel: Call Trace: Nov 22 22:06:05 shambhala kernel: [<c102ba91>] __schedule_bug+0x61/0x70 Nov 22 22:06:05 shambhala kernel: [<c13fd212>] schedule+0x4d2/0x5d0 Nov 22 22:06:05 shambhala kernel: [<c13fd450>] _cond_resched+0x30/0x50 Nov 22 22:06:05 shambhala kernel: [<c10c19e6>] unmap_vmas+0x576/0x5c0 [...] Goes on like this. TTM memory allocation errors like in the beginning of above except I had at 9:42 and in the afternoon already, without noticing them. Probably related is Bug 31859 - graphics corruption on display :0 when using two sessions https://bugs.freedesktop.org/show_bug.cgi?id=31859 but I only used one KDE 4.5 session at that time. I even restarted it to get rid of those graphics corruptions. I am using Radeon KMS on ThinkPad T42 with: 00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 03) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 96 Bus: primary=00, secondary=01, subordinate=01, sec-latency=64 I/O behind bridge: 00003000-00003fff Memory behind bridge: c0100000-c01fffff Prefetchable memory behind bridge: e0000000-e7ffffff Secondary status: 66MHz+ FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- <SERR- <PERR- BridgeCtl: Parity- SERR- NoISA+ VGA+ MAbort- >Reset- FastB2B- PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- 01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10] (prog-if 00 [VGA controller]) Subsystem: IBM Device 0550 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B+ DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 66 (2000ns min), Cache Line Size: 32 bytes Interrupt: pin A routed to IRQ 11 Region 0: Memory at e0000000 (32-bit, prefetchable) [size=128M] Region 1: I/O ports at 3000 [size=256] Region 2: Memory at c0100000 (32-bit, non-prefetchable) [size=64K] [virtual] Expansion ROM at c0120000 [disabled] [size=128K] Capabilities: [58] AGP version 2.0 Status: RQ=80 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4 Command: RQ=32 ArqSz=0 Cal=0 SBA+ AGP+ GART64- 64bit- FW- Rate=x4 Capabilities: [50] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Kernel driver in use: radeon And kernel: martin@shambhala:~> cat /proc/version Linux version 2.6.36-tp42-gtt-vram-apart-v2-dirty (martin@shambhala) (gcc version 4.4.5 (Debian 4.4.5-4) ) #1 PREEMPT Thu Oct 21 12:10:49 CEST 2010 (which is a plain 2.6.36 with second last patch I think to fix bug #28402) And the following userspace: martin@shambhala:~> apt-show-versions | egrep "(xserver-xorg/|xserver-xorg-core/|xserver-xorg-video-radeon/|libgl1-mesa-dri/|kdelibs5/|kde-window-manager/|libqt4-gui/)" kde-window-manager/experimental-snapshots uptodate 4:4.5.1-0r2 kdelibs5/experimental-snapshots uptodate 4:4.5.3-0r1 libgl1-mesa-dri/experimental uptodate 7.9+repack-1 libqt4-gui/squeeze uptodate 4:4.6.3-4 xserver-xorg/squeeze uptodate 1:7.5+8 xserver-xorg-core/squeeze uptodate 2:1.7.7-9 xserver-xorg-video-radeon/squeeze uptodate 1:6.13.1-2+squeeze1
Created attachment 37952 [details] syslog with all the backtraces until I rebooted the machine packed with bzip2, seems to be to big otherwise.
The title is inaccurate. This is actually a null-pointer deref in ttm_bo_reserve().
Looks like you ran out of graphics memory. What size is your AGP aperture set to? Please attach your dmesg output.
Created attachment 37982 [details] dmesg of 2.6.37-rc3 Andrew, thanks for hint regarding the title. I changed it as per your suggestion. Alex, dmesg of freshly booted 2.6.37-rc3 (upto KDE Display Manager). Tell me if you need 2.6.36 as well.
Created attachment 37992 [details] syslog with more backtraces this syslog contains some additional backtraces. Including another occurence of this with 2.6.36 where kwin got stuck in a 95-100% CPU loop and the desktop was basically frozen, no mouse movement, no switching to tty. And some allocation features with previously booted 2.6.37-rc3 after playing around with desktop cube and effects which feel a bit faster than with 2.6.36. I will test the two desktop gfx corruption case tomorrow during holding my training.
agpgart-intel 0000:00:00.0: AGP 2.0 bridge agpgart-intel 0000:00:00.0: putting AGP V2 device into 4x mode radeon 0000:01:00.0: putting AGP V2 device into 4x mode radeon 0000:01:00.0: GTT: 256M 0xD0000000 - 0xDFFFFFFF [drm] Generation 2 PCI interface, using max accessible memory radeon 0000:01:00.0: VRAM: 128M 0xE0000000 - 0xE7FFFFFF (64M used) [drm] radeon: irq initialized. [drm] Detected VRAM RAM=128M, BAR=128M [drm] RAM width 128bits DDR [TTM] Zone kernel: Available graphics memory: 437562 kiB. [TTM] Zone highmem: Available graphics memory: 1031134 kiB. [TTM] Initializing pool allocator. [drm] radeon: 64M of VRAM memory ready [drm] radeon: 256M of GTT memory ready. Is 256 MB the AGP aperture size?
You can try increasing your AGP aperture size in the bios, but there's not a lot you can do if you run out of graphics memory other than trying to handle things more gracefully.
I did not found any option for this in the ThinkPad BIOS. But shouldn't the driver just get more slow, i.e. increase swapping of textures between gfx card and main memory, when gfx memory is low? Well, maybe thats what you mean by "more gracefully". Anyway, will run without compositing when using two sessions simultaneously. Seems fair enough with that old gfx card ;). Will leave this report open as reminder for the "more gracefully" thing, i.e. to fix that null pointer deference for example ;). Thanks.
Not my main notebook aynmore and did not have any visible issues anymore. Thus closing as unreproducible.