Kernel bug cause AMD Ryzen keyboard lag so I have to compile kernel myself

I've just bought a new laptop, Lenovo ThinkBook 13s Gen 4, which I think it's lightweight, with good performance (AMD Ryzen 7 6700u), last-long battery, and it's not too expensive.

There's a problem with keyboard, which at first, I think the laptop might have a defect from manufacturer but it only happen when I'm using on Linux. I was trying to plug external USB keyboard after I installed Linux and It's fine.

I search through internet and found this thread. Turns out it was a bug in linux kernel with new AMD Ryzen platform. Somebody who use Arch linux can apply patch by themselves but for me I use fedora so I have to find a way.

A patch has been submitted to mainline here and here. Right now, I think I just need to install kernel from the mainline.

I add Fedora Kernel Vanilla Repository and follow the instructions. I put these commands:

curl -s https://repos.fedorapeople.org/repos/thl/kernel-vanilla.repo | sudo tee /etc/yum.repos.d/kernel-vanilla.repo
sudo dnf --enablerepo=kernel-vanilla-mainline update

It installed kernel 5.19.0-65 but in this version, there was no new patch yet.

I look around to see if there's a repo or a way to install from latest git of kernel but I can't find any. So I decided to compile the kernel by myself from this guide.

sudo su
mkdir -p /usr/src/kernel/linux-next
cd /usr/src/kernel/linux-next
git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git .
make oldconfig
make bzImage
make modules
make modules_install
make install
reboot

The custom kernel build takes almost 2 hours and the problem was solved. I'm happy with Fedora 36 and this laptop.