Patches For AMD GPUs On Loongson Point To "Massive Platform Bug" For These Chinese CPUs

Written by Michael Larabel in Radeon on 18 June 2024 at 06:30 AM EDT. 17 Comments
RADEON
A set of patches were posted on Monday in aiming to get aging AMD Radeon GFX7/GFX8 era graphics processors working on Loongson LoongArch platforms. These patches for handling old Radeon Hawaii~Polaris GPUs on Loongson point to a "massive platform bug" with these domestic Chinese systems.

The patch series for the AMDGPU and Radeon kernel drivers aim to address GPU crashes seen with the older AMD Radeon graphics cards when running on Loongson systems.

The graphics driver changes were modifying a workaround for a cache flushing problem in turn confusing some hardware platforms. The patches were immediately rejected as they disable behavior needed by the driver for other platforms.

Old AMD graphics cards


The ensuing back and forth developer conversation on the mailing list led longtime AMD Linux engineer Christian König to sum things up as:
"Well then you have a massive platform bug.

Two consecutive writes to the same bus address are perfectly legal from the PCIe specification and can happen all the time, even without this specific hw workaround."

And further adding:
"Well to be honest on a platform where even two consecutive writes to the same location doesn't work I would have strong doubts that it is stable in general."

Further pointing to the fragile state of Loongson hardware are also other talked about workarounds like dropping the PCIe link speed from x16 to x8, tweaking the power management, or even upgrading the heatsink of the chipset.

This Loongson platform issue beyond GPUs could also point to potential other problems with network and storage I/O too.
Related News
About The Author
Michael Larabel

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 20,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, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week