Bug#912397: xserver-xorg-video-amdgpu: Running web browser performance test crashes whole system on AMD RX 460

2018-10-31 Thread Michel Dänzer
On 2018-10-31 6:32 a.m., Will Brokenbourgh wrote:
> Package: xserver-xorg-video-amdgpu
> Version: 1.2.0-1+b1
> Severity: serious
> 
> Dear Maintainer,
> 
> When a web browser performance test was performed using the latest git 
> version of the surf browser
> it appears the 'xserver-xorg-vide-amdgpu' driver crashes the whole system, 
> [...]

This is more likely an issue in Mesa or the kernel. The Xorg driver
doesn't have any GPU specific code which could cause something like this
anymore.


-- 
Earthling Michel Dänzer   |   http://www.amd.com
Libre software enthusiast | Mesa and X developer



Bug#912397: xserver-xorg-video-amdgpu: Running web browser performance test crashes whole system on AMD RX 460

2018-10-30 Thread Will Brokenbourgh
Package: xserver-xorg-video-amdgpu
Version: 1.2.0-1+b1
Severity: serious

Dear Maintainer,

When a web browser performance test was performed using the latest git version 
of the surf browser
it appears the 'xserver-xorg-vide-amdgpu' driver crashes the whole system, 
resulting in the 
system usually hanging and the AMD RX 460 video adapter shutting off.  This is 
reproduceable.

How to reproduce:
* Have an AMD RX 460 video card functioning as the primary video adapter
* Clone the latest surf web browser: git clone https://git.suckless.org/surf
* Run `make` on the cloned code (install any missing dependencies then try 
again)
* Run the newly compiled surf browser from the cloned directory: `./surf 
browserbench.org`
* Run the 'MotionMark' performance test on the browserbench.org web page
* When the browser test begins the 'soft orbs/lights' part of the test, the 
screen turns off suddenly, 
   and it appears the system hangs.  3 out of 5 times after the crash the 
computer reboots but there is no video

Special condition:
When the 'firmware-amd-graphics' package is NOT installed, the crash does not 
happen.  I began to submit a 
bug report for that package when 'reportbug' advised me that the bug most 
likely isn't caused by a firmware
package so I canceled.

The same web browser performance test on Firefox and Chrome do not cause a 
crash.  No other crashes have happened 
except for this one specific case when 'surf' is used for the web performance 
test.

Log output:
AFTER the crash the system partition was mounted read-only from another Linux 
distro.  The Xorg.0.log, dmesg, 
kern.log, messages and other logs have absolutely *zero* messages about the 
crash itself.  All of the logs
show the proper startup and functioning of the system but no shut-down-related 
messages.

dmesg has this one error message during startup:
[8.179502] amdgpu :01:00.0: Invalid PCI ROM header signature: expecting 
0xaa55, got 0x

System summary:
* ASUS M5A78L-M PLUS/USB3 motherboard, BIOS 0502
* AMD FX-6300 six-core processor
* ASRock Radeon RX 460 video adapter
* 8 GB RAM

-- Package-specific info:
/etc/X11/X does not exist.
/etc/X11/X is not a symlink.
/etc/X11/X is not executable.

VGA-compatible devices on PCI bus:
--
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. 
[AMD/ATI] Baffin [Radeon RX 460] [1002:67ef] (rev e5)

/etc/X11/xorg.conf does not exist.

/etc/X11/xorg.conf.d does not exist.

/etc/modprobe.d contains no KMS configuration files.

Kernel version (/proc/version):
---
Linux version 4.9.0-8-amd64 (debian-ker...@lists.debian.org) (gcc version 6.3.0 
20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08)

Xorg X server log files on system:
--
-rw-r--r-- 1 will will 44859 Oct 29 18:09 
/home/will/.local/share/xorg/Xorg.0.log
-rw-r--r-- 1 root root 53007 Oct 30 21:52 /var/log/Xorg.0.log

Contents of most recent Xorg X server log file (/var/log/Xorg.0.log):
-
[12.804] 
X.Org X Server 1.19.2
Release Date: 2017-03-02
[12.805] X Protocol Version 11, Revision 0
[12.805] Build Operating System: Linux 4.9.0-8-amd64 x86_64 Debian
[12.805] Current Operating System: Linux debian 4.9.0-8-amd64 #1 SMP Debian 
4.9.110-3+deb9u6 (2018-10-08) x86_64
[12.805] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.9.0-8-amd64 
root=UUID=bed98052-ac8e-4b0a-8505-b58a2a1e36fe ro quiet
[12.805] Build Date: 25 October 2018  10:20:30AM
[12.805] xorg-server 2:1.19.2-1+deb9u4 (https://www.debian.org/support) 
[12.805] Current version of pixman: 0.34.0
[12.805]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[12.805] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[12.805] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Oct 30 21:51:50 
2018
[12.819] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[12.848] (==) No Layout section.  Using the first Screen section.
[12.849] (==) No screen section available. Using defaults.
[12.849] (**) |-->Screen "Default Screen Section" (0)
[12.849] (**) |   |-->Monitor ""
[12.849] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[12.849] (==) Automatically adding devices
[12.850] (==) Automatically enabling devices
[12.850] (==) Automatically adding GPU devices
[12.850] (==) Max clients allowed: 256, resource mask: 0x1f
[12.929] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[12.929]Entry deleted from font path.
[12.936] (==) FontPath set to:
/usr/share/fonts/X11/misc,