armbian / linux-rockchip

Improved Rockchip Linux
Other
99 stars 142 forks source link

Upgrade rknpu driver to 0.9.6 #169

Closed Pelochus closed 2 months ago

Pelochus commented 2 months ago

I was able to fix the issue https://github.com/armbian/linux-rockchip/issues/167 on my own. Tried to compile it, seems to work.

This driver version allows to run LLMs on RK3588 and similar chips. Check this out:

Pelochus commented 2 months ago

Just found out that one of my commits was already added:

https://github.com/armbian/linux-rockchip/pull/158/commits/404cb8d6baa8edbf5cbd03a5232b2e8f46ebfc8f

So I'm opening a new PR with just the one needed commit.

ginkage commented 2 months ago

FWIW, this commit is present in the kernel-6.1 branch in JeffyCN's mirrors: https://github.com/JeffyCN/mirrors/commit/8c61367c5731e5e0a53006f0e702274c7c2351c8 The second part (vm_flags) is present here: https://github.com/JeffyCN/mirrors/commit/9ced5e9ae99ca6ee7c59a030176de58dd54cd679 as well as here: https://github.com/armbian/linux-rockchip/commit/f3fb30ac9de06b41fb621d17bc53603f1f48ac90 It's probably better to rebase on top of https://github.com/JeffyCN/mirrors/releases/tag/kernel-6.1-2024_04_14 instead of cherry-picking this.