From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 92858] AMD Radeon GPU Acceleration Disabled Under Kernels 4.2.x and later versions Date: Sat, 07 Nov 2015 22:57:49 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1287905782==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 639216E1A0 for ; Sat, 7 Nov 2015 14:57:49 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1287905782== Content-Type: multipart/alternative; boundary="1446937069.dAF6A8B40.10827"; charset="UTF-8" --1446937069.dAF6A8B40.10827 Date: Sat, 7 Nov 2015 22:57:49 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=92858 Bug ID: 92858 Summary: AMD Radeon GPU Acceleration Disabled Under Kernels 4.2.x and later versions Product: DRI Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: major Priority: medium Component: DRM/Radeon Assignee: dri-devel@lists.freedesktop.org Reporter: ysxikrhn@vomoto.com Created attachment 119469 --> https://bugs.freedesktop.org/attachment.cgi?id=119469&action=edit dmesg_log_file_from_booting_kernel_4.3-rc7 I utilize an AMD Radeon 7770 (CAPE VERDE) GPU, which until kernel 4.2 and above, provided accelerated OpenGL as it was supposed to. As per http://xorg.freedesktop.org/wiki/RadeonFeature/, this is a Southern Islands card and should be utilizing the radeon drm module and the radeonsi dri driver. Although the computer still boots and the card initializes with kernels later than 4.1.x, but there is no 3d acceleration, or at least not via the GPU itself--the llvmpipe software rasterizer works but doesn't provide the OpenGL support nor speed that the radeonsi driver does. My computer is currently running Netrunner rolling (Manjaro based) and updated to the latest packages in the Manjaro repos. The installed graphics stack consists of mesa 11.0.4, libdrm 2.4.65, and xf86-video-ati 1:7.5.0-2. I initially noticed this bug and/or issue because Plasma/KF5 couldn't use OpenGL or OpenGLES acceleration under 4.2 and later kernels. This lead me to investigate why it didn't. I've confirmed the lack of hardware-accelerated OpenGL under kernels 4.2.x and later via glxifo. If I run it when I'm booted under kernel 4.1.12 or earlier, the output indicates the driver is providing openGL 4.1 core profile, OpenGL 3.0, and OpenGLES 3.0. If, however, I boot up any kernel 4.2 or higher, mesa uses the llvmpipe software rasterizer. If I boot kernel 4.3-rc7, which is the latest available under Manjaro as of today, the correct drm driver (radeon.ko) is being initialized as evidenced by: "1.906749] [drm] radeon kernel modesetting enabled" and "456843] fb: switching to radeondrmfb from VESA VGA" in the dmesg. The firmware is also being loaded, as per: "2.457304] [drm] Loading verde Microcode" However, later in the boot process something causes GPU acceleration to be disabled: 2.558871] [drm] radeon: irq initialized.[ 3.340560] [drm:r600_ring_test [radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD) [ 3.340564] radeon 0000:01:00.0: disabling GPU acceleration The section pasted above of the dmesg from kernel 4.3-rc-7 indicates the driver is failing on the "drm:r600_ringtest"...however, this is not a r600 card but a Southern Islands. Steps taken while attempting to resolve the issue: I'd initiallly thought it could be a firmware issue, with the linux-firmware package in the distro perhaps not having been updated to support the latest kernels, but even when I installed linux-firmware-git from the AUR to replace the standard linux-firmware package and then booted linux 4.3-rc7, mesa was still using llvmpipe instead of radeonsi, due to no GPU accel. I've also compiled the 4.3.0 kernel using the tarball directly from kernel.org, and a default kernel configuration file from ubuntu. When I booted into the 4.3.0 upstream kernel, GPU acceleration was still disabled. As neither the source nor the kernel config were from Manjaro, doesn't this rule out a distro bug and indicate the issue is upstream? -- You are receiving this mail because: You are the assignee for the bug. --1446937069.dAF6A8B40.10827 Date: Sat, 7 Nov 2015 22:57:49 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 92858
Summary AMD Radeon GPU Acceleration Disabled Under Kernels 4.2.x and later versions
Product DRI
Version unspecified
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity major
Priority medium
Component DRM/Radeon
Assignee dri-devel@lists.freedesktop.org
Reporter ysxikrhn@vomoto.com

Created attachment 119469 [details]
dmesg_log_file_from_booting_kernel_4.3-rc7

I utilize an AMD Radeon 7770 (CAPE VERDE) GPU, which until kernel 4.2 and
above, provided accelerated OpenGL as it was supposed to. As per
http://xorg.freedesktop.org/wiki/RadeonFeature/, this is a Southern Islands
card and should be utilizing the radeon drm module and the radeonsi dri driver.
Although the computer still boots and the card initializes with kernels later
than 4.1.x, but there is no 3d acceleration, or at least not via the GPU
itself--the llvmpipe software rasterizer works but doesn't provide the OpenGL
support nor speed that the radeonsi driver does.

My computer is currently running Netrunner rolling (Manjaro based) and updated
to the latest packages in the Manjaro repos. The installed graphics stack
consists of mesa 11.0.4, libdrm 2.4.65, and xf86-video-ati 1:7.5.0-2.

I initially noticed this bug and/or issue because Plasma/KF5 couldn't use
OpenGL or OpenGLES acceleration under 4.2 and later kernels. This lead me to
investigate why it didn't.

I've confirmed the lack of hardware-accelerated OpenGL under kernels 4.2.x and
later via glxifo. If I run it when I'm booted under kernel 4.1.12 or earlier,
the output indicates the driver is providing openGL 4.1 core profile, OpenGL
3.0, and OpenGLES 3.0. If, however, I boot up any kernel 4.2 or higher, mesa
uses the llvmpipe software rasterizer.

If I boot kernel 4.3-rc7, which is the latest available under Manjaro as of
today, the correct drm driver (radeon.ko) is being initialized as evidenced by:
"1.906749] [drm] radeon kernel modesetting enabled" and "456843] fb: switching
to radeondrmfb from VESA VGA" in the dmesg.

The firmware is also being loaded, as per:
"2.457304] [drm] Loading verde Microcode"

However, later in the boot process something causes GPU acceleration to be
disabled:
2.558871] [drm] radeon: irq initialized.[    3.340560] [drm:r600_ring_test
[radeon]] *ERROR* radeon: ring 0 test failed (scratch(0x850C)=0xCAFEDEAD)
[    3.340564] radeon 0000:01:00.0: disabling GPU acceleration

The section pasted above of the dmesg from kernel 4.3-rc-7 indicates the driver
is failing on the "drm:r600_ringtest"...however, this is not a r600 card but a
Southern Islands.

Steps taken while attempting to resolve the issue: I'd initiallly thought it
could be a firmware issue, with the linux-firmware package in the distro
perhaps not having been updated to support the latest kernels, but even when I
installed linux-firmware-git from the AUR to replace the standard
linux-firmware package and then booted linux 4.3-rc7, mesa was still using
llvmpipe instead of radeonsi, due to no GPU accel. I've also compiled the 4.3.0
kernel using the tarball directly from kernel.org, and a default kernel
configuration file from ubuntu. When I booted into the 4.3.0 upstream kernel,
GPU acceleration was still disabled. As neither the source nor the kernel
config were from Manjaro, doesn't this rule out a distro bug and indicate the
issue is upstream?


You are receiving this mail because:
  • You are the assignee for the bug.
--1446937069.dAF6A8B40.10827-- --===============1287905782== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1287905782==--