Bug 28520

Summary: X: page allocation failure. 2.6.35-rc3
Product: DRI Reporter: Mikko C. <mikko.cal>
Component: DRM/RadeonAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium Keywords: security
Version: XOrg git   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
/var/log/messages relevant part none

Description Mikko C. 2010-06-13 05:04:22 UTC
I hit this bug. It was present with 2.6.35-rc2 too.
Mesa git, xf86-video-ati git. Xorg-server 1.8.1.


X: page allocation failure. order:0, mode:0x4                                                                           
Pid: 1514, comm: X Not tainted 2.6.35-rc3 #1                                                                            
Call Trace:                                                                                                             
 [<ffffffff8108ce49>] ? __alloc_pages_nodemask+0x629/0x680                                                              
 [<ffffffff8108c920>] ? __alloc_pages_nodemask+0x100/0x680                                                              
 [<ffffffffa00db8f3>] ? ttm_get_pages+0x2c3/0x448 [ttm]                                                                 
 [<ffffffffa00d4658>] ? __ttm_tt_get_page+0x98/0xc0 [ttm]                                                               
 [<ffffffffa00d4988>] ? ttm_tt_populate+0x48/0x90 [ttm]                                                                 
 [<ffffffffa00d4a26>] ? ttm_tt_bind+0x56/0xa0 [ttm]                                                                     
 [<ffffffffa00d5230>] ? ttm_bo_handle_move_mem+0x1d0/0x430 [ttm]                                                        
 [<ffffffffa00d76d6>] ? ttm_bo_move_buffer+0x166/0x180 [ttm]                                                            
 [<ffffffffa00b9736>] ? drm_mm_kmalloc+0x26/0xc0 [drm]                                                                  
 [<ffffffff81030ea9>] ? get_parent_ip+0x9/0x20                                                                          
 [<ffffffffa00d7786>] ? ttm_bo_validate+0x96/0x130 [ttm]                                                                
 [<ffffffffa00d7b35>] ? ttm_bo_init+0x315/0x390 [ttm]                                                                   
 [<ffffffffa0122eb8>] ? radeon_bo_create+0x118/0x210 [radeon]                                                           
 [<ffffffffa0122fb0>] ? radeon_ttm_bo_destroy+0x0/0xb0 [radeon]                                                         
 [<ffffffffa013704c>] ? radeon_gem_object_create+0x8c/0x110 [radeon]                                                    
 [<ffffffffa013711f>] ? radeon_gem_create_ioctl+0x4f/0xe0 [radeon]                                                      
 [<ffffffffa00b10e6>] ? drm_ioctl+0x3d6/0x470 [drm]                                                                     
 [<ffffffffa01370d0>] ? radeon_gem_create_ioctl+0x0/0xe0 [radeon]                                                       
 [<ffffffff810b965f>] ? do_sync_read+0xbf/0x100                                                                         
 [<ffffffff810c8965>] ? vfs_ioctl+0x35/0xd0                                                                             
 [<ffffffff810c8b28>] ? do_vfs_ioctl+0x88/0x530                                                                         
 [<ffffffff81031ed7>] ? sub_preempt_count+0x87/0xb0                                                                     
 [<ffffffff810c9019>] ? sys_ioctl+0x49/0x80                                                                             
 [<ffffffff810ba4fe>] ? sys_read+0x4e/0x90                                                                              
 [<ffffffff810024ab>] ? system_call_fastpath+0x16/0x1b                                                                  
Mem-Info:                                                                                                               
DMA per-cpu:                                                                                                            
CPU    0: hi:    0, btch:   1 usd:   0                                                                                  
CPU    1: hi:    0, btch:   1 usd:   0                                                                                  
CPU    2: hi:    0, btch:   1 usd:   0                                                                                  
CPU    3: hi:    0, btch:   1 usd:   0                                                                                  
DMA32 per-cpu:                                                                                                          
CPU    0: hi:  186, btch:  31 usd: 156                                                                                  
CPU    1: hi:  186, btch:  31 usd: 164                                                                                  
CPU    2: hi:  186, btch:  31 usd: 192                                                                                  
CPU    3: hi:  186, btch:  31 usd: 175                                                                                  
Normal per-cpu:                                                                                                         
CPU    0: hi:  186, btch:  31 usd: 177                                                                                  
CPU    1: hi:  186, btch:  31 usd: 153                                                                                  
CPU    2: hi:  186, btch:  31 usd: 147                                                                                  
CPU    3: hi:  186, btch:  31 usd: 168                                                                                  
active_anon:248943 inactive_anon:70653 isolated_anon:0                                                                  
 active_file:231008 inactive_file:258837 isolated_file:0                                                                
 unevictable:1 dirty:5 writeback:0 unstable:0                                                                           
 free:5083 slab_reclaimable:53052 slab_unreclaimable:16244
 mapped:45401 shmem:4420 pagetables:6333 bounce:0
DMA free:13036kB min:28kB low:32kB high:40kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15704kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:8kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
lowmem_reserve[]: 0 3255 3760 3760
DMA32 free:5704kB min:6780kB low:8472kB high:10168kB active_anon:915704kB inactive_anon:184904kB active_file:789940kB inactive_file:901472kB unevictable:4kB isolated(anon):0kB isolated(file):0kB present:3333920kB mlocked:4kB dirty:4kB writeback:0kB mapped:114500kB shmem:17136kB slab_reclaimable:197620kB slab_unreclaimable:38500kB kernel_stack:776kB pagetables:12928kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 505 505
Normal free:1840kB min:1048kB low:1308kB high:1572kB active_anon:80068kB inactive_anon:97708kB active_file:134092kB inactive_file:133876kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:517120kB mlocked:0kB dirty:16kB writeback:0kB mapped:67104kB shmem:544kB slab_reclaimable:14588kB slab_unreclaimable:26468kB kernel_stack:1936kB pagetables:12404kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
DMA: 1*4kB 1*8kB 0*16kB 1*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 3*4096kB = 13036kB
DMA32: 200*4kB 10*8kB 1*16kB 0*32kB 1*64kB 1*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 1*4096kB = 5952kB
Normal: 232*4kB 2*8kB 0*16kB 2*32kB 3*64kB 1*128kB 2*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1840kB
494223 total pagecache pages
66 pages in swap cache
Swap cache stats: add 475, delete 409, find 6/7
Free swap  = 2094600kB
Total swap = 2096476kB
983024 pages RAM
33615 pages reserved
397983 pages shared
655130 pages non-shared
[TTM] Unable to allocate page.
radeon 0000:01:05.0: object_init failed for (7827456, 0x00000002)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (7827456, 2, 4096, -12)
SysRq : HELP : loglevel(0-9) reBoot Crash terminate-all-tasks(E) memory-full-oom-kill(F) kill-all-tasks(I) thaw-filesystems(J) saK show-backtrace-all-active-cpus(L) show-memory-usage(M) nice-all-RT-tasks(N) powerOff show-registers(P) show-all-timers(Q) unRaw Sync show-task-states(T) Unmount force-fb(V) show-blocked-tasks(W)
SysRq : HELP : loglevel(0-9) reBoot Crash terminate-all-tasks(E) memory-full-oom-kill(F) kill-all-tasks(I) thaw-filesystems(J) saK show-backtrace-all-active-cpus(L) show-memory-usage(M) nice-all-RT-tasks(N) powerOff show-registers(P) show-all-timers(Q) unRaw Sync show-task-states(T) Unmount force-fb(V) show-blocked-tasks(W)
SysRq : HELP : loglevel(0-9) reBoot Crash terminate-all-tasks(E) memory-full-oom-kill(F) kill-all-tasks(I) thaw-filesystems(J) saK show-backtrace-all-active-cpus(L) show-memory-usage(M) nice-all-RT-tasks(N) powerOff show-registers(P) show-all-timers(Q) unRaw Sync show-task-states(T) Unmount force-fb(V) show-blocked-tasks(W)
SysRq : HELP : loglevel(0-9) reBoot Crash terminate-all-tasks(E) memory-full-oom-kill(F) kill-all-tasks(I) thaw-filesystems(J) saK show-backtrace-all-active-cpus(L) show-memory-usage(M) nice-all-RT-tasks(N) powerOff show-registers(P) show-all-timers(Q) unRaw Sync show-task-states(T) Unmount force-fb(V) show-blocked-tasks(W)
SysRq : HELP : loglevel(0-9) reBoot Crash terminate-all-tasks(E) memory-full-oom-kill(F) kill-all-tasks(I) thaw-filesystems(J) saK show-backtrace-all-active-cpus(L) show-memory-usage(M) nice-all-RT-tasks(N) powerOff show-registers(P) show-all-timers(Q) unRaw Sync show-task-states(T) Unmount force-fb(V) show-blocked-tasks(W)
SysRq : HELP : loglevel(0-9) reBoot Crash terminate-all-tasks(E) memory-full-oom-kill(F) kill-all-tasks(I) thaw-filesystems(J) saK show-backtrace-all-active-cpus(L) show-memory-usage(M) nice-all-RT-tasks(N) powerOff show-registers(P) show-all-timers(Q) unRaw Sync show-task-states(T) Unmount force-fb(V) show-blocked-tasks(W)
Comment 1 Jerome Glisse 2010-06-15 09:20:14 UTC
Please attach full dmesg and output of lspci -v
Comment 2 Mikko C. 2010-06-15 09:25:36 UTC
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge Alternate
	Subsystem: ASUSTeK Computer Inc. Device 83a2
	Flags: bus master, 66MHz, medium devsel, latency 0
	Capabilities: [c4] HyperTransport: Slave or Primary Interface
	Capabilities: [54] HyperTransport: UnitID Clumping
	Capabilities: [40] HyperTransport: Retry Mode
	Capabilities: [9c] HyperTransport: #1a
	Capabilities: [f8] HyperTransport: #1c

00:01.0 PCI bridge: ASUSTeK Computer Inc. Device 9602 (prog-if 00 [Normal decode])
	Flags: bus master, 66MHz, medium devsel, latency 64
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
	I/O behind bridge: 0000c000-0000cfff
	Memory behind bridge: fe800000-fe9fffff
	Prefetchable memory behind bridge: 00000000d0000000-00000000dfffffff
	Capabilities: [44] HyperTransport: MSI Mapping Enable+ Fixed+
	Capabilities: [b0] Subsystem: ASUSTeK Computer Inc. Device 83a2

00:0a.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 5) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 0000d000-0000dfff
	Memory behind bridge: fea00000-feafffff
	Prefetchable memory behind bridge: 00000000fdf00000-00000000fdffffff
	Capabilities: [50] Power Management version 3
	Capabilities: [58] Express Root Port (Slot+), MSI 00
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [b0] Subsystem: ASUSTeK Computer Inc. Device 83a2
	Capabilities: [b8] HyperTransport: MSI Mapping Enable+ Fixed+
	Capabilities: [100] Vendor Specific Information <?>
	Capabilities: [110] Virtual Channel <?>
	Kernel driver in use: pcieport

00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA Controller [IDE mode] (prog-if 01 [AHCI 1.0])
	Subsystem: ASUSTeK Computer Inc. Device 8389
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 22
	I/O ports at b000 [size=8]
	I/O ports at a000 [size=4]
	I/O ports at 9000 [size=8]
	I/O ports at 8000 [size=4]
	I/O ports at 7000 [size=16]
	Memory at fe7ffc00 (32-bit, non-prefetchable) [size=1K]
	Capabilities: [60] Power Management version 2
	Capabilities: [70] SATA HBA <?>
	Kernel driver in use: ahci

00:12.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller (prog-if 10 [OHCI])
	Subsystem: ASUSTeK Computer Inc. Device 8389
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 16
	Memory at fe7fe000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ohci_hcd
	Kernel modules: ohci-hcd

00:12.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller (prog-if 10 [OHCI])
	Subsystem: ASUSTeK Computer Inc. Device 8389
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 16
	Memory at fe7fd000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ohci_hcd
	Kernel modules: ohci-hcd

00:12.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller (prog-if 20 [EHCI])
	Subsystem: ASUSTeK Computer Inc. Device 8389
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 17
	Memory at fe7ff800 (32-bit, non-prefetchable) [size=256]
	Capabilities: [c0] Power Management version 2
	Capabilities: [e4] Debug port: BAR=1 offset=00e0
	Kernel driver in use: ehci_hcd
	Kernel modules: ehci-hcd

00:13.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller (prog-if 10 [OHCI])
	Subsystem: ASUSTeK Computer Inc. Device 8389
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 18
	Memory at fe7fc000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ohci_hcd
	Kernel modules: ohci-hcd

00:13.1 USB Controller: ATI Technologies Inc SB700 USB OHCI1 Controller (prog-if 10 [OHCI])
	Subsystem: ASUSTeK Computer Inc. Device 8389
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 18
	Memory at fe7fb000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ohci_hcd
	Kernel modules: ohci-hcd

00:13.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller (prog-if 20 [EHCI])
	Subsystem: ASUSTeK Computer Inc. Device 8389
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 19
	Memory at fe7ff400 (32-bit, non-prefetchable) [size=256]
	Capabilities: [c0] Power Management version 2
	Capabilities: [e4] Debug port: BAR=1 offset=00e0
	Kernel driver in use: ehci_hcd
	Kernel modules: ehci-hcd

00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3c)
	Subsystem: ASUSTeK Computer Inc. Device 8389
	Flags: 66MHz, medium devsel
	Capabilities: [b0] HyperTransport: MSI Mapping Enable- Fixed+
	Kernel modules: i2c-piix4

00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller (prog-if 8a [Master SecP PriP])
	Subsystem: ASUSTeK Computer Inc. Device 8389
	Flags: bus master, 66MHz, medium devsel, latency 0
	I/O ports at 01f0 [size=8]
	I/O ports at 03f4 [size=1]
	I/O ports at 0170 [size=8]
	I/O ports at 0374 [size=1]
	I/O ports at ff00 [size=16]
	Capabilities: [70] MSI: Enable- Count=1/2 Maskable- 64bit-

00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
	Subsystem: ASUSTeK Computer Inc. Device 836c
	Flags: bus master, slow devsel, latency 64, IRQ 16
	Memory at fe7f4000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 2
	Kernel driver in use: HDA Intel
	Kernel modules: snd-hda-intel

00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller
	Subsystem: ASUSTeK Computer Inc. Device 8389
	Flags: bus master, 66MHz, medium devsel, latency 0

00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge (prog-if 01 [Subtractive decode])
	Flags: bus master, 66MHz, medium devsel, latency 64
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=64
	I/O behind bridge: 0000e000-0000efff
	Memory behind bridge: feb00000-febfffff

00:14.5 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI2 Controller (prog-if 10 [OHCI])
	Subsystem: ASUSTeK Computer Inc. Device 8389
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 18
	Memory at fe7fa000 (32-bit, non-prefetchable) [size=4K]
	Kernel driver in use: ohci_hcd
	Kernel modules: ohci-hcd

00:18.0 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] HyperTransport Configuration
	Flags: fast devsel
	Capabilities: [80] HyperTransport: Host or Secondary Interface

00:18.1 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] Address Map
	Flags: fast devsel

00:18.2 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] DRAM Controller
	Flags: fast devsel

00:18.3 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] Miscellaneous Control
	Flags: fast devsel
	Capabilities: [f0] Secure device <?>
	Kernel driver in use: k10temp
	Kernel modules: k10temp

00:18.4 Host bridge: Advanced Micro Devices [AMD] K10 [Opteron, Athlon64, Sempron] Link Control
	Flags: fast devsel

01:05.0 VGA compatible controller: ATI Technologies Inc Device 9710 (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Device 83a2
	Flags: bus master, fast devsel, latency 0, IRQ 18
	Memory at d0000000 (32-bit, prefetchable) [size=256M]
	I/O ports at c000 [size=256]
	Memory at fe9f0000 (32-bit, non-prefetchable) [size=64K]
	Memory at fe800000 (32-bit, non-prefetchable) [size=1M]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: [50] Power Management version 3
	Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
	Kernel driver in use: radeon
	Kernel modules: radeon

01:05.1 Audio device: ATI Technologies Inc Device 970f
	Subsystem: ASUSTeK Computer Inc. Device 83a2
	Flags: bus master, fast devsel, latency 0, IRQ 19
	Memory at fe9e8000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 3
	Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
	Kernel driver in use: HDA Intel
	Kernel modules: snd-hda-intel

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
	Subsystem: ASUSTeK Computer Inc. Device 83a3
	Flags: bus master, fast devsel, latency 0, IRQ 41
	I/O ports at d800 [size=256]
	Memory at fdfff000 (64-bit, prefetchable) [size=4K]
	Memory at fdff8000 (64-bit, prefetchable) [size=16K]
	Expansion ROM at feaf0000 [disabled] [size=64K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 01
	Capabilities: [ac] MSI-X: Enable- Count=4 Masked-
	Capabilities: [cc] Vital Product Data
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Virtual Channel <?>
	Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
	Kernel driver in use: r8169
	Kernel modules: r8169

03:08.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6306 Fire II IEEE 1394 OHCI Link Layer Controller (rev c0) (prog-if 10 [OHCI])
	Subsystem: ASUSTeK Computer Inc. Device 81fe
	Flags: bus master, medium devsel, latency 64, IRQ 10
	Memory at febff800 (32-bit, non-prefetchable) [size=2K]
	I/O ports at ec00 [size=128]
	Capabilities: [50] Power Management version 2
Comment 3 Mikko C. 2010-06-15 09:33:42 UTC
Created attachment 36297 [details]
/var/log/messages relevant part

/var/log/messages relevant part
Comment 4 Jerome Glisse 2010-06-15 09:47:19 UTC
Next time it happens please attach output of :
cat /proc/dri/0/gem_objects
Comment 5 Alex Deucher 2014-02-13 16:04:40 UTC
is this still an issue with a newer kernel?
Comment 6 Martin Peres 2019-11-19 08:13:37 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/135.

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.