I had hoped to post a complete step by step for EndeavourOS (arch based distro), because I recently got an HD60 pro, I have been using a windows VM underlinux for more than a few years now, I only use windows for gaming at this point. I did build the kernel with the new patch, update grub, and can boot using the new kernel, but my entire machine still locks up whenever I try to passthrough this card (just as it did before trying this patch). Instead I will just show what I have done so far, most of the instruction came from here https://wiki.archlinux.org/title/Kernel/Arch_build_system:
sudo pacman -S devtools base-devel
mkdir ~/build/
cd ~/build/
pkgctl repo clone --protocol=https linux
cd ~/build/linux
sed -i 's/^pkgbase=linux/pkgbase=linux-hd60pro/' ~/build/linux/PKGBUILD
cp /media/storage/docs/hd60pro/hd60pro.patch ~/build/linux/src/
uname -r
# Edit the PKGBUILD (notice the two new hd60pro.patch lines):
prepare() {
cd $_srcname
echo "Setting version..."
echo "-$pkgrel" > localversion.10-pkgrel
echo "${pkgbase#linux}" > localversion.20-pkgname
echo "Applying patch hd60pro.patch..."
patch -Np1 -i ../src/hd60pro.patch
local src
# I had to add the folowing two keys or makepkg failed with unknown key.
gpg --recv-keys 38DBBDC86092693E
gpg --recv-keys 3B94A80E50A477C7
makepkg -s
# This is the feedback that it actually applied the patch:
==> Starting prepare()...
Setting version...
Applying patch hd60pro.patch...
patching file drivers/pci/quirks.c
Hunk #1 succeeded at 3765 with fuzz 2 (offset 642 lines).
patching file include/linux/pci_ids.h
Hunk #1 succeeded at 1806 (offset 39 lines).
Applying patch linux-v6.6.3-arch1.patch...
# Now install the newly created kernel and then update grub
sudo pacman -U linux-hd60pro-headers-6.6.3.arch1-1-x86_64.pkg.tar.zst linux-hd60pro-docs-6.6.3.arch1-1-x86_64.pkg.tar.zst linux-hd60pro-6.6.3.arch1-1-x86_64.pkg.tar.zst
sudo grub-mkconfig -o /boot/grub/grub.cfg
The only thing I can think to do is to try and find some debug info following the crash, but honestly linux is normally rock solid stable for me so I am not even sure where to look first, and I have limited time to try and figure this out. If I make any further progress I will be sure to revisit and update my post.