summaryrefslogtreecommitdiff
path: root/tools/intel_gpu_abrt
diff options
context:
space:
mode:
authorRodrigo Vivi <rodrigo.vivi@gmail.com>2012-12-13 14:11:22 -0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-12-13 18:15:32 +0100
commit616a4de567f574e42233b10d3546a3e1b5394e66 (patch)
tree3605fa591991194ac276588fa010bdbe15ef6366 /tools/intel_gpu_abrt
parent7150a04124ae151c3e917bbad03442cebaeaecd6 (diff)
tools: intel_gpu_abrt collecting more useful info
Diffstat (limited to 'tools/intel_gpu_abrt')
-rwxr-xr-xtools/intel_gpu_abrt12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/intel_gpu_abrt b/tools/intel_gpu_abrt
index b243a5f3..fe3684d1 100755
--- a/tools/intel_gpu_abrt
+++ b/tools/intel_gpu_abrt
@@ -8,6 +8,9 @@ get(){
cp -a ${@:1:$#-1} $tardir/${@:$#} 2>/dev/null
fi
}
+
+igtdir=`dirname $0`
+
if [ -d /debug/dri ] ; then
debugfs_path=/debug_dri
fi
@@ -38,6 +41,7 @@ get $i915_debugfs/* debugfs
get /sys/module/i915/parameters/* mod_opts
mkdir $tardir/X
+xrandr --verbose > $tardir/X/xrandr
get /var/log/Xorg.0.log X
get /var/log/Xorg.0.log.old X
get /etc/X11/xorg.conf X
@@ -46,6 +50,14 @@ get /etc/X11/xorg.conf.d/ X
dmesg > $tardir/dmesg
lspci -nn > $tardir/lspci
+$igtdir/intel_reg_dumper > $tardir/intel_reg_dumper.txt
+$igtdir/intel_bios_dumper $tardir/intel_bios_dump
+$igtdir/intel_stepping > $tardir/intel_stepping
+
+echo 1 > /sys/devices/pci0000:00/0000:00:02.0/rom
+cat /sys/devices/pci0000:00/0000:00:02.0/rom > $tardir/vbios.dump
+echo 0 > /sys/devices/pci0000:00/0000:00:02.0/rom
+
(cd $tmpdir; tar -c intel_gpu_abrt ) > intel_gpu_abrt.tar
rm $tmpdir -Rf