Skip to contentSkip to conversation

New: Xorg doesn't start on KABINi with radeonsi

Bug 69694 [email protected] 1 participant 25 messages Sep 23, 2013 – Feb 17, 2014

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=69694

Priority: medium
Bug ID: 69694
Assignee: [email protected]
Summary: Xorg doesn't start on KABINi with radeonsi
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #1 from Marco <[email protected]> ---
Created attachment 86337
--> https://bugs.freedesktop.org/attachment.cgi?id=86337&action=edit
xorg.conf

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #2 from Marco <[email protected]> ---
Created attachment 86338
--> https://bugs.freedesktop.org/attachment.cgi?id=86338&action=edit
Xorg.0.log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #3 from Marco <[email protected]> ---
Created attachment 86339
--> https://bugs.freedesktop.org/attachment.cgi?id=86339&action=edit
dmesg log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #4 from Alex Deucher <[email protected]> --- Can you try removing your xorg.conf?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #5 from Marco <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #6 from Marco <[email protected]> ---
Created attachment 86422
--> https://bugs.freedesktop.org/attachment.cgi?id=86422&action=edit
xorg.conf working (lead to llvmpipe render)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #7 from Marco <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #8 from Marco <[email protected]> ---
Looks terribly similar to:
https://bugs.freedesktop.org/show_bug.cgi?id=69682

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #9 from Marco <[email protected]> ---
But unfortunatly, commenting glx module doesn't solve my problem.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #10 from Marco <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #11 from Marco <[email protected]> --- All is compiled with --enable-glx-tls.

No more ideas...
I'm attaching latest try with xorg.conf and backtrace.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #12 from Marco <[email protected]> ---
Created attachment 86481
--> https://bugs.freedesktop.org/attachment.cgi?id=86481&action=edit
xorg.conf

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #13 from Marco <[email protected]> ---
Created attachment 86482
--> https://bugs.freedesktop.org/attachment.cgi?id=86482&action=edit
Backtrace of crash

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #14 from Marco <[email protected]> --- 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).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #15 from Marco <[email protected]> ---
Created attachment 86601
--> https://bugs.freedesktop.org/attachment.cgi?id=86601&action=edit
xorg.conf working with only one GPU (HD8330)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #16 from Alex Deucher <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #17 from Marco <[email protected]> ---

Quoted 1 line

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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #18 from Michel Dänzer <[email protected]> --- Is this still an issue with current Mesa Git?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#19 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #19 from Marco <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#20 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #20 from Marco <[email protected]> ---
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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#21 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #21 from Marco <[email protected]> ---
Created attachment 94032
--> https://bugs.freedesktop.org/attachment.cgi?id=94032&action=edit
Dmesg for running kernel

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#22 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #22 from Marco <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#23 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

--- Comment #23 from Marco <[email protected]> ---
Created attachment 94179
--> https://bugs.freedesktop.org/attachment.cgi?id=94179&action=edit
Latest xorg.log without xorg.conf

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#24 lore raw

[Bug 69694] Xorg doesn't start on KABINi with radeonsi

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=69694

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

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

--- Comment #24 from Michel Dänzer <[email protected]> --- (In reply to comment #22)

Quoted 7 lines

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.

Quoted 2 lines

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?

Quoted 1 line

Or this hybrid AMD GPU is considered as one and not two GPU?

No.

Quoted 1 line

For what concern this bug, You can now close it.

Doing so, BTW you can do this yourself. :)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel