Having a trouble getting ACS Override working on Ubuntu 18.04

Hello. I hate asking for help with things like this but i’m a little stuck.

I am attempting to install one of these pre built kernels https://queuecumber.gitlab.io/linux-acs-override/
So far i have tries the latest stable (4.19.11) and the latest mainline (4.12-rc7)
I have not found a lot of documentation related to installing these but it seems fairly simple, just install the 3 .deb files with dpkg, make the following change in /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on pcie_acs_override=downstream"
and run update-grub.

That all went fine but when i actually try to boot with the new kernel my system freezes half way through the boot process. Specifically rite here: https://ss.brandon3055.com/7ee2a

I have no idea how to troubleshoot this issue so i am hoping someone here can point me in the rite direction.

If it matters im running an I7-6700K in a Gigabyte Z170MX-Gaming 5 motherboard with a GTX 1080 as my primary GPU and a Radeon HD 7870 that i want to pass through to a VM if i can get acs override.

Thankyou.

Is your monitor plugged into the iGPU?

If so, try using intel_iommu=pt instead.

Additionally, have you tried ctrl+alt+f3 or so to switch to a pty and try to figure out what’s failing?

If you’re using your GTX 1080 for linux output, are you using nvidia proprietary drivers? If so, you might need to redo dkms installs. (I’m not 100% sure what kernel mod system Ubuntu uses for installing the nvidia modules)

I am using the 1080 with proprietary drivers. I just went back and tried switching to a different tty and after flickering between tty1 (the boot output) and tty2 for about a minute it finally settled on tty2 and i was able to login. While logged in I was also able to confirm that the ACS patch works (at least it split up my pci devices)
Now i just need to figure out why i cant boot into desktop.

I should probably also mention that before acs i also tried updating my kernel to 4.19.11 via ukuu and that worked fine, in fact im running it now. so whatever is causing this must be a some difference between 4.19.11 and 4.19.11-acso
I did notice the generic kernel version has some packages that acs does not but im not sure if that is the issue.
https://ss.brandon3055.com/925e2
https://ss.brandon3055.com/636e8

Im sorry if the solution from here is obvious. I have not had a lot of experience debugging linux issues. you mentioned i may need to redo dkms installs. Is that something i should look into now given this neew information?

Also not sure if its relevant but i noticed the boot froze at a different spot this time
https://ss.brandon3055.com/c6b74
(ignore the random characters at the bottom left. That was me attempting to login while tty was having a seizure)

I don’t know the answer to this. You’d have to inspect the packages and compare. You may have multiple packages combined into one in the case of the acs version.

FIrst thing’s first, you want to check to see if the 1080 is even using nvidia. To do that, run the following:

lspci -k | grep -A 5 1080

-A 5 telling grep to show 5 lines after it finds 1080, which is just your GPU.

lspci -k just enumerates your pci devices and shows the kernel module info.

If it says something like kernel driver in use: nvidia, you’re on nvidia proprietary, but if it says kernel driver in use: nouveau you’re on the open source variant.

If you’re not on nvidia, and are getting anything except the first case above, try the following:

Try the following to see how DKMS modules are configured:

sudo dkms status

Then you could do the following to rebuild and install all the kernel modules (including the ones needed by nvidia) to the currently running kernel:

sudo dkms autoinstall 

To specify a kernel, you can pass the above command -k <kernelversion>

You can get kernel version from uname -r


If your GPU is using nvidia, I really don’t know what’s going on and I will have to defer to someone who’s more familiar with Ubuntu than I am.

1 Like

Currently i get
Kernel driver in use: nvidia
but i assume i need to do all this while using the patched kernel?
If thats the case i will give it a try later and let you know how it goes. (i have run out of time to work on this atm)

Yes, that’s true. I was under the assumption you were still running the patched kernel, should have clarified.

I get that. I need to head off for the evening anyways. I’ll check back tomorrow though.

Ok so making progress… I was able to confirm that it is not using the nvidia kernel driver and
sudo dkms status shows that it is missing the driver for my patched kernel. But so far i have not had much luck with dkms autoinstall. First issue was an easy fix just a missing lib. But the next error i got was a little more confusing…
This is the make log: https://ss.brandon3055.com/4f15b
I also saved the output from the autoinstall command to a file because it contained something about the kernel version being unsupported but for some reason that part didnt end up in the file.

I will take another crack at this later. My next step (assuming no one posts a better idea in the mean time) will be to try with the latest stable kernel .19.11 (currently using .20-rc7) If that does not work i may try addressing the “Kernel configuration is invalid” error by downloading the source and running those commands ‘make oldconfig && make prepare’

Had problems myself back on 18.04 using the ACSO kernels.

The problem for me turned out to be gnome and gdm.
Solution was to purge ubuntu-desktop and gdm3 and reinstall them. Something to do with a buffer file or something that had problems running on a different kernel than the standard one.

Another problem I have run into with 18.04 and non-standard kernel is that the system tends to hang on, or not boot properly because of snapd. This works better with the snap core -beta channel, so you might wanna try that.

EDIT:
Judging by the second picture it hangs when starting GDM and Gnome so might very well be the issue with gnome and GDM.

Sounds like fun… I will look into that after i try the stable kernel version.
Now purging and reinstalling desktop and gdm… Sounds simple but i have a feeling its not. I will do some research but as it sounds like you have already done this exact thing. Anything in particular i need to watch out for? And what are the chances i may brick my install? (i would really rather avoid that)
And by brick i mean cause issues i with limited linux troubleshooting experience may not be able to fix.

It is very simple, and the chance of bricking your install should be quite small.

When you access the TTY2 after it stoppes, (you might have to be quite quick as I figure it’s jumping you back to TTY1 at a set interval) you type: sudo apt purge ubuntu-desktop. After you get it running it will finish even if it jumps you back to TTY1 so you should be able to just jump back and chech if it has worked. After this you need to reinstall with: sudo apt install gdm3 ubuntu-desktop.

This is what I did when I had a similar problem, and it solved the issue for me.

Sorry i never got back to you last nigh. Got a little distracted messing with my vm then suddenly it was 2am xD
Anyway i got ACS working. It was as simple as loading up the .19 kernel and running dkms autoinstall. That completed successfully so far it seems to be working fine.

Now i’m just having “fun” messing with my vm. Took meany hours but i think i finally have it working correctly. Had to ditch VM manager and do everything manually with a qemu script because of a BSOD when installing crimson drivers. The fix for that requires custom qemu launch arguments that i could not get working with VM manager. Unfortunately that also meant network bridging became a lot more complicated but i think i managed to work around that by passing though a usb Ethernet adaptor.

Anyway this is getting off topic so i will leave it here. Thankyou for all your help everyone!
All of this because i was bored and thought “Wouldnt it be fun to spend a day messing with looking glass”

1 Like