bbswitch and nvidia taints kernel in debian 10

Getting your soundcard to work, using Debian on non-i386 hardware, etc

bbswitch and nvidia taints kernel in debian 10

Postby yetro69 » 2019-10-19 12:41

I have installed bumbleebee-nvidia and primus following the instructions of:

https://wiki.debian.org/Bumblebee

When I run "optirun glxgears" I obtain:

Code: Select all
user@debian-p:~$ optirun glxgears
[ 1091.417551] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

[ 1091.417575] [ERROR]Aborting because fallback start is disabled.



Looking dmesg i see:

Code: Select all
user@debian-p:~$ sudo dmesg -kl err,warn
[    0.011169] ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
[    0.011170] ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8)
[    0.661798] pmd_set_huge: Cannot satisfy [mem 0xf8000000-0xf8200000] with a huge-page mapping due to MTRR override.
[    1.086121] cgroup: cgroup2: unknown option "nsdelegate"
[    1.150736] systemd-tmpfile: 46 output lines suppressed due to ratelimiting
[    1.241228] aesni_intel: Unknown symbol ablk_decrypt (err 0)
[    1.241238] aesni_intel: Unknown symbol cryptd_alloc_aead (err 0)
[    1.241276] aesni_intel: Unknown symbol cryptd_aead_child (err 0)
[    1.241312] aesni_intel: Unknown symbol lrw_free_table (err 0)
[    1.241329] aesni_intel: Unknown symbol ablk_set_key (err 0)
[    1.241363] aesni_intel: Unknown symbol ablk_init (err 0)
[    1.241377] aesni_intel: Unknown symbol ablk_encrypt (err 0)
[    1.241381] aesni_intel: Unknown symbol ablk_init_common (err 0)
[    1.241463] aesni_intel: Unknown symbol cryptd_aead_queued (err 0)
[    1.241486] aesni_intel: Unknown symbol ablk_exit (err 0)
[    1.241549] aesni_intel: Unknown symbol lrw_init_table (err 0)
[    1.241577] aesni_intel: Unknown symbol cryptd_free_aead (err 0)
[    1.241593] aesni_intel: Unknown symbol glue_xts_crypt_128bit (err 0)
[    1.241607] aesni_intel: Unknown symbol lrw_crypt (err 0)
[    1.241643] aesni_intel: Unknown symbol glue_xts_crypt_128bit_one (err 0)
[    1.270479] aesni_intel: Unknown symbol ablk_decrypt (err 0)
[    1.270492] aesni_intel: Unknown symbol cryptd_alloc_aead (err 0)
[    1.270505] aesni_intel: Unknown symbol cryptd_aead_child (err 0)
[    1.270520] aesni_intel: Unknown symbol lrw_free_table (err 0)
[    1.270528] aesni_intel: Unknown symbol ablk_set_key (err 0)
[    1.270542] aesni_intel: Unknown symbol ablk_init (err 0)
[    1.270549] aesni_intel: Unknown symbol ablk_encrypt (err 0)
[    1.270553] aesni_intel: Unknown symbol ablk_init_common (err 0)
[    1.270564] aesni_intel: Unknown symbol cryptd_aead_queued (err 0)
[    1.270571] aesni_intel: Unknown symbol ablk_exit (err 0)
[    1.270591] aesni_intel: Unknown symbol lrw_init_table (err 0)
[    1.270600] aesni_intel: Unknown symbol cryptd_free_aead (err 0)
[    1.270607] aesni_intel: Unknown symbol glue_xts_crypt_128bit (err 0)
[    1.270617] aesni_intel: Unknown symbol lrw_crypt (err 0)
[    1.270635] aesni_intel: Unknown symbol glue_xts_crypt_128bit_one (err 0)
[    1.298435] aesni_intel: Unknown symbol ablk_decrypt (err 0)
[    1.298443] aesni_intel: Unknown symbol cryptd_alloc_aead (err 0)
[    1.298462] aesni_intel: Unknown symbol cryptd_aead_child (err 0)
[    1.298523] aesni_intel: Unknown symbol lrw_free_table (err 0)
[    1.298560] aesni_intel: Unknown symbol ablk_set_key (err 0)
[    1.298603] aesni_intel: Unknown symbol ablk_init (err 0)
[    1.298619] aesni_intel: Unknown symbol ablk_encrypt (err 0)
[    1.298628] aesni_intel: Unknown symbol ablk_init_common (err 0)
[    1.298655] aesni_intel: Unknown symbol cryptd_aead_queued (err 0)
[    1.298670] aesni_intel: Unknown symbol ablk_exit (err 0)
[    1.298739] aesni_intel: Unknown symbol lrw_init_table (err 0)
[    1.298767] aesni_intel: Unknown symbol cryptd_free_aead (err 0)
[    1.298784] aesni_intel: Unknown symbol glue_xts_crypt_128bit (err 0)
[    1.298801] aesni_intel: Unknown symbol lrw_crypt (err 0)
[    1.298850] aesni_intel: Unknown symbol glue_xts_crypt_128bit_one (err 0)
[    1.314352] aesni_intel: Unknown symbol ablk_decrypt (err 0)
[    1.314358] aesni_intel: Unknown symbol cryptd_alloc_aead (err 0)
[    1.314369] aesni_intel: Unknown symbol cryptd_aead_child (err 0)
[    1.314383] aesni_intel: Unknown symbol lrw_free_table (err 0)
[    1.314390] aesni_intel: Unknown symbol ablk_set_key (err 0)
[    1.314400] aesni_intel: Unknown symbol ablk_init (err 0)
[    1.314406] aesni_intel: Unknown symbol ablk_encrypt (err 0)
[    1.314409] aesni_intel: Unknown symbol ablk_init_common (err 0)
[    1.314417] aesni_intel: Unknown symbol cryptd_aead_queued (err 0)
[    1.314422] aesni_intel: Unknown symbol ablk_exit (err 0)
[    1.314485] aesni_intel: Unknown symbol lrw_init_table (err 0)
[    1.314492] aesni_intel: Unknown symbol cryptd_free_aead (err 0)
[    1.314496] aesni_intel: Unknown symbol glue_xts_crypt_128bit (err 0)
[    1.314501] aesni_intel: Unknown symbol lrw_crypt (err 0)
[    1.314510] aesni_intel: Unknown symbol glue_xts_crypt_128bit_one (err 0)
[    1.330402] aesni_intel: Unknown symbol ablk_decrypt (err 0)
[    1.330408] aesni_intel: Unknown symbol cryptd_alloc_aead (err 0)
[    1.330419] aesni_intel: Unknown symbol cryptd_aead_child (err 0)
[    1.330431] aesni_intel: Unknown symbol lrw_free_table (err 0)
[    1.330440] aesni_intel: Unknown symbol ablk_set_key (err 0)
[    1.330450] aesni_intel: Unknown symbol ablk_init (err 0)
[    1.330456] aesni_intel: Unknown symbol ablk_encrypt (err 0)
[    1.330459] aesni_intel: Unknown symbol ablk_init_common (err 0)
[    1.330499] aesni_intel: Unknown symbol cryptd_aead_queued (err 0)
[    1.330505] aesni_intel: Unknown symbol ablk_exit (err 0)
[    1.330523] aesni_intel: Unknown symbol lrw_init_table (err 0)
[    1.330530] aesni_intel: Unknown symbol cryptd_free_aead (err 0)
[    1.330535] aesni_intel: Unknown symbol glue_xts_crypt_128bit (err 0)
[    1.330542] aesni_intel: Unknown symbol lrw_crypt (err 0)
[    1.330556] aesni_intel: Unknown symbol glue_xts_crypt_128bit_one (err 0)
[    1.367425] aesni_intel: Unknown symbol ablk_decrypt (err 0)
[    1.367430] aesni_intel: Unknown symbol cryptd_alloc_aead (err 0)
[    1.367446] aesni_intel: Unknown symbol cryptd_aead_child (err 0)
[    1.367465] aesni_intel: Unknown symbol lrw_free_table (err 0)
[    1.367474] aesni_intel: Unknown symbol ablk_set_key (err 0)
[    1.367489] aesni_intel: Unknown symbol ablk_init (err 0)
[    1.367494] aesni_intel: Unknown symbol ablk_encrypt (err 0)
[    1.367498] aesni_intel: Unknown symbol ablk_init_common (err 0)
[    1.367509] aesni_intel: Unknown symbol cryptd_aead_queued (err 0)
[    1.367516] aesni_intel: Unknown symbol ablk_exit (err 0)
[    1.367544] aesni_intel: Unknown symbol lrw_init_table (err 0)
[    1.367555] aesni_intel: Unknown symbol cryptd_free_aead (err 0)
[    1.367562] aesni_intel: Unknown symbol glue_xts_crypt_128bit (err 0)
[    1.367570] aesni_intel: Unknown symbol lrw_crypt (err 0)
[    1.367591] aesni_intel: Unknown symbol glue_xts_crypt_128bit_one (err 0)
[    1.398494] aesni_intel: Unknown symbol ablk_decrypt (err 0)
[    1.398503] aesni_intel: Unknown symbol cryptd_alloc_aead (err 0)
[    1.398516] aesni_intel: Unknown symbol cryptd_aead_child (err 0)
[    1.398531] aesni_intel: Unknown symbol lrw_free_table (err 0)
[    1.398538] aesni_intel: Unknown symbol ablk_set_key (err 0)
[    1.398546] aesni_intel: Unknown symbol ablk_init (err 0)
[    1.398551] aesni_intel: Unknown symbol ablk_encrypt (err 0)
[    1.398553] aesni_intel: Unknown symbol ablk_init_common (err 0)
[    1.398559] aesni_intel: Unknown symbol cryptd_aead_queued (err 0)
[    1.398563] aesni_intel: Unknown symbol ablk_exit (err 0)
[    1.398578] aesni_intel: Unknown symbol lrw_init_table (err 0)
[    1.398584] aesni_intel: Unknown symbol cryptd_free_aead (err 0)
[    1.398590] aesni_intel: Unknown symbol glue_xts_crypt_128bit (err 0)
[    1.398595] aesni_intel: Unknown symbol lrw_crypt (err 0)
[    1.398604] aesni_intel: Unknown symbol glue_xts_crypt_128bit_one (err 0)
[    1.418544] aesni_intel: Unknown symbol ablk_decrypt (err 0)
[    1.418548] aesni_intel: Unknown symbol cryptd_alloc_aead (err 0)
[    1.418558] aesni_intel: Unknown symbol cryptd_aead_child (err 0)
[    1.418568] aesni_intel: Unknown symbol lrw_free_table (err 0)
[    1.418575] aesni_intel: Unknown symbol ablk_set_key (err 0)
[    1.418582] aesni_intel: Unknown symbol ablk_init (err 0)
[    1.418586] aesni_intel: Unknown symbol ablk_encrypt (err 0)
[    1.418589] aesni_intel: Unknown symbol ablk_init_common (err 0)
[    1.418595] aesni_intel: Unknown symbol cryptd_aead_queued (err 0)
[    1.418599] aesni_intel: Unknown symbol ablk_exit (err 0)
[    1.418645] aesni_intel: Unknown symbol lrw_init_table (err 0)
[    1.418650] aesni_intel: Unknown symbol cryptd_free_aead (err 0)
[    1.418654] aesni_intel: Unknown symbol glue_xts_crypt_128bit (err 0)
[    1.418657] aesni_intel: Unknown symbol lrw_crypt (err 0)
[    1.418665] aesni_intel: Unknown symbol glue_xts_crypt_128bit_one (err 0)
[    1.486094] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[    2.663873] ata6.00: supports DRM functions and may not be fully accessible
[    2.664304] ata6.00: NCQ Send/Recv Log not supported
[    2.664991] ata6.00: supports DRM functions and may not be fully accessible
[    2.665421] ata6.00: NCQ Send/Recv Log not supported
[    3.473092] aesni_intel: Unknown symbol ablk_decrypt (err 0)
[    3.473097] aesni_intel: Unknown symbol cryptd_alloc_aead (err 0)
[    3.473104] aesni_intel: Unknown symbol cryptd_aead_child (err 0)
[    3.473111] aesni_intel: Unknown symbol lrw_free_table (err 0)
[    3.473116] aesni_intel: Unknown symbol ablk_set_key (err 0)
[    3.473122] aesni_intel: Unknown symbol ablk_init (err 0)
[    3.473125] aesni_intel: Unknown symbol ablk_encrypt (err 0)
[    3.473127] aesni_intel: Unknown symbol ablk_init_common (err 0)
[    3.473132] aesni_intel: Unknown symbol cryptd_aead_queued (err 0)
[    3.473134] aesni_intel: Unknown symbol ablk_exit (err 0)
[    3.473144] aesni_intel: Unknown symbol lrw_init_table (err 0)
[    3.473149] aesni_intel: Unknown symbol cryptd_free_aead (err 0)
[    3.473152] aesni_intel: Unknown symbol glue_xts_crypt_128bit (err 0)
[    3.473156] aesni_intel: Unknown symbol lrw_crypt (err 0)
[    3.473162] aesni_intel: Unknown symbol glue_xts_crypt_128bit_one (err 0)
[    3.547565] systemd-tmpfile: 168 output lines suppressed due to ratelimiting
[    3.600957] systemctl: 1 output lines suppressed due to ratelimiting
[    3.604064] systemctl: 1 output lines suppressed due to ratelimiting
[    3.630700] systemctl: 1 output lines suppressed due to ratelimiting
[    3.679691] systemd-journal: 28 output lines suppressed due to ratelimiting
[    3.695529] systemd: 2060 output lines suppressed due to ratelimiting
[    3.867459] systemd-sysv-ge: 222 output lines suppressed due to ratelimiting
[    4.043754] systemd-sysuser: 63 output lines suppressed due to ratelimiting
[    4.060116] systemd-tmpfile: 212 output lines suppressed due to ratelimiting
[    4.228670] r8169 0000:04:00.1: can't disable ASPM; OS doesn't have ASPM control
[    5.520567] systemd-tmpfile: 453 output lines suppressed due to ratelimiting
[    5.729708] bbswitch: loading out-of-tree module taints kernel.
[    5.729792] module: bbswitch: Unknown rela relocation: 4
[    5.881226] nvidia: module license 'NVIDIA' taints kernel.
[    5.881227] Disabling lock debugging due to kernel taint
[    5.886502] module: nvidia: Unknown rela relocation: 4
[    7.282672] i801_smbus 0000:00:1f.3: BIOS is accessing SMBus registers
[    7.282673] i801_smbus 0000:00:1f.3: Driver SMBus register access inhibited
[   48.884982] systemd-timedat: 5 output lines suppressed due to ratelimiting
pablo@debian-p:~$ sudo dmesg -kl err
[    1.086121] cgroup: cgroup2: unknown option "nsdelegate"
[    5.729792] module: bbswitch: Unknown rela relocation: 4
[    5.886502] module: nvidia: Unknown rela relocation: 4



I have been looking for solutions for days and I couldn't find any solution for any of the warnings i have.

But the worst are the errors because i can't use my nvidia card:

Code: Select all
user@debian-p:~$ sudo dmesg -kl err
[    1.086121] cgroup: cgroup2: unknown option "nsdelegate"
[    5.729792] module: bbswitch: Unknown rela relocation: 4
[    5.886502] module: nvidia: Unknown rela relocation: 4
[ 1091.410951] module: nvidia: Unknown rela relocation: 4


I don't know if someone has the same problem. I have debian stable installed in a optimus laptop:
Code: Select all
user@debian-p:~$ uname -a
Linux debian-p 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 GNU/Linux

user@debian-p:~$  lspci -k | grep -EA2 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
   Subsystem: CLEVO/KAPOK Computer 4th Gen Core Processor Integrated Graphics Controller
   Kernel driver in use: i915
--
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
   Subsystem: CLEVO/KAPOK Computer GM107M [GeForce GTX 860M]
   Kernel modules: nvidia


A little help would be appreciated. Regards.
yetro69
 
Posts: 9
Joined: 2016-01-16 11:26

Re: bbswitch and nvidia taints kernel in debian 10

Postby yetro69 » 2019-10-19 14:05

Somebody in the chat makes me notice that I was using Debian 4.9.30-2+deb9u5, that is a stretch kernel.

