A Word Of Warning When Using AMDGPU-PRO On An Unsupported Kernel
Written by Michael Larabel in AMD on 14 November 2016 at 10:47 AM EST. 76 Comments
AMD --
The recent slowdowns seen with AMDGPU-PRO 16.40 on my test systems may be attributed to the Linux 4.8 kernel being not properly supported by this hybrid kernel driver.

After talking with John Bridgman last week, AMDGPU-PRO 16.40 is only intended to work with Linux 4.7 kernels and older while the official focus is on Linux 4.4 of Ubuntu 16.04. I had tested with Linux 4.8 since that's what I was using during the AMDGPU open-source testing as well as during my NVIDIA testing with its proprietary driver, which quickly supports new kernel versions.

But the strange thing is when testing on my 4.8 configuration, I don't recall seeing any DKMS errors when installing AMDGPU-PRO 16.40. I've encountered the AMDGPU-PRO 16.40 build problems previously when trying out too new of a kernel on some systems, but during this recent testing I don't recall encountering any problems, obviously otherwise would have reverted to an older kernel, and the 16.40 install process had succeeded.

Bridgman also explained that while the hybrid OpenGL and Vulkan driver components make use of ioctls not found in the mainline AMDGPU DRM code, they can still work albeit slower. One of the ioctls not present in the mainline AMDGPU code is for fencing used by the hybrid driver. So rather than having fences, the driver waits for timeouts. "We try to make them degrade rather than fail when running over the wrong kernel driver but that is not a release requirement."

No error messages are printed when this happens, but hopefully in a future AMDGPU-PRO update they will make it more clear when the unsupported combination is in use.

Last week I did run some AMDGPU-PRO vs. NVIDIA OpenCL benchmarks prior to finding out about the -PRO + 4.8 issue. So take those results worth a grain of salt, but actually the numbers aren't all that bad for AMDGPU-PRO and the issue seems to have greater impact on Vulkan and OpenGL. Anyhow, I'll have some fresh AMDGPU-PRO 16.40 benchmarks up shortly when falling back to Linux 4.4.

About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Related AMD News
Popular News