amshafer / nvidia-driver

Fork of the Nvidia FreeBSD driver to port the nvidia-drm.ko module from Linux
44 stars 5 forks source link

Panics with X.org #2

Closed arrowd closed 1 year ago

arrowd commented 1 year ago

When trying out nvidia-drm with X server I got following panics.

The first one is when I did not load i915kms at all:

20221125_083826

Then I first loaded nvidia-drm and then i915kms and got this:

20221125_084234

Finally, I first loaded i915kms and then nvidia-drm and it worked.

amshafer commented 1 year ago

Thanks, yes this reminds me of an issue with module load order that I thought I had solved. I'll take a look. Could you please include more info on the system? Most importantly FreeBSD and drm-kmod versions.

There's a nvidia-bug-report.sh tool that comes with the NVIDIA driver that will grab dmesg and other logs and bundle it up into a tarball, so if you feel comfortable sharing that it's an easy way to grab everything.

amshafer commented 1 year ago

Should be resolved as of the latest commit, could you please give that a try and reopen if you encounter more issues?

arrowd commented 1 year ago

Crashes are gone in both cases, however X also doesn't start in both cases. It now is unable to find appropriate video driver and bails out. sysctl hw.dri show that there is only hw.dri.0.nvidia-drm and no i915kms. kldunload nvidia-drm resulted in another panic.

Only when I loaded i915kms first and nvidia-drm second, I get both items in sysctl hw.dri. Not sure if this is worth reopening.

amshafer commented 1 year ago

X won't work without i915 loaded for sure. The intel GPU drives the internal display (eDP-1) and without it there's no way to present anything there. The order dependency you mention is odd, I didn't notice that even though I tried loading both ways, but I'll see if I can reproduce it.