LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-26-2023, 01:05 PM   #1
UrbanDesimator
Member
 
Registered: Feb 2022
Posts: 35

Rep: Reputation: 6
Nvidia-470-kernel issues with kernel-6.6 and above


Nvidia kernel mod causing RIP's and Stack Traces on kernel-6.6 vanila and RT and above. Cured by replacing r8169 driver with r8168 version.

Bit of info I hope may help others on the nvidia-legacy470-kernel version 470.223.02 on kernel 6.6 and above.

The short answer (:-)) and my fix.
After finding it looked like issues with ASPM between r8169 and nvidia drivers after some experimentation I found by removing the r8169 driver and replacing it with r8168-8.052.01.tar.gz from https://github.com/mtorromeo/r8168.
And using thease module options in:
/lib/modprobe.d/r8168.conf
disable_wol_support=1 dynamic_aspm_packet_threshold=0 eee_enable=0 hwoptimize=1

It was only after trying different options that I added dynamic_aspm_packet_threshold=0 to the other 3 options that all the rips/stack traces stopped. I havent checked yet if only the dynamic_aspm*** option works on it's own or if it's the combination. Those options are not available with the r8169 driver. I am gouing to email the r8169 devs with my findings to see if they can determin if changes need to be made to there code or the option's re-enabled if present in there code.
Allways back up and settings or configs before making changes.
I hope this may help any one with similar issues.
UrbanMusic

Below more details of how I got to this fix.

I tried various patches and inttf-kernel-patcher.sh from,
https://nvidia.if-not-true-then-false.com/patcher/ and patches from github/slackbuilds. Nothing was curing the rips/stack traces some were RT related with scheduling while atomic others not related to RT kernel.
I tracked and traced the issue as they were happening sometimes a few minuets apart at most an hour. And found it looked like they were triggered by aspm and nvidia drivers apparent sensitivity to actions by other drivers to/with aspm.

I knew from experience that r8169 driver needed the pcie_aspm=force boot option to be able to disable aspm on my asus AMD sabertooth 990fx board. The nvidia driver wanted to have pcie_aspm=off boot option set which stopped the r8169 device working all together.

After much hunting and debuging my system and searching online I found no cure. opting for listing option's and trying each one.

The ./autorun.sh script in the r8168-8/052.02 pkg will take care of blacklisting the r8169 driver. If you find it doesn't help amd wish to change back blacklist the r8168 driver rename r8169 in /lib/modules/your kernel/kernel/drivers/net/realtek/r8169 to r8169.ko and the issue depmod -a you will then be able to load and use driver again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: NVIDIA 470.74 Graphics Driver Brings Support for Linux Kernel 5.14, Firefox Improvements LXer Syndicated Linux News 0 09-20-2021 04:15 PM
LXer: NVIDIA 470.57.02 Graphics Driver Brings Support for RTX 3070/80 Ti GPUs, DOOM Eternal Fixes LXer Syndicated Linux News 0 07-20-2021 05:51 AM
[SOLVED] Logitech MK 470 Combination Keyboard and Mouse pizzipie Linux - Hardware 10 09-17-2020 10:42 AM
Compiz Standalone: Some applications above "above"? Vinter Linux - Desktop 0 04-05-2014 04:44 PM
LAMP installation with apache(2.2 or above),php(5.1.4 or above)),mysql(4 or above) mobquest Linux - Newbie 2 08-31-2009 12:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration