News: 0001470557

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

"Rocket" Accelerator Open-Source Linux Kernel Driver Posted For Rockchip NPU

([Hardware] 86 Minutes Ago Rockchip NPU Driver)


The past few months open-source developer Tomeu Vizoso has been [1]developing an open-source accelerator driver for Rockchip's NPU . The experimental driver has shown [2]the open-source code can compete with Rockchip's proprietary driver and Vizoso has been working to develop [3]an upstream-minded driver for a kernel driver living within the "accel" subsystem and then leveraging Mesa's Teflon for the user-space component. Yesterday the "Rocket" accel kernel driver was posted for the Rockchip NPU.

Rocket is the Rockchip NPU kernel driver developed by Tomeu Vizoso that is now under review with the intent on getting it upstreamed into the mainline Linux kernel. The Rocket driver effort is currently focused on the neural processing unit (NPU) found within the Rorkcchip RK3588 SoC but ultimately should also become relevant to other newer Rockchip SoCs too.

[4]This patch series presents the initial 6,200 lines of code making up the Rocket kernel driver that is now out for review and discussion on its way toward the mainline kernel.

There is [5]this Mesa merge request for the user-space driver support for the Rockchip NPU. In current form with MobileNetV1 it delivers similar performance to the proprietary driver. That new Mesa driver is another 7.4k lines of code.

Tomeu posted on his [6]blog that the new kernel driver is "fully working" and has been recently polished up. He concluded the post with:

"This is the first accelerator-only driver for an edge NPU submitted to the mainline kernel, and hopefully it can serve as a template for the next ones to come, as the differences among NPUs of different vendors are relatively superficial."

Here's to hoping Rocket will be rocketing its way to the mainline kernel soon.



[1] https://www.phoronix.com/news/Open-Source-NPU-Rockchip-Starts

[2] https://www.phoronix.com/news/Rockchip-NPU-Early-Success

[3] https://www.phoronix.com/news/Rockchip-NPU-Driver-Success

[4] https://lore.kernel.org/lkml/20240612-6-10-rocket-v1-0-060e48eea250@tomeuvizoso.net/

[5] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29698

[6] https://blog.tomeuvizoso.net/2024/06/rockchip-npu-update-4-kernel-driver-for.html



raystriker

There is no statute of limitations on stupidity.