New: amdgpu: mouse cursor flickers + black boxes
https://bugzilla.kernel.org/show_bug.cgi?id=108221
Bug ID: 108221
Summary: amdgpu: mouse cursor flickers + black boxes
Product: Drivers
Version: 2.5
Kernel Version: 4.3.0-7
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Video(DRI - non Intel)
Assignee: [email protected]
Reporter: [email protected]
Regression: NoFor kernel >= 4.3.0-3:
Mouse cursor constantly flickers and disappears. A black box stays on screen when clicking on some elements of the GNOME desktop.
More generally, there are problems with screen refresh.
The problem is present only since an update to the kernel 4.3.0-3, the first versions of 4.3.x were OK for me. Recent updates of the kernel and amdgpu did not help.
Details about hardware:
#/sbin/lspci -nnv | grep 'VGA' -A2
Flags: bus master, VGA palette snoop, 66MHz, medium devsel, latency 64
Bus: primary=00, secondary=03, subordinate=03, sec-latency=64
--
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Tonga PRO [Radeon R9 285/380] [1002:6939] (rev f1) (prog-if 00 [VGA controller])
Subsystem: XFX Pine Group Inc. Device [1682:9380]
Flags: bus master, fast devsel, latency 0, IRQ 38
# glxinfo name of display: :0 display: :0 screen: 0 direct rendering: Yes [...] OpenGL vendor string: X.Org OpenGL renderer string: Gallium 0.4 on AMD TONGA (DRM 3.1.0, LLVM 3.7.0) OpenGL core profile version string: 4.1 (Core Profile) Mesa 11.0.2 OpenGL core profile shading language version string: 4.10 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
https://bugzilla.kernel.org/show_bug.cgi?id=108221
Alex Deucher <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #1 from Alex Deucher <[email protected]> --- Can you bisect?
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=108221
Fred Santos <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Regression|No |Yes
--- Comment #2 from Fred Santos <[email protected]> --- I'm not familiar with git, but I can try to learn how to do that. I'll tell you!
For now, I just can say that the problem appears to have started with an update providing:
- Linux kernel 4.3.0-3
- xf86-video-amdgpu ~git20151105
- xf86-video-ati ~git201501122
everything being obtained on openSUSE repos.
(Sorry if this is only a very rough information.)
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=108221
--- Comment #3 from Michel Dänzer <[email protected]> --- FWIW, xf86-video-ati is irrelevant for Tonga.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=108221
Fred Santos <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Kernel Version|4.3.0-7 |>= 4.3.0-7
See Also| |https://bugzilla.opensuse.o
| |rg/show_bug.cgi?id=956181--- Comment #4 from Fred Santos <[email protected]> --- (Probably won't help much, but the problem is still present with kernel 4.4.0 and the latest version of amdgpu.
For the bug itself, I also forgot to mention that the mouse pointer leaves trails all over the screen.)
I also add a link to a bug submitted by someone else on bugzilla.opensuse.org, so the bug can be confirmed.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=108221
--- Comment #5 from Michel Dänzer <[email protected]> --- Please attach the Xorg log file and the output of xrandr when the problem occurs.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=108221
--- Comment #6 from Fred Santos <[email protected]> --- Created attachment 200361
--> https://bugzilla.kernel.org/attachment.cgi?id=200361&action=edit
Log: Xorg.0.log
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=108221
--- Comment #7 from Fred Santos <[email protected]> --- And here is the output of xrandr (the problem *always* and *constantly* occurs):
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384 DP-1 disconnected (normal left inverted right x axis y axis) HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
1920x1080 59.9*+ 60.0 50.0 59.9 1920x1080i 60.1 50.0 60.0 1600x1200 75.0 70.0 65.0 60.0 1680x1050 59.9 1400x1050 74.8 60.0 59.9 1280x1024 75.0 60.0 1440x900 59.9 1280x960 60.0 1152x864 75.0 1280x720 60.0 50.0 59.9 1440x576 50.0 1024x768 75.0 60.0 75.1 75.0 70.1 60.0 960x720 75.0 60.0 1440x480 60.0 59.9 928x696 75.0 60.1 896x672 75.0 60.0 832x624 74.6 800x600 75.0 70.0 65.0 60.0 72.2 75.0 60.3 56.2 720x576 50.0 720x576i 50.1 700x525 74.8 60.0 720x480 60.0 59.9 720x480i 60.1 60.1 640x512 75.0 60.0 640x480 60.0 75.0 72.8 72.8 75.0 66.7 60.0 59.9 720x400 70.1 576x432 75.0 512x384 75.0 70.1 60.0 416x312 74.7 400x300 72.2 75.1 60.3 56.3 320x240 72.8 75.0 60.1
DVI-D-1 disconnected (normal left inverted right x axis y axis) DVI-I-1 disconnected (normal left inverted right x axis y axis)
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=108221
--- Comment #8 from Michel Dänzer <[email protected]> ---
Looks like xf86-video-amdgpu wasn't installed correctly, so Xorg can't find it and uses the generic modesetting driver instead. Does the problem persist if you actually use xf86-video-amdgpu (preferably a newer snapshot than from last November)?
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=108221
--- Comment #9 from Fred Santos <[email protected]> --- Thanks for your answer.
Yes, the log is quite strange about that, since xf86-video-amdgpu is indeed installed, but doesn't seem to be found... (Is there a way to 'force' the use of amdgpu?)
Btw, the problem occurs even with a Live USB of the latest snapshot of openSUSE Tumbleweed for example (with kernel 4.4.0-2 too), so it should be easily reproducible by owners of Tonga GPUs.
(Well... I hope the problem is not openSUSE-specific...)
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=108221
--- Comment #10 from Michel Dänzer <[email protected]> --- (In reply to Fred Santos from comment #9)
Quoted 2 lines
Yes, the log is quite strange about that, since xf86-video-amdgpu is indeed installed, but doesn't seem to be found...
Maybe 10-amdgpu.conf isn't installed in /usr/share/X11/xorg.conf.d .
Quoted 1 line
(Is there a way to 'force' the use of amdgpu?)
Yes, you can force it in Section "Device" in /etc/X11/xorg.conf . If there is no such file yet, creating it with only something like this should work:
Section "Device"
Identifier "Device0"
Driver "amdgpu"
EndSection
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=108221
--- Comment #11 from Ondřej Súkup <[email protected]> --- Created attachment 200391
--> https://bugzilla.kernel.org/attachment.cgi?id=200391&action=edit
xorg.log on r9-380
with Xorg autodetection...
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=108221
--- Comment #12 from Ondřej Súkup <[email protected]> --- Created attachment 200401
--> https://bugzilla.kernel.org/attachment.cgi?id=200401&action=edit
xorg log r9-380
with /etc/X11/xorg.conf.d/10-amdgpu.conf
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=108221
--- Comment #13 from Michel Dänzer <[email protected]> --- (In reply to Fred Santos from comment #0)
Quoted 2 lines
The problem is present only since an update to the kernel 4.3.0-3, the first versions of 4.3.x were OK for me.
Can you find out what changed in 4.3.0-3 compared to the previous kernel you were using that worked OK?
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=108221
--- Comment #14 from Fred Santos <[email protected]> --- (In reply to Michel Dänzer from comment #10)
Quoted 10 lines
(In reply to Fred Santos from comment #9)
Quoted 1 line
(Is there a way to 'force' the use of amdgpu?)
Yes, you can force it in Section "Device" in
/etc/X11/xorg.conf. If there is no such file yet, creating it with only something like this should work:Section "Device"
Identifier "Device0"
Driver "amdgpu"
EndSection
I compiled and booted some old kernels, and here are my observations:
1. Even when booting with old kernels that should have worked fine (e.g., 4.2), the problem persists...
2. We found (Comment #10) that amdgpu was not found/activated during boot: when 'forcing' its use by creating this /etc/X11/xorg.conf file, everything is OK, with all kernels I have tested (4.4, 4.3, 4.2). To put it in a nutshell, no matter the kernel we use, we have the same behavior: it works if and only if we add this /etc/X11/xorg.conf file.
Maybe an Xorg autodetection problem that doesn't come from the kernel itself? (Is it possible?)
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 108221] amdgpu: mouse cursor flickers + black boxes
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=108221
--- Comment #15 from Michel Dänzer <[email protected]> --- (In reply to Fred Santos from comment #14)
Quoted 5 lines
2. We found (Comment #10) that amdgpu was not found/activated during boot:
when 'forcing' its use by creating this/etc/X11/xorg.conffile, everything is OK, with all kernels I have tested (4.4, 4.3, 4.2). To put it in a nutshell, no matter the kernel we use, we have the same behavior: it works if and only if we add this/etc/X11/xorg.conffile.
If /etc/X11/xorg.conf.d/10-amdgpu.conf / /usr/share/X11/xorg.conf.d/10-amdgpu.conf isn't enough, then it sounds like maybe the amdgpu kernel driver isn't loaded yet the first time Xorg starts up during boot.
Also, it sounds like there's a bug in the Xorg modesetting driver causing the artifacts you described.
Probably no kernel bug here though.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel