Skip to contentSkip to conversation

New: Xorg crash with ColorTiling2D patch (r600g)

Bug 45880 [email protected] 1 participant 10 messages Feb 10, 2012 – Feb 22, 2012

lore
Share & tools
lore
#0 lore raw

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

Bug #: 45880
Summary: Xorg crash with ColorTiling2D patch (r600g)
Classification: Unclassified
Product: Mesa
Version: git
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r600
AssignedTo: [email protected]
ReportedBy: [email protected]

Created attachment 56856
--> https://bugs.freedesktop.org/attachment.cgi?id=56856
log and config

linux kernel 3.3-rc3
amd 6950

Following the instruction at http://lists.freedesktop.org/archives/mesa-dev/2012-February/018658.html

patch applied to kernel 3.3-rc3 and compiled

Xorg crash when glxgears,, message shown:

Feb 10 08:12:44 earth kernel: [ 56.602042] BUG: unable to handle kernel paging request at ffffc90007986900
Feb 10 08:12:44 earth kernel: [ 56.602064] IP: [<ffffffff812b1aab>] memcpy+0xb/0x120
Feb 10 08:12:44 earth kernel: [ 56.602080] PGD 42e80f067 PUD 42e820067 PMD 42750d067 PTE 0
Feb 10 08:12:44 earth kernel: [ 56.602097] Oops: 0002 [#1] PREEMPT SMP
Feb 10 08:12:44 earth kernel: [ 56.602117] CPU 1
Feb 10 08:12:44 earth kernel: [ 56.602123] Modules linked in:
Feb 10 08:12:44 earth kernel: [ 56.602131]
Feb 10 08:12:44 earth kernel: [ 56.602136] Pid: 1102, comm: Xorg Not tainted 3.3.0-rc3-custom2 #1 System manufacturer System Product Name/P8Z68-V LE
Feb 10 08:12:44 earth kernel: [ 56.602162] RIP: 0010:[<ffffffff812b1aab>] [<ffffffff812b1aab>] memcpy+0xb/0x120
Feb 10 08:12:44 earth kernel: [ 56.602187] RSP: 0018:ffff8804261c7b30 EFLAGS: 00010202
Feb 10 08:12:44 earth kernel: [ 56.602199] RAX: ffffc90007986900 RBX: ffff880428dce680 RCX: 00000000000000eb
Feb 10 08:12:44 earth kernel: [ 56.602214] RDX: 0000000000000004 RSI: ffff880425c5c000 RDI: ffffc90007986900
Feb 10 08:12:44 earth kernel: [ 56.602229] RBP: ffff8804261c7b88 R08: 0000000000000000 R09: ffff88041193a800
Feb 10 08:12:44 earth kernel: [ 56.602244] R10: ffff88042e84ee28 R11: ffff88042e84edf8 R12: ffff8804261c7cc8
Feb 10 08:12:44 earth kernel: [ 56.602259] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
Feb 10 08:12:44 earth kernel: [ 56.602274] FS: 00007fb4d86d88a0(0000) GS:ffff88043f440000(0000) knlGS:0000000000000000
Feb 10 08:12:44 earth kernel: [ 56.602291] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Feb 10 08:12:44 earth kernel: [ 56.602304] CR2: ffffc90007986900 CR3: 0000000425e88000 CR4: 00000000000406e0
Feb 10 08:12:44 earth kernel: [ 56.602319] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Feb 10 08:12:44 earth kernel: [ 56.602334] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Feb 10 08:12:44 earth kernel: [ 56.602349] Process Xorg (pid: 1102, threadinfo ffff8804261c6000, task ffff8804259f4440)
Feb 10 08:12:44 earth kernel: [ 56.602366] Stack:
Feb 10 08:12:44 earth kernel: [ 56.602371] ffffffff813dc02b ffff880428dbc720 0000000000000003 000000000000075c
Feb 10 08:12:44 earth kernel: [ 56.602390] 0000000000000001 0000000000003286 ffff880428dce680 ffff8804261c7cc8
Feb 10 08:12:44 earth kernel: [ 56.602409] 0000000000000000 ffff88042e84f578 00000000fffffff4 ffff8804261c7bb8
Feb 10 08:12:44 earth kernel: [ 56.602428] Call Trace:
Feb 10 08:12:44 earth kernel: [ 56.602436] [<ffffffff813dc02b>] ? radeon_cs_update_pages+0xfb/0x130
Feb 10 08:12:44 earth kernel: [ 56.602452] [<ffffffff813d9883>] radeon_get_ib_value+0x53/0xd0
Feb 10 08:12:44 earth kernel: [ 56.602465] [<ffffffff8140f543>] evergreen_cs_packet_parse+0x43/0x160
Feb 10 08:12:44 earth kernel: [ 56.602480] [<ffffffff814131ae>] evergreen_cs_parse+0x2e/0x710
Feb 10 08:12:44 earth kernel: [ 56.602494] [<ffffffff813d9b95>] ? radeon_ib_get+0x1b5/0x2f0
Feb 10 08:12:44 earth kernel: [ 56.602506] [<ffffffff813dbd80>] radeon_cs_ioctl+0x350/0x500
Feb 10 08:12:44 earth kernel: [ 56.602520] [<ffffffff8137a4b4>] drm_ioctl+0x434/0x500
Feb 10 08:12:44 earth kernel: [ 56.602532] [<ffffffff813dba30>] ? radeon_cs_finish_pages+0xb0/0xb0
Feb 10 08:12:44 earth kernel: [ 56.602547] [<ffffffff817adfac>] ? do_page_fault+0x2ac/0x520
Feb 10 08:12:44 earth kernel: [ 56.602561] [<ffffffff81137f5e>] do_vfs_ioctl+0x8e/0x500
Feb 10 08:12:44 earth kernel: [ 56.602574] [<ffffffff810fd3ec>] ? sys_mmap_pgoff+0xdc/0x220
Feb 10 08:12:44 earth kernel: [ 56.602587] [<ffffffff81138461>] sys_ioctl+0x91/0xa0
Feb 10 08:12:44 earth kernel: [ 56.602599] [<ffffffff817b0622>] system_call_fastpath+0x16/0x1b
Feb 10 08:12:44 earth kernel: [ 56.602612] Code: 43 4e 48 83 c4 08 5b 5d c3 0f 1f 80 00 00 00 00 e8 8b fb ff ff eb e1 90 90 90 90 90 90 90 90 90 48 89 f8 89 d1
c1 e9 03 83 e2 07 <f3> 48 a5 89 d1 f3 a4 c3 20 48 83 ea 20 4c 8b 06 4c 8b 4e 08 4c
Feb 10 08:12:44 earth kernel: [ 56.602722] RIP [<ffffffff812b1aab>] memcpy+0xb/0x120
Feb 10 08:12:44 earth kernel: [ 56.602735] RSP <ffff8804261c7b30>
Feb 10 08:12:44 earth kernel: [ 56.602743] CR2: ffffc90007986900
Feb 10 08:12:44 earth kernel: [ 56.608340] ---[ end trace 284d340da3940897 ]---
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 45880] Xorg crash with ColorTiling2D patch (r600g)

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

--- Comment #1 from Andre Maasikas <[email protected]> 2012-02-10 09:11:37 PST --- Looks like a similar issue, if you could verify a workaround:

in mesa, src/gallium/winsys/radeon/drm/radeon_drm_winsys.c change all assignments of r600_virtual_address to FALSE ws->info.r600_virtual_address = FALSE;

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 45880] Xorg crash with ColorTiling2D patch (r600g)

In reply to [email protected]

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

--- Comment #3 from Jerome Glisse <[email protected]> 2012-02-14 12:54:39 PST --- I pushed a fix please confirm that it also works for you

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 45880] Xorg crash with ColorTiling2D patch (r600g)

In reply to [email protected]

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

--- Comment #4 from [email protected] 2012-02-15 14:14:36 UTC --- The patch partially work.

glxgears now work ok, but vmware (with 3d acceleration) cause Xorg crashed. (file "kern2.log" attached)

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 45880] Xorg crash with ColorTiling2D patch (r600g)

In reply to [email protected]

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

--- Comment #5 from [email protected] 2012-02-15 14:15:18 UTC --- Created attachment 57121
--> https://bugs.freedesktop.org/attachment.cgi?id=57121
crash log after fix applied

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 45880] Xorg crash with ColorTiling2D patch (r600g)

In reply to [email protected]

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

--- Comment #6 from Jerome Glisse <[email protected]> 2012-02-21 12:02:47 PST --- cayman fix pushed to mesa which should be enough on its own, kernel fix is in the pipe

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 45880] Xorg crash with ColorTiling2D patch (r600g)

In reply to [email protected]

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

--- Comment #7 from [email protected] 2012-02-21 15:52:03 PST --- (In reply to comment #6)

Quoted 2 lines

cayman fix pushed to mesa which should be enough on its own, kernel fix is in the pipe

sorry for my bad english, what is the meaning of "in the pipe"?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#8 lore raw

[Bug 45880] Xorg crash with ColorTiling2D patch (r600g)

In reply to [email protected]

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

--- Comment #8 from [email protected] 2012-02-22 04:51:39 PST --- (In reply to comment #6)

Quoted 2 lines

cayman fix pushed to mesa which should be enough on its own, kernel fix is in the pipe

The mesa patch is ok.

Do you want me to test the kernel fix too? If it is simply to apply, i can help.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#9 lore raw

[Bug 45880] Xorg crash with ColorTiling2D patch (r600g)

In reply to [email protected]

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

Jerome Glisse <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #9 from Jerome Glisse <[email protected]> 2012-02-22 09:48:02 PST --- No need to test the kernel patch. The kernel patch is just to fix the segfault issue in casse of lockup. The mesa patch is enough on its own for your issue.

Closing

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.