AMDKFD Kernel Compute Driver Used By ROCm Can Work On LoongArch Hardware
- Reference: 0001559257
- News link: https://www.phoronix.com/news/AMDKFD-LoongArch-Patch
- Source link:
Similar to what I pointed out a few weeks back of [3]AMDKFD coming to RISC-V systems , a similar patch has now been proposed for enabling AMDKFD / AMD HSA compute driver support for LoongArch CPU architecture systems.
Like with the recent RISC-V support and before that POWER 64-bit, the AMD kernel driver can compile easily on LoongArch too -- joining x86_64 and ARM64/AArch64 as the other supported architectures currently.
Just updating the "HSA_AMD" Kconfig dependencies to adding LoongArch is all that's needed for this kernel driver to build on LoongArch hardware. [4]This patch lays it out.
"KFD has been confirmed that can run on LoongArch systems.
It's necessary to support CONFIG_HSA_AMD on LoongArch."
Developer Han Gao didn't comment on the ROCm user-space software building for LoongArch, but given that it's already been built/tested on RISC-V and other architectures, is presumably working fine too on this MIPS/RISC-V inspired Chinese architecture.
This patch is currently under review but given that it's fairly straight-forward, it will presumably be picked up rather quickly by the kernel.
[1] https://www.phoronix.com/search/AMDKFD
[2] https://www.phoronix.com/search/ROCm
[3] https://www.phoronix.com/news/AMDKFD-RISC-V-Linux-6.16
[4] https://lists.freedesktop.org/archives/amd-gfx/2025-July/126998.html
uid313