https://bugs.freedesktop.org/show_bug.cgi?id=69694
Priority: medium Bug ID: 69694 Assignee: dri-devel@lists.freedesktop.org Summary: Xorg doesn't start on KABINi with radeonsi Severity: normal Classification: Unclassified OS: All Reporter: mpiazza@gmail.com Hardware: Other Status: NEW Version: git Component: Drivers/Gallium/radeonsi Product: Mesa
Created attachment 86336 --> https://bugs.freedesktop.org/attachment.cgi?id=86336&action=edit gdb trace on segfault
I bougth a brand new laptop with AMD APU A4-5000 (KABINI) which have two amd gpu (8330 integrated + 8550M dedicated).
I just tried to recompile everithing to make Xorg work with radeonsi.
At then end I have: 1)kernel 3.12-rc1 (with latest Alex Deucher 6 patches, the first is https://patchwork.kernel.org/patch/2922981/ dealing with clocks on SI); 2) libdrm git; 3) mesa git; 4) xf86-video-ati git; 5) glamor git; 6) Xserver git;
I cannot start Xorg (the screen goes black), but I can ssh into it a trace the segfault with gdb.
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #1 from Marco mpiazza@gmail.com --- Created attachment 86337 --> https://bugs.freedesktop.org/attachment.cgi?id=86337&action=edit xorg.conf
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #2 from Marco mpiazza@gmail.com --- Created attachment 86338 --> https://bugs.freedesktop.org/attachment.cgi?id=86338&action=edit Xorg.0.log
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #3 from Marco mpiazza@gmail.com --- Created attachment 86339 --> https://bugs.freedesktop.org/attachment.cgi?id=86339&action=edit dmesg log
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #4 from Alex Deucher agd5f@yahoo.com --- Can you try removing your xorg.conf?
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #5 from Marco mpiazza@gmail.com --- Removing xorg.conf leads to the same crash (trace is very similar).
Then I tried with this little xorg.conf (to load glamoregl)
Section "Module" Load "dri2" Load "glamoregl" Load "glx" EndSection
but result is always the same crash.
The only configuration with which I can start Xorg (but with llvmpipe renderer) is the xorg.conf attached.
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #6 from Marco mpiazza@gmail.com --- Created attachment 86422 --> https://bugs.freedesktop.org/attachment.cgi?id=86422&action=edit xorg.conf working (lead to llvmpipe render)
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #7 from Marco mpiazza@gmail.com --- Created attachment 86423 --> https://bugs.freedesktop.org/attachment.cgi?id=86423&action=edit Gdb trace whe uncommenting glamoregl
Uncommenting "glamoregl" in the working xorg.conf lead to crash described in the gdb attached.
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #8 from Marco mpiazza@gmail.com --- Looks terribly similar to: https://bugs.freedesktop.org/show_bug.cgi?id=69682
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #9 from Marco mpiazza@gmail.com --- But unfortunatly, commenting glx module doesn't solve my problem.
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #10 from Marco mpiazza@gmail.com --- Thinking on it twice and rebuilding new mesa from git I remember I had this notification during build: undefined symbol: _glapi_tls_Context
I will look into configure flags of both mesa and xserver (--enable-glx-tls) and let you know.
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #11 from Marco mpiazza@gmail.com --- All is compiled with --enable-glx-tls.
No more ideas... I'm attaching latest try with xorg.conf and backtrace.
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #12 from Marco mpiazza@gmail.com --- Created attachment 86481 --> https://bugs.freedesktop.org/attachment.cgi?id=86481&action=edit xorg.conf
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #13 from Marco mpiazza@gmail.com --- Created attachment 86482 --> https://bugs.freedesktop.org/attachment.cgi?id=86482&action=edit Backtrace of crash
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #14 from Marco mpiazza@gmail.com --- I found a workaround!
Disabling second GPU in xorg.conf let me enter in X with acceleration enabled:
marco@albireo:~$ glxinfo | grep -i opengl OpenGL vendor string: X.Org OpenGL renderer string: Gallium 0.4 on AMD KABINI OpenGL version string: 2.1 Mesa 9.3.0-devel OpenGL shading language version string: 1.30
Finally!!! And all is working fine.
Then the bug is related to having 2 GPU. At least now I can play games (with only one GPU).
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #15 from Marco mpiazza@gmail.com --- Created attachment 86601 --> https://bugs.freedesktop.org/attachment.cgi?id=86601&action=edit xorg.conf working with only one GPU (HD8330)
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #16 from Alex Deucher agd5f@yahoo.com --- Are you sure it doesn't work if you remvoe your xorg.conf completely? You don't need one and in most cases it causes more problems than it solves. Also you can remove this line: Virtual 5760 1920 from your config. Unless you are actually using a large virtual desktop, it just wastes memory.
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #17 from Marco mpiazza@gmail.com ---
Are you sure it doesn't work if you remvoe your xorg.conf completely?
Yes, I'm sure. Without a xorg.conf I only have a black screen with the cursor caret in the upper left corner.
I also tried disabling dpm (radeon.dpm=0) but the result is the same.
I think the problem is due to having two gpus under radeon driver and glamor.
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #18 from Michel Dänzer michel@daenzer.net --- Is this still an issue with current Mesa Git?
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #19 from Marco mpiazza@gmail.com --- Created attachment 94030 --> https://bugs.freedesktop.org/attachment.cgi?id=94030&action=edit Modified xorg.conf with two gpus
Yes, still an issue with: mesa git as of today; kernel 3.13.2 with VCE patches on top.
Without xorg.conf X doesn't come up: I only have a blank screen with caret cursor on upper left corner. Using a modified Xorg with the two cards now works: before it never worked.
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #20 from Marco mpiazza@gmail.com --- Created attachment 94031 --> https://bugs.freedesktop.org/attachment.cgi?id=94031&action=edit Xorg.log with previous xorg.conf
This is the log from xorg using previous xorg.conf.hybrid
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #21 from Marco mpiazza@gmail.com --- Created attachment 94032 --> https://bugs.freedesktop.org/attachment.cgi?id=94032&action=edit Dmesg for running kernel
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #22 from Marco mpiazza@gmail.com --- Tried yesterday mesa git: latest commit 1020d8937ef52725cc5adafc12465f6332815.
Now without xorg.conf and with xorg.conf.d with: Section "Module" Load "dri2" Load "glamoregl" EndSection
Xorg start without any problem.
marco@albireo:~/src/mesa.git$ glxinfo | grep -i opengl OpenGL vendor string: X.Org OpenGL renderer string: Gallium 0.4 on AMD KABINI OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.2.0-devel (git-1020d89) OpenGL core profile shading language version string: 3.30 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL core profile extensions: OpenGL version string: 3.0 Mesa 10.2.0-devel (git-1020d89) OpenGL shading language version string: 1.30 OpenGL context flags: (none) OpenGL extensions:
But... what about my second GPU? I was hoping to use it with DRI_PRIME but: xrandr --listproviders shows only Providers: number : 1 Provider 0: id: 0x54 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 2 outputs: 3 associated providers: 0 name:radeon
And what about render nodes? Will I be able to use second GPU as a render node?
Or this hybrid AMD GPU is considered as one and not two GPU?
For what concern this bug, You can now close it.
https://bugs.freedesktop.org/show_bug.cgi?id=69694
--- Comment #23 from Marco mpiazza@gmail.com --- Created attachment 94179 --> https://bugs.freedesktop.org/attachment.cgi?id=94179&action=edit Latest xorg.log without xorg.conf
https://bugs.freedesktop.org/show_bug.cgi?id=69694
Michel Dänzer michel@daenzer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #24 from Michel Dänzer michel@daenzer.net --- (In reply to comment #22)
Now without xorg.conf and with xorg.conf.d with: Section "Module" Load "dri2" Load "glamoregl" EndSection
Xorg start without any problem.
FWIW, the xorg.conf.d snippet shouldn't be necessary anymore either with xserver 1.15 or newer.
And what about render nodes? Will I be able to use second GPU as a render node?
You should be, but that doesn't help you for X.
Not sure why X is ignoring your second GPU, but I notice that you are using slightly outdated Git snapshots of xserver and xf86-video-ati. Can you try the latest releases or a current Git snapshot for those?
Or this hybrid AMD GPU is considered as one and not two GPU?
No.
For what concern this bug, You can now close it.
Doing so, BTW you can do this yourself. :)
dri-devel@lists.freedesktop.org