I have installed manually linux-image-4.19.0-6-amd64 and know optirun works :D

But now, i don't know why aptitude doesn't upgrade the kernel automatically when i execute sudo aptitude updrade full-upgrade and dist-upgrade... any ideas ?

My sources.list is:
Code: Select all
deb http://security.debian.org/ stable/updates main contrib non-free
deb-src http://security.debian.org/ stable/updates main contrib non-free

deb http://ftp.es.debian.org/debian stable main contrib non-free
deb-src http://ftp.es.debian.org/debian stable main contrib non-free
 

deb http://ftp.es.debian.org/debian stable-updates main contrib non-free
deb-src http://ftp.es.debian.org/debian stable-updates main contrib non-free
yetro69
 
Posts: 9
Joined: 2016-01-16 11:26

Re: bbswitch and nvidia taints kernel in debian 10

Postby Head_on_a_Stick » 2019-10-19 14:53

yetro69 wrote:i don't know why aptitude doesn't upgrade the kernel automatically when i execute sudo aptitude updrade full-upgrade and dist-upgrade... any ideas ?

Do you have the kernel metapackage installed?
Code: Select all
apt policy linux-image-amd64

And comment out those deb-src lines (unless you're actually building patched packages) to save hitting the servers unnecessarily.
Don't break DebianHow to report bugs

SharpBang GNU/Linux — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10599
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: bbswitch and nvidia taints kernel in debian 10

Postby stevepusser » 2019-10-19 18:49

Also you should change where it says "stable" in your sources to "buster", unless you will enjoy a surprise, unplanned upgrade to bullseye when it goes stable, like so many others "enjoyed" when buster became stable.
Somebody in the chat makes me notice that I was using Debian 4.9.30-2+deb9u5, that is a stretch kernel.


And an outdated Stretch kernel to boot, which was been removed from the repos long ago, which makes me wonder if you got the headers installed before they were removed.

When you ran nvidia-detect on Buster, what version of the drivers did they say to install? Did you install the kernel headers successfully along with the compilers, which are not installed by default? There's now way you could have installed 4.9 headers on Buster, but maybe you had the 4.19 kernel by then.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Chromium 78.0.3904.87, Hedgewars 1.0.0, PulseEffects 4.6.8, Telegram-desktop 1.8.15, Pale Moon 28.7.2, KeepassXC 2.5.0
User avatar
stevepusser
 
Posts: 11231
Joined: 2009-10-06 05:53


Return to Hardware

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable