Bug 28490 - page allocation failure with 2.6.35-rc2
Summary: page allocation failure with 2.6.35-rc2
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Radeon (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-10 09:42 UTC by Octoploid
Modified: 2019-11-19 08:13 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (55.13 KB, patch)
2010-06-10 09:42 UTC, Octoploid
no flags Details | Splinter Review

Description Octoploid 2010-06-10 09:42:00 UTC
Created attachment 36203 [details] [review]
dmesg

I get sporadic page allocation failures running 2.6.35-rc2 
on a RS780 card.

e.g.:
X: page allocation failure. order:0, mode:0x4
Pid: 1758, comm: X Not tainted 2.6.35-rc2-00087-g2a933d5 #13
Call Trace:
 [<ffffffff810a9bde>] __alloc_pages_nodemask+0x577/0x604
 [<ffffffff810c29af>] ? __insert_vmap_area+0x78/0xc2
 [<ffffffff81222b85>] ttm_get_pages+0x77/0x36a
 [<ffffffff8121d1fd>] ? ttm_tt_create+0x107/0x164
 [<ffffffff8121caca>] __ttm_tt_get_page+0x4d/0xac
 [<ffffffff8121d083>] ttm_tt_populate+0x40/0x7a
 [<ffffffff8121d2c3>] ttm_tt_bind+0x36/0x85
 [<ffffffff8121e212>] ttm_bo_handle_move_mem+0xd3/0x266
 [<ffffffff8121f7c4>] ttm_bo_move_buffer+0xd5/0x121
 [<ffffffff81214aac>] ? drm_mm_kmalloc+0x28/0x131
 [<ffffffff8121f8c9>] ttm_bo_validate+0xb9/0xf6
 [<ffffffff8121fbc8>] ttm_bo_init+0x2c2/0x2fb
 [<ffffffff8124a855>] radeon_bo_create+0x159/0x214
 [<ffffffff8124a60e>] ? radeon_ttm_bo_destroy+0x0/0x69
 [<ffffffff8120e070>] ? drm_gem_object_init+0x63/0x87
 [<ffffffff8125b07a>] radeon_gem_object_create+0x7d/0xe1
 [<ffffffff8125b457>] radeon_gem_create_ioctl+0x4d/0xbe
 [<ffffffff8120cd11>] drm_ioctl+0x263/0x33f
 [<ffffffff8125b40a>] ? radeon_gem_create_ioctl+0x0/0xbe
 [<ffffffff81073a1c>] ? enqueue_hrtimer+0x9d/0xae
 [<ffffffff81074081>] ? __hrtimer_start_range_ns+0x2ef/0x301
 [<ffffffff810ddc8e>] vfs_ioctl+0x36/0xa7
 [<ffffffff810de5a5>] do_vfs_ioctl+0x421/0x454
 [<ffffffff810740c1>] ? hrtimer_start+0x18/0x1a
 [<ffffffff8105d9d4>] ? do_setitimer+0x160/0x1dd
 [<ffffffff810de61f>] sys_ioctl+0x47/0x6c
 [<ffffffff8102b93b>] 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: 184
CPU    1: hi:  186, btch:  31 usd: 207
CPU    2: hi:  186, btch:  31 usd: 156
CPU    3: hi:  186, btch:  31 usd: 167
Normal per-cpu:
CPU    0: hi:  186, btch:  31 usd: 158
CPU    1: hi:  186, btch:  31 usd: 166
CPU    2: hi:  186, btch:  31 usd: 136
CPU    3: hi:  186, btch:  31 usd:  85
active_anon:68281 inactive_anon:36019 isolated_anon:0
 active_file:259258 inactive_file:260126 isolated_file:0
 unevictable:0 dirty:527 writeback:0 unstable:0
 free:5337 slab_reclaimable:169598 slab_unreclaimable:4005
 mapped:22638 shmem:2867 pagetables:3365 bounce:0
DMA free:14044kB 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:15768kB 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 3510 4015 4015
DMA32 free:5560kB min:7072kB low:8840kB high:10608kB active_anon:205484kB inactive_anon:71004kB active_file:912492kB inactive_file:884600kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:3595040kB mlocked:0kB dirty:2104kB writeback:0kB mapped:53384kB shmem:11064kB slab_reclaimable:621156kB slab_unreclaimable:4432kB kernel_stack:264kB pagetables:6024kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:32 all_unreclaimable? no
lowmem_reserve[]: 0 0 505 505
Normal free:1744kB min:1016kB low:1268kB high:1524kB active_anon:67640kB inactive_anon:73072kB active_file:124540kB inactive_file:155904kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:517120kB mlocked:0kB dirty:4kB writeback:0kB mapped:37168kB shmem:404kB slab_reclaimable:57236kB slab_unreclaimable:11580kB kernel_stack:1288kB pagetables:7436kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
DMA: 1*4kB 1*8kB 1*16kB 0*32kB 1*64kB 1*128kB 0*256kB 1*512kB 1*1024kB 0*2048kB 3*4096kB = 14044kB
DMA32: 703*4kB 6*8kB 24*16kB 12*32kB 6*64kB 3*128kB 0*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 5932kB
Normal: 156*4kB 0*8kB 26*16kB 16*32kB 1*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1744kB
522260 total pagecache pages
25 pages in swap cache
Swap cache stats: add 118, delete 93, find 0/0
Free swap  = 200336kB
Total swap = 200808kB
1048575 pages RAM
35265 pages reserved
446505 pages shared
617774 pages non-shared
[TTM] Unable to allocate page.
radeon 0000:01:05.0: object_init failed for (7311360, 0x00000002)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (7311360, 2, 4096, -12)

full dmesg is attached.
Comment 1 Jerome Glisse 2010-06-15 09:47:36 UTC
Next time it happens please attach output of :
cat /proc/dri/0/gem_objects
Comment 2 Octoploid 2010-06-26 09:25:36 UTC
arch ~ # < /proc/dri/0/gem_objects
463 objects
56205312 object bytes
0 pinned
0 pin bytes
0 gtt bytes
0 gtt total

(however I ran this ~1h after the last incident, so I 
don't know how useful this is to you)

adeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
X: page allocation failure. order:0, mode:0x4
Pid: 1626, comm: X Not tainted 2.6.35-rc3-00044-gb7f65fa #1
Call Trace:
 [<ffffffff810aa0fa>] __alloc_pages_nodemask+0x577/0x604
 [<ffffffff810c2ecb>] ? __insert_vmap_area+0x78/0xc2
 [<ffffffff81222e81>] ttm_get_pages+0x77/0x36a
 [<ffffffff8121d4f9>] ? ttm_tt_create+0x107/0x164
 [<ffffffff8121cdc6>] __ttm_tt_get_page+0x4d/0xac
 [<ffffffff8121d37f>] ttm_tt_populate+0x40/0x7a
 [<ffffffff8121d5bf>] ttm_tt_bind+0x36/0x85
 [<ffffffff8121e50e>] ttm_bo_handle_move_mem+0xd3/0x266
 [<ffffffff8121fac0>] ttm_bo_move_buffer+0xd5/0x121
 [<ffffffff81214dac>] ? drm_mm_kmalloc+0x28/0x131
 [<ffffffff8121fbc5>] ttm_bo_validate+0xb9/0xf6
 [<ffffffff8121fec4>] ttm_bo_init+0x2c2/0x2fb
 [<ffffffff8124ab29>] radeon_bo_create+0x159/0x214
 [<ffffffff8124a8e2>] ? radeon_ttm_bo_destroy+0x0/0x69
 [<ffffffff8120e370>] ? drm_gem_object_init+0x63/0x87
 [<ffffffff8125b34e>] radeon_gem_object_create+0x7d/0xe1
 [<ffffffff8125b72b>] radeon_gem_create_ioctl+0x4d/0xbe
 [<ffffffff8120d011>] drm_ioctl+0x263/0x33f
 [<ffffffff8125b6de>] ? radeon_gem_create_ioctl+0x0/0xbe
 [<ffffffff810d1ba5>] ? do_sync_write+0xcb/0x108
 [<ffffffff810de1ae>] vfs_ioctl+0x36/0xa7
 [<ffffffff810deac5>] do_vfs_ioctl+0x421/0x454
 [<ffffffff810fc0e2>] ? inotify_dentry_parent_queue_event+0x10/0x86
 [<ffffffff810deb3f>] sys_ioctl+0x47/0x6c
 [<ffffffff8102b93b>] 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: 155
CPU    1: hi:  186, btch:  31 usd: 129
CPU    2: hi:  186, btch:  31 usd: 160
CPU    3: hi:  186, btch:  31 usd:  93
Normal per-cpu:
CPU    0: hi:  186, btch:  31 usd: 121
CPU    1: hi:  186, btch:  31 usd: 157
CPU    2: hi:  186, btch:  31 usd: 161
CPU    3: hi:  186, btch:  31 usd: 147
active_anon:95492 inactive_anon:25941 isolated_anon:0
 active_file:263764 inactive_file:284748 isolated_file:0
 unevictable:0 dirty:24 writeback:0 unstable:0
 free:5072 slab_reclaimable:236913 slab_unreclaimable:3974
 mapped:15012 shmem:66 pagetables:1704 bounce:0
DMA free:14056kB 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:15768kB 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 3510 4015 4015
DMA32 free:5296kB min:7072kB low:8840kB high:10608kB active_anon:356044kB inactive_anon:46108kB active_file:929908kB inactive_file:984748kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:3595040kB mlocked:0kB dirty:92kB writeback:0kB mapped:24544kB shmem:68kB slab_reclaimable:824648kB slab_unreclaimable:5608kB kernel_stack:160kB pagetables:2888kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:32 all_unreclaimable? no
lowmem_reserve[]: 0 0 505 505
Normal free:936kB min:1016kB low:1268kB high:1524kB active_anon:25924kB inactive_anon:57656kB active_file:125148kB inactive_file:154244kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:517120kB mlocked:0kB dirty:4kB writeback:0kB mapped:35504kB shmem:196kB slab_reclaimable:123004kB slab_unreclaimable:10280kB kernel_stack:1032kB pagetables:3928kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:100 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
DMA: 0*4kB 1*8kB 0*16kB 1*32kB 1*64kB 1*128kB 0*256kB 1*512kB 1*1024kB 0*2048kB 3*4096kB = 14056kB
DMA32: 172*4kB 1*8kB 4*16kB 2*32kB 1*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 1*4096kB = 5368kB
Normal: 44*4kB 19*8kB 14*16kB 7*32kB 1*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 968kB
548608 total pagecache pages
2 pages in swap cache
Swap cache stats: add 32, delete 30, find 0/0
Free swap  = 200680kB
Total swap = 200808kB
1048575 pages RAM
35265 pages reserved
385412 pages shared
637828 pages non-shared
[TTM] Unable to allocate page.
radeon 0000:01:05.0: object_init failed for (18333696, 0x00000002)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (18333696, 2, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
radeon 0000:01:05.0: object_init failed for (132329472, 0x00000004)
[drm:radeon_gem_object_create] *ERROR* Failed to allocate GEM object (132329472, 4, 4096, -12)
Comment 3 Martin Peres 2019-11-19 08:13:31 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/133.


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.