[Bug 86864] [rv6xx] RADEON_FLAG_GTT_WC causes GPU to reset when playing Second Life / other games

2016-01-29 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=86864

Michel D�nzer  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #11 from Michel D�nzer  ---
Fixed with current kernels.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 86864] [rv6xx] RADEON_FLAG_GTT_WC causes GPU to reset when playing Second Life / other games

2014-12-01 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=86864

--- Comment #10 from Shawn Starr  ---
Created attachment 110280
  --> https://bugs.freedesktop.org/attachment.cgi?id=110280=edit
Running threads listed

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 86864] [rv6xx] RADEON_FLAG_GTT_WC causes GPU to reset when playing Second Life / other games

2014-12-01 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=86864

--- Comment #9 from Michel Dänzer  ---
Unfortunately, the r600g helper thread doesn't set a distinctive thread name.
Please attach (as opposed to paste) the output of 'thread apply all bt' in gdb
when setting RADEON_THREAD=0.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 86864] [rv6xx] RADEON_FLAG_GTT_WC causes GPU to reset when playing Second Life / other games

2014-12-01 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=86864

--- Comment #8 from Shawn Starr  ---
With the environment variable set prior to X (in .bashrc). Running game with
gdb still locks up GPU.

No crash in game reported (break within gdb):

here is threads:


(gdb) info threads
  Id   Target Id Frame
  14   Thread 0x7fffe0602700 (LWP 1625) "do-not-directly" 0x0037a5cc491d in
nanosleep () from /lib64/libc.so.6
  13   Thread 0x7000f700 (LWP 1624) "do-not-directly" 0x0037a640c578 in
pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
  12   Thread 0x7fffe0e03700 (LWP 1623) "threaded-ml" 0x0037a5cf51dd in
poll () from /lib64/libc.so.6
  11   Thread 0x7fffc23a4700 (LWP 1621) "gdbus" 0x0037a5cf51dd in poll ()
from /lib64/libc.so.6
  10   Thread 0x7fffc2ba5700 (LWP 1620) "do-not-directly" 0x0037a5d00d83 in
epoll_wait () from /lib64/libc.so.6
  9Thread 0x7fffe27fc700 (LWP 1615) "do-not-directly" 0x0037a640c590 in
pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
  8Thread 0x7fffe2ffd700 (LWP 1614) "do-not-directly" 0x0037a640c590 in
pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
  7Thread 0x7fffe37fe700 (LWP 1613) "do-not-directly" 0x0037a640c590 in
pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
  6Thread 0x7fffe3fff700 (LWP 1612) "do-not-directly" 0x0037a640c590 in
pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
  5Thread 0x70b46700 (LWP 1611) "do-not-directly" 0x0037a640c590 in
pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
  4Thread 0x71347700 (LWP 1610) "do-not-directly" 0x0037a640f8fd in
nanosleep () from /lib64/libpthread.so.0
  3Thread 0x71b48700 (LWP 1609) "do-not-directly" 0x0037a640c590 in
pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib64/libpthread.so.0
  2Thread 0x72403700 (LWP 1583) "do-not-directly" 0x0037a640f8fd in
nanosleep () from /lib64/libpthread.so.0
* 1Thread 0x7270aa00 (LWP 1579) "do-not-directly" 0x0037a640f8fd in
nanosleep () from /lib64/libpthread.so.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 86864] [rv6xx] RADEON_FLAG_GTT_WC causes GPU to reset when playing Second Life / other games

2014-12-01 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=86864

--- Comment #7 from Shawn Starr  ---
Reverting patch does stop the lockup.

I will test RADEON_THREAD=0 and confirm w/ gdb running the game.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 86864] [rv6xx] RADEON_FLAG_GTT_WC causes GPU to reset when playing Second Life / other games

2014-12-01 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=86864

--- Comment #6 from Michel Dänzer  ---
So current Mesa Git master is still affected by this problem, and reverting
commit 7b4276d7acf2e0f77044cb50caa6ad936fa78786 on top of that works around it?

Does setting the environment variable RADEON_THREAD=0 work around the problem?
If not, please attach gdb to the Second Life process to make sure the
environment variable takes effect, i.e. there's no CS helper thread spawned by
the r600g driver.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 86864] [rv6xx] RADEON_FLAG_GTT_WC causes GPU to reset when playing Second Life / other games

2014-11-30 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=86864

--- Comment #5 from Shawn Starr  ---
Taking some suggestions to disable CP DMA: (R600_DEBUG=nocpdma):

GPU crashed hard:

