diff options
author | Jerome Glisse <[email protected]> | 2013-03-27 11:04:29 -0400 |
---|---|---|
committer | Jerome Glisse <[email protected]> | 2013-04-05 10:22:05 -0400 |
commit | b8998f976ee11e5bdffa78cd78278deeed2789c1 (patch) | |
tree | f1fdec4f496175d350133914b5890963d6ee3d5e /src/gallium/winsys/radeon/drm/Makefile.sources | |
parent | 5192262833c08903b0e27b991f4b9995c187a8ce (diff) |
winsys/radeon: add command stream replay dump for faulty lockup v3
Build time option, set RADEON_CS_DUMP_ON_LOCKUP to 1 in radeon_drm_cs.h to
enable it.
When enabled after each cs submission the code will try to detect lockup by
waiting on one of the buffer of the cs to become idle, after a timeout it
will consider that the cs triggered a lockup and will write a radeon_lockup.c
file in current directory that have all information for replaying the cs.
To build this file :
gcc -O0 -g radeon_lockup.c -ldrm -o radeon_lockup -I/usr/include/libdrm
v2: Add radeon_ctx.h file to mesa git tree
v3: Slightly improve dumped file for easier editing, only dump first faulty cs
Signed-off-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/winsys/radeon/drm/Makefile.sources')
-rw-r--r-- | src/gallium/winsys/radeon/drm/Makefile.sources | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/winsys/radeon/drm/Makefile.sources b/src/gallium/winsys/radeon/drm/Makefile.sources index 1d18d6164d5..4ca5ebb1b34 100644 --- a/src/gallium/winsys/radeon/drm/Makefile.sources +++ b/src/gallium/winsys/radeon/drm/Makefile.sources @@ -1,4 +1,5 @@ C_SOURCES := \ radeon_drm_bo.c \ radeon_drm_cs.c \ + radeon_drm_cs_dump.c \ radeon_drm_winsys.c |