4.14.14 Kernel crashes - Ryzen System

Message
Author
User avatar
namida12
Posts: 437
Joined: Sun Apr 01, 2007 4:54 pm

4.14.14 Kernel crashes - Ryzen System

#1 Post by namida12 »

All Meltdown Patched Kernels crash this AntiX Ryzen system. I read someplace that AMD does not need meltdown patch. Is that the problem with the newer kernels and this system?

I can run the default Kernel and it never crashes, anything I download marked meltdown patched does not continue to run.


Code: Select all

$ inxi -F
System:    Host: antix250 Kernel: 4.10.5-antix.3-amd64-smp x86_64 bits: 64 Desktop: IceWM 1.4.2
           Distro: antiX-17_x64-full Heather Heyer 24 October 2017
Machine:   Device: laptop Mobo: MSI model: B350M GAMING PRO (MS-7A39) v: 1.0 serial: N/A
           UEFI [Legacy]: American Megatrends v: 2.30 date: 03/24/2017
CPU:       Quad core AMD Ryzen 5 1500X (-MT-MCP-) cache: 2048 KB
           clock speeds: max: 3500 MHz 1: 1550 MHz 2: 1550 MHz 3: 1550 MHz 4: 1550 MHz 5: 1550 MHz 6: 1550 MHz
           7: 1550 MHz 8: 1550 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] RV670 [Radeon HD 3690/3850]
           Display Server: X.Org 1.19.2 drivers: ati,radeon (unloaded: modesetting,fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: Gallium 0.4 on AMD RV670 (DRM 2.49.0 / 4.10.5-antix.3-amd64-smp, LLVM 3.9.1)
           version: 3.3 Mesa 13.0.6
Audio:     Card-1 Advanced Micro Devices [AMD] Device 1457 driver: snd_hda_intel
           Card-2 Advanced Micro Devices [AMD/ATI] RV670/680 HDMI Audio [Radeon HD 3690/3800 Series]
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.10.5-antix.3-amd64-smp
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: 18:d6:c7:06:f9:4a
Drives:    HDD Total Size: 250.1GB (42.9% used)
           ID-1: /dev/sda model: Samsung_SSD_850 size: 250.1GB
Partition: ID-1: / size: 14G used: 6.9G (53%) fs: ext4 dev: /dev/sda1
           ID-2: /home size: 206G used: 90G (46%) fs: ext4 dev: /dev/sda3
           ID-3: swap-1 size: 4.29GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
Sensors:   System Temperatures: cpu: No active sensors found. Have you configured your sensors yet? mobo: N/A gpu: 84.0
Info:      Processes: 252 Uptime: 9:15 Memory: 1396.1/16066.0MB Client: Shell (bash) inxi: 2.3.54 


User avatar
entropyfoe
Posts: 590
Joined: Thu Apr 19, 2007 11:42 am

Re: 4.14.14 Kernel crashes - Ryzen System

#2 Post by entropyfoe »

namida,
For me the only thing that is totally stable is the antix 4.10 (non patched) and 4.9.77-antix.
The 4.9.77 is patched
see https://www.antixforum.com/spectre-and- ... -upgrades/

4.14, 4.12, I think there was a 4.13 for MX. All crash 1 -2 times a day.

Lately I have better luck with the MX Package installer,
And the 4.9.77 is in there.
it does more than synaptic, even if you run the dkms reconfig.
You have an amd card, and I depend on the nvidia driver getting set up properly.
So it might be different.
Asus PRIME X470-PRO
AMD Ryzen 3600X (12 threads @ 3.8 GHz)
32 Gig DDR4 3600 (Crucial CL 16)
Nvidia GeForce GT 710
Samsung 970 NVMe nvme0n1 P1-3=MX-23, P4=testing
Samsung 980 NVMe =1TB Data, plus 2TB WD =backups
on-board ethernet & sound

User avatar
Stevo
Developer
Posts: 12774
Joined: Fri Dec 15, 2006 8:07 pm

Re: 4.14.14 Kernel crashes - Ryzen System

#3 Post by Stevo »

I really doubt that it's the KPTI mitigation. I even believe that the kernel detects your AMD cpu and doesn't use it in your case.

User avatar
entropyfoe
Posts: 590
Joined: Thu Apr 19, 2007 11:42 am

Re: 4.14.14 Kernel crashes - Ryzen System

#4 Post by entropyfoe »

Yup, that was the party line, Linus said linux would not apply meltdown patches to the amd chips. Where as Microsoft had to go with Intel, and pretend that the OS couldn't tell what processor it had, and so the patch would be applied to both Intel and AMD systems. (slowing Intel's competition as much as themselves)

For me the crashes were before the patches. The syslogs show or mean little to me, just a reboot.

I have great hopes for 4.15, it will have the patches baked in, and it is written that maybe the Ryzen temperature monitoring will be working.
I would think they test with my common Ryzen board and cpu.

But aside from the temp monitoring, I don't need the latest kernel, as long as the devices on the system all work. This 4.9.77 antix can last a good long while while the bugs get out of 4.15.

How are kernels selected to appear in the kernel section of the Package Installer?
Asus PRIME X470-PRO
AMD Ryzen 3600X (12 threads @ 3.8 GHz)
32 Gig DDR4 3600 (Crucial CL 16)
Nvidia GeForce GT 710
Samsung 970 NVMe nvme0n1 P1-3=MX-23, P4=testing
Samsung 980 NVMe =1TB Data, plus 2TB WD =backups
on-board ethernet & sound

User avatar
Stevo
Developer
Posts: 12774
Joined: Fri Dec 15, 2006 8:07 pm

Re: 4.14.14 Kernel crashes - Ryzen System

#5 Post by Stevo »

The developers decide what will kernels will be installed in the package installer scripts. In some cases, like the Liquorix kernel, it goes for the latest available one.

User avatar
entropyfoe
Posts: 590
Joined: Thu Apr 19, 2007 11:42 am

Re: 4.14.14 Kernel crashes - Ryzen System

#6 Post by entropyfoe »

Well I am thankful that they decided to include the 4.9.77, as it is the only one stable for me and patched.
Asus PRIME X470-PRO
AMD Ryzen 3600X (12 threads @ 3.8 GHz)
32 Gig DDR4 3600 (Crucial CL 16)
Nvidia GeForce GT 710
Samsung 970 NVMe nvme0n1 P1-3=MX-23, P4=testing
Samsung 980 NVMe =1TB Data, plus 2TB WD =backups
on-board ethernet & sound

roadapathy
Posts: 23
Joined: Sun Dec 31, 2017 5:19 pm

Re: 4.14.14 Kernel crashes - Ryzen System

#7 Post by roadapathy »

I'm running a 4.15.0-ryzen2 Kernel. I compiled it myself and paired it with Nvidia 390.25 driver. Download it from kernel.org, obviously

THIS WORKS ON MX 17

Here is what I did to compile the 4.15 Kernel. NOTE: I added a recovery Kernel option so in the boot menu I can boot straight into the CLI (user level 3, I think.. no GUI) and then manually install Nvidia. I do this because I add some optimizations to the Nvidia driver to make it compile a faster module!

tar -xvf kernelxxxx
cd kernelxxxxx
make oldconfig (this doesn't seem to work on MX Linux until you compile your own Kernel, but maybe it will work for you)
make xconfig (this isn't fun. It's tedius)

Now, install all your devices and activate them as much as possible. Webcam, open OBS or whatever. Mount flash drives, etc.

make localmodconfig <-- this will remove unnecessary stuffs, and it will add M to modules loaded but it isn't flawless so go back to fix things with make xconfig
make xconfig <-- Check vfat, NTFS, NTFS write because they were set to N after the last command you ran

sudo fakeroot sudo make -j`getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-ryzenz KDEB_PKGVERSION=1 CFLAGS="-O3 -march=native" CPPFLAGS="-O3 -march=native" CXXFLAGS="-O3 -march=native" X_CFLAGS="-O3 -march=native"

sudo dpkg -i *headers*.deb
sudo dpkg -i *image*.deb

Now, to test it out. Just boot like normal. I usually add a recovery mode Kernel boot option in order to install Nvidia driver manually. It should work and it should be really fast- fully optimized for Ryzen.

User avatar
anticapitalista
Developer
Posts: 4160
Joined: Sat Jul 15, 2006 10:40 am

Re: 4.14.14 Kernel crashes - Ryzen System

#8 Post by anticapitalista »

It would help if you posted/attached the resulting .config file

Can you make a successful snapshot iso using your kernel?
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

User avatar
stsoh
Posts: 183
Joined: Sun Aug 20, 2017 10:11 am

Re: 4.14.14 Kernel crashes - Ryzen System

#9 Post by stsoh »

mmm, 4.14.14 kernel, isn't this back dated??
liquorix just releases 4.14.18 kernel on 9/feb, why dun u try it??
https://liquorix.net/debian/pool/main/l/linux-liquorix/
MX-17.1_x64 Horizon, G41M-P33 Combo (MS-7592), Pentium E5400 (2706 MHz), 8Gb RAM (984 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.
Accepted Linux when i found MX-Linux in 2016.

roadapathy
Posts: 23
Joined: Sun Dec 31, 2017 5:19 pm

Re: 4.14.14 Kernel crashes - Ryzen System

#10 Post by roadapathy »

anticapitalista wrote:It would help if you posted/attached the resulting .config file

Can you make a successful snapshot iso using your kernel?
Ummm, help me out here. How do I do this with MX 17? I'm new to MX Linux- and it is the best Linux ever! I use to use Ubuntu Customizer until that Italian guy stopped maintaining it. :-(

The process is very easy until you get to the make xconfig part but you have some help with make localmodconfig. Xconfig is where you can fine tune all you want. I add extra sound buffers, NTFS support, I remove ALL debugging that I possibly can remove, ALL profiling, and I tune it for low latency.

Post Reply

Return to “antiX”