AMD Linux Graphics Driver Now Allows Display Support With Modern GPUs On LoongArch

Written by Michael Larabel in Radeon on 22 November 2024 at 12:11 PM EST. 5 Comments
RADEON
Following the Linux 6.13 DRM feature pull this week that brought many new open-source kernel graphics driver features, it's now time to further stabilize that new feature code with fixes. Sent out today were a batch of fixes for the AMDGPU/AMDKFD kernel driver code targeting the early Linux 6.13 state. In addition to fixes though is also allowing the AMDGPU Display Core "DC" code to build properly on LoongArch hardware for allowing recent AMD Radeon GPUs to work on these Chinese systems.

Similar to the change made to the AMDGPU driver several months back for DC display support on RISC-V hardware to be able to drive monitors on RISC-V systems with recent generations of Radeon GPUs, the AMDGPU driver now allows for DC use on LoongArch hardware.

This LoongArch AMDGPU DC support wasn't authored by AMD engineers but rather an open-source contribution from Loongson. Loongson engineer Huacai Chen commented on the patch just needing adjustments to the Kconfig:
"Clang on LoongArch (18+) appears to be unaffected by the bug causing excessive stack usage in calculate_bandwidth(). But when building DC_FP support the stack frame size can be as large as 2816 bytes, which causes the FRAME_WARN build warnings. So on LoongArch we allow building DC with clang, but disable DC_FP by default."

So for those wanting to drive a display on LoongArch hardware with an AMD Radeon GPU going back to the Vega days with the DC display engine, this support for compiling the DC code on LoongArch is on its way to the mainline kernel.

LoongArch graphic


The patch is part of this AMDGPU fixes pull that in turn should be appearing in the mainline Linux 6.13 kernel in the coming days.
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