https://bugs.freedesktop.org/show_bug.cgi?id=75361
Priority: medium Bug ID: 75361 Assignee: dri-devel@lists.freedesktop.org Summary: freeze in Mass Effect 3 (wine) Severity: normal Classification: Unclassified OS: Linux (All) Reporter: idd997733t@gmail.com Hardware: x86 (IA32) Status: NEW Version: git Component: Drivers/Gallium/radeonsi Product: Mesa
Created attachment 94560 --> https://bugs.freedesktop.org/attachment.cgi?id=94560&action=edit R600_DEBUG=fs,vs,gs,ps,cs dump
Kernel:3.13.1/3.14_rc2 libdrm:git (21 february) mesa:git (21 february) llvm:svn (21 february) card: 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Pitcairn XT [Radeon HD 7870 GHz Edition]
R600_DEBUG=hyperz and R600_DEBUG=nohyperz no effect
Freeze in game. If use another video card (GF8800 on nouveau git) - work fine.
Need dump apitrace?
Let me know if you need further information.
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #1 from wdr idd997733t@gmail.com --- This my first bug. sorry attachment this tar.bz2 arhive
(sorry for my english)
https://bugs.freedesktop.org/show_bug.cgi?id=75361
Vladimir Ysikov grantipak@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #94560|text/plain |application/x-tar mime type| |
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #2 from Michel Dänzer michel@daenzer.net --- Please attach /var/log/Xorg.0.log and the output of glxinfo and dmesg.
What exactly are the symptoms? What does 'Завершено' mean at the end of the attachment?
(In reply to comment #2)
Need dump apitrace?
That might be useful.
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #3 from wdr idd997733t@gmail.com --- Created attachment 94650 --> https://bugs.freedesktop.org/attachment.cgi?id=94650&action=edit dmesg
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #4 from wdr idd997733t@gmail.com --- Created attachment 94651 --> https://bugs.freedesktop.org/attachment.cgi?id=94651&action=edit Xorg.0.log
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #5 from wdr idd997733t@gmail.com --- Created attachment 94652 --> https://bugs.freedesktop.org/attachment.cgi?id=94652&action=edit glxinfo
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #6 from wdr idd997733t@gmail.com --- In game menu work. Freeze on load after menu. Ctrl+Alt+F1 and kill MassEffect - work.
'Завершено' - 'Finished' - this output ok command kill MassEffect proccess (kill -9 "pid")
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #7 from wdr idd997733t@gmail.com --- apitrace dump (600Mb in tar.bz2 archive) https://bft.usu.edu/xkb8y
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #8 from Michel Dänzer michel@daenzer.net --- (In reply to comment #7)
apitrace dump (600Mb in tar.bz2 archive)
Does replaying this trace reproduce the problem on your system? It seems to play back fine without freeze here.
(In reply to comment #6)
In game menu work. Freeze on load after menu. Ctrl+Alt+F1 and kill MassEffect - work.
And the X session continues working fine after that? Does the MassEffect process hog the CPU during the freeze?
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #9 from wdr idd997733t@gmail.com --- apitrace replay freeze w at the end trace when obscure screen with ships and planet. Absolutely also as game. 100% reproducible After kill game process - Xorg 100% working.
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #10 from Michel Dänzer michel@daenzer.net --- (In reply to comment #9)
apitrace replay freeze w at the end trace when obscure screen with ships and planet. Absolutely also as game.
Hmm. I do see a little freeze at the end of the trace, but only for about three seconds, then it exits normally.
After kill game process - Xorg 100% working.
So, does the freezing process hog the CPU?
If you don't kill the freezing process, does it remain frozen forever, or does it recover or fail somehow after a while?
Can you attach gdb to the freezing process and get a backtrace? Probably best to attempt this from ssh, but switching to console and doing it from there might be fine as well.
Does it still happen with current LLVM SVN and Mesa Git? What configure options do you use for building LLVM and Mesa?
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #11 from wdr idd997733t@gmail.com --- I'm use gentoo x11 overlay for git mesa: [ebuild R #] media-libs/mesa-9999::x11 USE="debug egl gallium gbm gles2 llvm llvm-shared-libs nptl -bindist -classic -gles1 -opencl -openmax -openvg -osmesa -pax_kernel -pic -r600-llvm-compiler (-selinux) -vdpau -wayland -xa -xvmc" VIDEO_CARDS="radeon radeonsi (-freedreno) -i915 -i965 -ilo -intel -nouveau -r100 -r200 -r300 -r600 -vmware" 0 kB
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib --disable-silent-rules --disable-dependency-tracking --enable-dri --enable-glx --enable-shared-glapi --enable-texture-float --enable-debug --enable-egl --enable-gbm --disable-gles1 --enable-gles2 --enable-glx-tls --disable-osmesa --enable-asm --enable-llvm-shared-libs --with-dri-drivers= --with-gallium-drivers=,swrast,radeonsi,r300,r600 PYTHON2=/usr/bin/python2.7 --with-egl-platforms=x11,drm --enable-gallium-llvm --disable-openvg --disable-gallium-egl --disable-omx --disable-r600-llvm-compiler --disable-vdpau --disable-xa --disable-xvmc
[ebuild R *] sys-devel/llvm-9999:0/9999 USE="debug libffi static-analyzer xml -clang -doc -gold -multitarget -ncurses -ocaml -python {-test} -udis86" PYTHON_TARGETS="python2_7 -pypy2_0 -python2_6" VIDEO_CARDS="radeon" 0 kB
/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib --disable-timestamps --enable-keep-symbols --enable-shared --with-optimize-option= --disable-optimized --enable-assertions --enable-expensive-checks --disable-terminfo --enable-libffi ac_cv_prog_XML2CONFIG= --enable-targets=host,cpp,r600 --enable-bindings=none
If i do not kill the freezing process, it freeze forever. Cpu usage ~10%. i am use latest mesa git and latest llvm from svn (26 february)
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #12 from wdr idd997733t@gmail.com --- Created attachment 94775 --> https://bugs.freedesktop.org/attachment.cgi?id=94775&action=edit gdb backtrace
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #13 from Michel Dänzer michel@daenzer.net --- (In reply to comment #12)
Created attachment 94775 [details] gdb backtrace
Unfortunately, this backtrace is useless because it doesn't show any symbol names.
It might be easier to do this with glretrace than with Wine.
(In reply to comment #11)
--with-optimize-option= --disable-optimized --enable-expensive-checks
Does building LLVM without these options help, or maybe with --enable-optimized instead of them?
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #14 from wdr idd997733t@gmail.com --- I am build llvm with: /var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib --disable-timestamps --enable-keep-symbols --enable-shared --enable-optimized --enable-assertions --disable-terminfo --enable-libffi ac_cv_prog_XML2CONFIG= --enable-targets=host,cpp,r600 --enable-bindings=none
no effect
new apitrace trace (170 MB): https://bft.usu.edu/3hkhw
glretrace -w -v /tmp/me3_new.trace > tmp/me3 28591: warning: unsupported glXSwapIntervalMESA call 28929: warning: unsupported glXSwapIntervalMESA call 54241: warning: unsupported glXSwapIntervalMESA call 54579: warning: unsupported glXSwapIntervalMESA call 79891: warning: unsupported glXSwapIntervalMESA call 80229: warning: unsupported glXSwapIntervalMESA call 118028: warning: unsupported glXSwapIntervalMESA call 118366: warning: unsupported glXSwapIntervalMESA call 118704: warning: unsupported glXSwapIntervalMESA call 119060: warning: unsupported glXSwapIntervalMESA call 158337: warning: unsupported glXSwapIntervalMESA call 158675: warning: unsupported glXSwapIntervalMESA call apitrace: warning: caught signal 11 6523336: error: caught an unhandled exception apitrace: info: taking default action for signal 11 Ошибка сегментирования
it's correctly?
https://bugs.freedesktop.org/show_bug.cgi?id=75361
Michel Dänzer michel@daenzer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tstellar@gmail.com Depends on| |75276
--- Comment #15 from Michel Dänzer michel@daenzer.net --- (In reply to comment #14)
new apitrace trace (170 MB): https://bft.usu.edu/3hkhw
That runs into shader register allocation issues for me. Keep an eye on bug 75276, though right now the LLVM Git branch referenced there doesn't manage to replay your second apitrace yet.
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #16 from wdr idd997733t@gmail.com --- i am build llvm from http://cgit.freedesktop.org/~tstellar/llvm/log/?h=si-spill-fixes , and latest mesa-git
game also freeze.
output: /var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/lib/CodeGen/RegAllocGreedy.cpp:2096: unsigned int {anonymous}::RAGreedy::selectOrSplitImpl(llvm::LiveInterval&, llvm::SmallVectorImpl<unsigned int>&, {anonymous}::RAGreedy::SmallVirtRegSet&, unsigned int): Проверочное утверждение «NewVRegs.empty() && "Cannot append to existing NewVRegs"»
I like more help?
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #17 from Tom Stellard tstellar@gmail.com --- Can you try this LLVM patch: https://bugs.freedesktop.org/attachment.cgi?id=97522 Make sure you have latest LLVM and Mesa from git.
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #18 from Tom Stellard tstellar@gmail.com --- (In reply to comment #17)
That patch won't build try this instead: https://bugs.freedesktop.org/attachment.cgi?id=97539
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #19 from Michel Dänzer michel@daenzer.net --- (In reply to comment #18)
That patch won't build try this instead: https://bugs.freedesktop.org/attachment.cgi?id=97539
With that I get this from the apitrace referenced in comment #14:
LLVM triggered Diagnostic Handler: SIInstrInfo::storeRegToStackSlot - Can't spill VGPR! glretrace: /home/daenzer/src/llvm-git/llvm/include/llvm/CodeGen/SlotIndexes.h:572: llvm::SlotIndex llvm::SlotIndexes::insertMachineInstrInMaps(llvm::MachineInstr*, bool): Assertion `mi2iMap.find(mi) == mi2iMap.end() && "Instr already indexed."' failed.
--- Comment #20 from wdr idd997733t@gmail.com --- with mesa-git and llvm-git with/without patch game not start.
I'am find bad commit.
--- Comment #21 from Tom Stellard tstellar@gmail.com --- Can you test this branch:
http://cgit.freedesktop.org/~tstellar/llvm/log/?h=si-spill-fixes-v2
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #22 from Tom Stellard tstellar@gmail.com --- Updated v3 branch here: http://cgit.freedesktop.org/~tstellar/llvm/log/?h=si-spill-fixes-v3
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #23 from wdr idd997733t@gmail.com --- mesa-git + llvm (si-spill-fixes-v3) + kernel 3.14 = gpu hung
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #24 from wdr idd997733t@gmail.com --- Created attachment 98238 --> https://bugs.freedesktop.org/attachment.cgi?id=98238&action=edit dmesg wich errors
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #25 from wdr idd997733t@gmail.com --- Created attachment 98242 --> https://bugs.freedesktop.org/attachment.cgi?id=98242&action=edit mesa-git + llvm (si-spill-fixes-v3) + kernel 3.15-rc3 = gpu hung
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #26 from Tom Stellard tstellar@gmail.com --- Can you try this LLVM patch:
https://bugs.freedesktop.org/attachment.cgi?id=99169
https://bugs.freedesktop.org/show_bug.cgi?id=75361
Tom Stellard tstellar@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE
--- Comment #27 from Tom Stellard tstellar@gmail.com ---
*** This bug has been marked as a duplicate of bug 75276 ***
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #28 from wdr idd997733t@gmail.com ---
mesa-git + llvm-git (+0002-VER-5-emit-Error-when-attempting-to-spill-or-load-a-.patch) = no compile
mesa-git + llvm (si-spill-fixes-v4) + kernel 3.14.4 = gpu reset, xorg crash, ssh work
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #29 from wdr idd997733t@gmail.com --- Created attachment 99689 --> https://bugs.freedesktop.org/attachment.cgi?id=99689&action=edit Dmesg
https://bugs.freedesktop.org/show_bug.cgi?id=75361
--- Comment #30 from wdr idd997733t@gmail.com --- Created attachment 99690 --> https://bugs.freedesktop.org/attachment.cgi?id=99690&action=edit R600_DEBUG=fs,vs,gs,ps,cs dump + si-spill-fixes-v4
https://bugs.freedesktop.org/show_bug.cgi?id=75361 Bug 75361 depends on bug 75276, which changed state.
Bug 75276 Summary: Implement VGPR Register Spilling https://bugs.freedesktop.org/show_bug.cgi?id=75276
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
dri-devel@lists.freedesktop.org