[  540.397058] radeon :01:00.0: ring 0 stalled for more than 10066msec
[  540.403687] radeon :01:00.0: GPU lockup (waiting for 0x0001ddb1
last fence id 0x0001ddb0 on ring 0)
[  540.413226] radeon :01:00.0: failed to get a new IB (-35)
[  540.419088] [drm:radeon_cs_ib_fill] *ERROR* Failed to get ib !
[  540.642386] radeon :01:00.0: Saved 537 dwords of commands on ring 0.
[  540.648841] radeon :01:00.0: GPU softreset: 0x0008
[  540.65] radeon :01:00.0:   R_008010_GRBM_STATUS  = 0xA030
[  540.661829] radeon :01:00.0:   R_008014_GRBM_STATUS2 = 0x0003
[  540.667683] radeon :01:00.0:   R_000E50_SRBM_STATUS  = 0x20C0
[  540.674041] radeon :01:00.0:   R_008674_CP_STALLED_STAT1 = 0x
[  540.680737] radeon :01:00.0:   R_008678_CP_STALLED_STAT2 = 0x
[  540.687094] radeon :01:00.0:   R_00867C_CP_BUSY_STAT = 0x00020186
[  540.693250] radeon :01:00.0:   R_008680_CP_STAT  = 0x80028645
[  540.697631] radeon :01:00.0:   R_00D034_DMA_STATUS_REG   = 0x44C83D57
[  540.751932] radeon :01:00.0: R_008020_GRBM_SOFT_RESET=0x4001
[  540.754222] radeon :01:00.0: SRBM_SOFT_RESET=0x0100
[  540.759528] radeon :01:00.0:   R_008010_GRBM_STATUS  = 0xA0003030
[  540.761834] radeon :01:00.0:   R_008014_GRBM_STATUS2 = 0x0003
[  540.763420] radeon :01:00.0:   R_000E50_SRBM_STATUS  = 0x200080C0
[  540.765966] radeon :01:00.0:   R_008674_CP_STALLED_STAT1 = 0x
[  540.768397] radeon :01:00.0:   R_008678_CP_STALLED_STAT2 = 0x
[  540.770988] radeon :01:00.0:   R_00867C_CP_BUSY_STAT = 0x
[  540.773460] radeon :01:00.0:   R_008680_CP_STAT  = 0x8010
[  540.777015] radeon :01:00.0:   R_00D034_DMA_STATUS_REG   = 0x44C83D57
[  540.778511] radeon :01:00.0: GPU reset succeeded, trying to resume
[  540.784272] [drm] PCIE GART of 512M enabled (table at 0x0004).
[  540.786484] radeon :01:00.0: WB enabled
[  540.788382] radeon :01:00.0: fence driver on ring 0 use gpu addr
0x2c00 and cpu addr 0x88003603ec00
[  540.823636] [drm] ring test on 0 succeeded in 1 usecs
[  550.825064] radeon :01:00.0: ring 0 stalled for more than 1msec
[  550.830843] radeon :01:00.0: GPU lockup (waiting for 0x0001ddc2
last fence id 0x0001ddb1 on ring 0)
[  550.841797] [drm:r600_ib_test] *ERROR* radeon: fence wait failed (-35).
[  550.847294] [drm:radeon_ib_ring_tests] *ERROR* radeon: failed testing IB on
GFX ring (-35).
[  550.854825] radeon :01:00.0: ib ring test failed (-35).
[  551.074568] radeon :01:00.0: GPU softreset: 0x0009
[  551.080710] radeon :01:00.0:   R_008010_GRBM_STATUS  = 0xA2733030
[  551.087107] radeon :01:00.0:   R_008014_GRBM_STATUS2 = 0x0103
[  551.093704] radeon :01:00.0:   R_000E50_SRBM_STATUS  = 0x20C0
[  551.100378] radeon :01:00.0:   R_008674_CP_STALLED_STAT1 = 0x
[  551.106751] radeon :01:00.0:   R_008678_CP_STALLED_STAT2 = 0x8002
[  551.112612] radeon :01:00.0:   R_00867C_CP_BUSY_STAT = 0x8086
[  551.119845] radeon :01:00.0:   R_008680_CP_STAT  = 0x80018645
[  551.125381] radeon :01:00.0:   R_00D034_DMA_STATUS_REG   = 0x44C83D57
[  551.182032] radeon :01:00.0: R_008020_GRBM_SOFT_RESET=0x7FEF
[  551.187907] radeon :01:00.0: SRBM_SOFT_RESET=0x0100
[  551.194887] radeon :01:00.0:   R_008010_GRBM_STATUS  = 0xA0003030
[  551.202106] radeon :01:00.0:   R_008014_GRBM_STATUS2 = 0x0003
[  551.208302] radeon :01:00.0:   R_000E50_SRBM_STATUS  = 0x200080C0
[  551.214418] radeon :01:00.0:   R_008674_CP_STALLED_STAT1 = 0x
[  551.221656] radeon :01:00.0:   R_008678_CP_STALLED_STAT2 = 0x
[  551.227603] radeon :01:00.0:   R_00867C_CP_BUSY_STAT = 0x
[  551.233900] radeon :01:00.0:   R_008680_CP_STAT  = 0x8010
[  551.241368] radeon :01:00.0:   R_00D034_DMA_STATUS_REG   = 0x44C83D57
[  551.247877] radeon :01:00.0: GPU reset succeeded, trying to resume
[  551.256336] [drm] PCIE GART of 512M enabled (table at 0x0004).
[  551.261595] radeon :01:00.0: WB enabled
[  551.265559] radeon :01:00.0: fence driver on ring 0 use gpu addr
0x2c00 and cpu addr 0x88003603ec00
[  551.305998] [drm] ring test on 0 succeeded in 1 usecs
[  551.310130] [drm] ib test on ring 0 succeeded in 0 usecs
[  551.315154] switching from power state:
[  551.318241]  ui class: none
[  551.320942]  internal class: boot 
[  551.324177]  caps: video 
[  551.326370]  uvdvclk: 0 dclk: 0
[  551.329313]  power level 0sclk: 6 mclk: 7 vddc: 1100
[  551.334239]  power level 1sclk: 6 

