[Bug 64801] KMS/R7xx - [drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation -12!

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Dec 23 16:23:55 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=64801

Marti <marti at juffo.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marti at juffo.org

--- Comment #15 from Marti <marti at juffo.org> ---
I have the same symptoms when playing Borderlands 2 in Wine with Radeon HD
5850; in certain scenes I see flickering between proper frames and
half-rendered frames, accompanied by the same "*ERROR* Failed to parse
relocation -12!" messages in dmesg.

Running up-to-date Arch Linux 64-bit, kernel 3.12.5, mesa 10.0.1, xorg-server
1.14.5, wine 1.7.9. 

Any extra info I can provide?

> Note that this is system memory that you've run out of (not vram).  The radeon
> kernel driver allocates system memory (kmalloc) for some structures that are
> used for processing the command buffers from the 3D driver.

I have 8GB of RAM; at the time of this occurring, only 3.4GB is shown as used
in htop (excluding cache); only 17MB of swap is used. My system is nowhere near
out of memory.

So there's definitely something else going on. Is it possible that it's making
unreasonably large allocation attempts? Out of low memory? Memory too
fragmented? Might it have something to do with the fact that the game process
is 32-bit and runs out of address space?

Here's the dmesg message I see repeated lots of times:

[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation -12!
Borderlands2.ex: page allocation failure: order:4, mode:0x10c0d0
CPU: 0 PID: 14584 Comm: Borderlands2.ex Tainted: G        W    3.12.5-1-ARCH #1
Hardware name: MSI MS-7758/B75A-G43 (MS-7758), BIOS V10.10 10/31/2013
 0000000000000000 ffff880149d7b8e8 ffffffff814ee44b 000000000010c0d0
 ffff880149d7b970 ffffffff8113ad20 0000004000000000 000000000000000e
 ffff88021dff1b38 ffff880149d7b940 0000000000200286 0000000000000003
Call Trace:
 [<ffffffff814ee44b>] dump_stack+0x54/0x8d
 [<ffffffff8113ad20>] warn_alloc_failed+0xf0/0x140
 [<ffffffff8113f244>] __alloc_pages_nodemask+0x924/0xaf0
 [<ffffffff8117eae9>] alloc_pages_current+0xa9/0x160
 [<ffffffff81139e8e>] __get_free_pages+0xe/0x50
 [<ffffffff8115740e>] kmalloc_order_trace+0x2e/0xe0
 [<ffffffff81189ae9>] __kmalloc+0x299/0x2b0
 [<ffffffffa0563d48>] ? radeon_cs_parser_init+0x178/0x630 [radeon]
 [<ffffffffa05643ba>] ? radeon_cs_ioctl+0xfa/0xa80 [radeon]
 [<ffffffffa05643e2>] radeon_cs_ioctl+0x122/0xa80 [radeon]
 [<ffffffffa048dc62>] drm_ioctl+0x502/0x630 [drm]
 [<ffffffff810cb329>] ? do_futex+0x109/0xad0
 [<ffffffffa05ff2b4>] radeon_kms_compat_ioctl+0x14/0x30 [radeon]
 [<ffffffff811f69f1>] compat_sys_ioctl+0xd1/0x11f0
 [<ffffffff810cc111>] ? compat_SyS_futex+0x71/0x140
 [<ffffffff811a531c>] ? SyS_write+0x7c/0xa0
 [<ffffffff814fecec>] sysenter_dispatch+0x7/0x21
Mem-Info:
Node 0 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
Node 0 DMA32 per-cpu:
CPU    0: hi:  186, btch:  31 usd:   0
CPU    1: hi:  186, btch:  31 usd:   0
CPU    2: hi:  186, btch:  31 usd:   0
CPU    3: hi:  186, btch:  31 usd:   0
Node 0 Normal per-cpu:
CPU    0: hi:  186, btch:  31 usd:   0
CPU    1: hi:  186, btch:  31 usd:   0
CPU    2: hi:  186, btch:  31 usd:   0
CPU    3: hi:  186, btch:  31 usd:   0
active_anon:583884 inactive_anon:256962 isolated_anon:0
 active_file:459645 inactive_file:408821 isolated_file:0
 unevictable:2049 dirty:21 writeback:0 unstable:0
 free:144530 slab_reclaimable:93632 slab_unreclaimable:11367
 mapped:154757 shmem:139273 pagetables:8318 bounce:0
 free_cma:0
Node 0 DMA free:15888kB min:132kB low:164kB high:196kB active_anon:0kB
inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB
isolated(anon):0kB isolated(file):0kB present:15992kB managed:15896kB
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
free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
lowmem_reserve[]: 0 3457 7904 7904
Node 0 DMA32 free:240444kB min:29504kB low:36880kB high:44256kB
active_anon:733544kB inactive_anon:433164kB active_file:957596kB
inactive_file:898608kB unevictable:2572kB isolated(anon):0kB isolated(file):0kB
present:3617604kB managed:3542944kB mlocked:2572kB dirty:12kB writeback:0kB
mapped:219596kB shmem:175872kB slab_reclaimable:177524kB
slab_unreclaimable:15700kB kernel_stack:1424kB pagetables:12800kB unstable:0kB
bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 4446 4446
Node 0 Normal free:321788kB min:37944kB low:47428kB high:56916kB
active_anon:1601992kB inactive_anon:594684kB active_file:880984kB
inactive_file:736676kB unevictable:5624kB isolated(anon):0kB isolated(file):0kB
present:4685824kB managed:4553488kB mlocked:5624kB dirty:72kB writeback:0kB
mapped:399432kB shmem:381220kB slab_reclaimable:197004kB
slab_unreclaimable:29760kB kernel_stack:2672kB pagetables:20472kB unstable:0kB
bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
Node 0 DMA: 2*4kB (U) 1*8kB (U) 2*16kB (U) 1*32kB (U) 1*64kB (U) 1*128kB (U)
1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (R) 3*4096kB (M) = 15888kB
Node 0 DMA32: 16271*4kB (UEMR) 12996*8kB (UE) 4462*16kB (UM) 0*32kB 0*64kB
0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 240444kB
Node 0 Normal: 4401*4kB (UEMR) 14780*8kB (UEM) 8793*16kB (UEM) 1423*32kB (UM)
0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 322068kB
Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0
hugepages_size=2048kB
1009606 total pagecache pages
968 pages in swap cache
Swap cache stats: add 7288, delete 6320, find 34844/35058
Free swap  = 4176772kB
Total swap = 4194300kB
2088959 pages RAM
60877 pages reserved
1045328 pages shared
1264617 pages non-shared

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131224/8d90a0b4/attachment-0001.html>


More information about the dri-devel mailing list