How to apply ACS Override patch (Kubuntu 18.10 & Kernel 4.18.16)

Update…got my replacement motherboard. Asrock Z97X Killer. Hoped no ACS patching needed but was wrong.
Anyway, I download the acso patch then manually recompiled the kernel following GaryBoltWolf’s old post here

I found a script on github someone had written to apply the patch and update the kernel it worked but I forgot to set the downstream so didn’t think it worked even though it did. You can find the script here

Anyway I manually applied recompiled the kernel on 4.15.18 because I was having one of those forgetful moments. From comments on the github, it seems the issue I was having is a common one with the acso pre-compiled kernels. Using the script or manually compiling yourself fixes this driver issue.

My other issue with the AMD gpu always being made to primary GPU seems to be both motherboard and kernel settings related. I think I had passed the nvida card to vfio initially but didn’t change all the settings back. Then of course the kernel would boot the AMDGPU driver before the vfio

Anyway, figured that out when after getting the new motherboard and reinstalling everything. I had to force amdgpu to stop loading before vfio following wendell’s post here

Now to figure out how to get the Vega 64 to stop the issue it has shutting down when you rebooting or power off the VM, so I don’t have to keep rebooting the entire system or leave the VM permanently on once booted