[Bug 86864] [rv6xx] RADEON_FLAG_GTT_WC causes GPU to reset when playing Second Life / other games

2014-11-30 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=86864

--- Comment #4 from Shawn Starr  ---
Created attachment 110248
  --> https://bugs.freedesktop.org/attachment.cgi?id=110248=edit
kernel dmesg output

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 86864] [rv6xx] RADEON_FLAG_GTT_WC causes GPU to reset when playing Second Life / other games

2014-11-30 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=86864

--- Comment #3 from Shawn Starr  ---
Created attachment 110244
  --> https://bugs.freedesktop.org/attachment.cgi?id=110244=edit
lspci verbose output

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 86864] [rv6xx] RADEON_FLAG_GTT_WC causes GPU to reset when playing Second Life / other games

2014-11-30 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=86864

--- Comment #2 from Shawn Starr  ---
lspci outout of GPU:

01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc.
[AMD/ATI] RV635/M86 [Mobility Radeon HD 3650] [1002:9591] (prog-if 00 [VGA
controller])
Subsystem: Lenovo Device [17aa:2127]
Physical Slot: 1-1
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- 
Kernel driver in use: radeon
Kernel modules: radeon

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 86864] [rv6xx] RADEON_FLAG_GTT_WC causes GPU to reset when playing Second Life / other games

2014-11-30 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=86864

--- Comment #1 from Shawn Starr  ---
This is started from git master but bisect starts from:
73dd50acf6d244979c2a657906aa56d3ac60d550~1

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: 



[Bug 86864] [rv6xx] RADEON_FLAG_GTT_WC causes GPU to reset when playing Second Life / other games

2014-11-29 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=86864

Bug ID: 86864
   Summary: [rv6xx] RADEON_FLAG_GTT_WC causes GPU to reset when
playing Second Life / other games
   Product: Mesa
   Version: git
  Hardware: Other
OS: All
Status: NEW
  Severity: normal
  Priority: medium
 Component: Drivers/Gallium/r600
  Assignee: dri-devel at lists.freedesktop.org
  Reporter: shawn.starr at rogers.com

I've git bisected from git master and came up with this commit that causes GPU
to lock up (DRI driver locks up, I can ssh an reboot the laptop cleanly
however).

Kernel: 3.17.2-300.fc21.x86_64

[root at devbox mesa-20141127]# git bisect good
7b4276d7acf2e0f77044cb50caa6ad936fa78786 is the first bad commit
commit 7b4276d7acf2e0f77044cb50caa6ad936fa78786
Author: Michel Dänzer 
Date:   Tue Aug 26 18:21:50 2014 +0900

r600g,radeonsi: Always use GTT again for PIPE_USAGE_STREAM buffers

Putting those in VRAM can cause long pauses due to buffers being moved
into / out of VRAM.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84662
Cc: mesa-stable at lists.freedesktop.org
Reviewed-by: Alex Deucher 

:04 04 672dc7643603cfccc8b9c85c83f37db32c26beeb
8e4a9f33de638b7df98284614a0da3bb3373f320 M  src

With this reverted from this point back to Sept 7th, I have stability with the
r600g DRI driver.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-- next part --
An HTML attachment was scrubbed...
URL: