Bug 93784 - Hybrid graphics: GPU lockup when running glxgears
Summary: Hybrid graphics: GPU lockup when running glxgears
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: 11.0
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-20 02:54 UTC by Nicolas Koch
Modified: 2019-09-25 17:53 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg output (14.70 KB, text/plain)
2016-01-20 02:54 UTC, Nicolas Koch
Details

Description Nicolas Koch 2016-01-20 02:54:31 UTC
Created attachment 121146 [details]
dmesg output

My laptop has the following discrete graphics card (lspci output):

0a:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun LE [Radeon HD 8550M / R5 M230] (rev ff)

When running glxgears (or any graphical application) with DRI_PRIME=1, the window appears but it stays just black (also it does not print any FPS in the console).

After starting glxgears the first time, the GPU locks up (see dmesg.txt).
Comment 1 Nicolas Koch 2016-01-20 03:00:53 UTC
I just noticed after failing glxgears, the radeonsi driver (or at least a kworker) eats up an entire CPU core of my machine until I reboot.
Comment 2 Alex Deucher 2016-01-20 14:29:51 UTC
Does booting with radeon.runpm=0 on the kernel command line in grub help?
Comment 3 Nicolas Koch 2016-01-20 15:05:35 UTC
No it doesn't :(

Additionally, here is my output of `glxinfo | grep -i renderer`:
OpenGL renderer string: Gallium 0.4 on AMD HAINAN (DRM 2.43.0, LLVM 3.7.0)
Comment 4 Nicolas Koch 2016-01-20 15:07:39 UTC
Forgot to mention, of course I ran glxinfo with DRI_PRIME=1
Comment 5 bartos.petr 2016-02-22 18:23:57 UTC
(In reply to Nicolas Koch from comment #4)
> Forgot to mention, of course I ran glxinfo with DRI_PRIME=1

Same problem here with ThinkPad L450

05:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Jet XT [Radeon R5 M240] (rev ff)

I found than setting both integrated and discrete gpu to DRI3 allows to run glxgears, however it hard-freezes once any gpu intensive application is run for more than few minutes. Using additional vblank_mode=0 causes this hard-freeze to appear faster. Before hard-freeze there is massive fps drop during which it is possible to kill the application and avoid freeze.

Also using

echo "DDIS" > /sys/kernel/debug/vgaswitcheroo/switch

and restarting X causes black screen (with backlight turned of) but that might be another bug
Comment 6 bartos.petr 2016-02-22 18:28:20 UTC
I'm on Mesa 11.1.0 (git-525f3c2). Happens with kernel 4.3.x and 4.4.x on Fedora 23
Comment 7 Nicolas Koch 2016-05-21 02:43:31 UTC
I could fix this problem by enabling DRI3 for the intel driver like this:

cat /etc/X11/xorg.conf.d/020-intel.conf

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "TearFree" "true"
   Option      "DRI" "3"
EndSection

No more GPU hangups and other funny stuff happening, at least glxgears works now (no more black screen).

It would be nice, if someone found out why this is behaving strange when only DRI2 is enabled, though.
Comment 8 GitLab Migration User 2019-09-25 17:53:58 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1228.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.