Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

System Freezes on Ryzen 7 1800X

Need help with peripherals or devices?
Post Reply
Message
Author
LewsTh3R1n
Posts: 3
Joined: 2021-01-09 07:54

System Freezes on Ryzen 7 1800X

#1 Post by LewsTh3R1n »

Hello everyone,

I have been getting a weird freeze issue on all my Linux installs (on the same computer). I was previously using Manjaro and the system used to freeze twice or thrice every week.
I reverted to Debian Testing recently in the hope for some improvement. But, it looks like the issue still persists - around three full freezes so far.
By freeze, I mean that the keyboard and mouse does not respond, cannot switch to a TTY, and the SysRQ keys do not work either. (I haven't tested the SysRQ keys since the Debian install, will do that as soon as it happens again; was not enabled correctly the last time it happened :? ) The only way to gain control of the system has been to hold the power button and force the system to turn off.

I updated the BIOS as well yesterday, and but do not see any improvement - had another freeze today. The amd microcode is also installed and does seem to show up correctly in journalctl output.

Code: Select all

# journalctl -xb -2 |grep microcode
Jan 09 12:42:06 dexter kernel: microcode: CPU0: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU1: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU2: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU3: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU4: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU5: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU6: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU7: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU8: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU9: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU10: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU11: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU12: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU13: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU14: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: CPU15: patch_level=0x08001138
Jan 09 12:42:06 dexter kernel: microcode: Microcode Update Driver: v2.2.

Code: Select all

# dmidecode --type bios
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.1.1 present.

Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
	Vendor: American Megatrends Inc.
	Version: 5603
	Release Date: 07/28/2020
	Address: 0xF0000
	Runtime Size: 64 kB
	ROM Size: 16 MB
	Characteristics:
		PCI is supported
		APM is supported
		BIOS is upgradeable
		BIOS shadowing is allowed
		Boot from CD is supported
		Selectable boot is supported
		BIOS ROM is socketed
		EDD is supported
		5.25"/1.2 MB floppy services are supported (int 13h)
		3.5"/720 kB floppy services are supported (int 13h)
		3.5"/2.88 MB floppy services are supported (int 13h)
		Print screen service is supported (int 5h)
		8042 keyboard services are supported (int 9h)
		Serial services are supported (int 14h)
		Printer services are supported (int 17h)
		ACPI is supported
		USB legacy is supported
		BIOS boot specification is supported
		Targeted content distribution is supported
		UEFI is supported
	BIOS Revision: 5.13

Handle 0x0037, DMI type 13, 22 bytes
BIOS Language Information
	Language Description Format: Long
	Installable Languages: 9
		en|US|iso8859-1
		fr|FR|iso8859-1
		zh|TW|unicode
		ja|JP|unicode
		de|DE|iso8859-1
		es|ES|iso8859-1
		ru|RU|iso8859-5
		ko|KR|unicode
		<BAD INDEX>
	Currently Installed Language: en|US|iso8859-1
Do not see any other useful information in the systemd journal either.

I do have a faulty hard disk connected - it is failing SMART tests. However, it is not mounted and I do not think should be causing complete freezes like this.
Neither do I face a similar issue in Windows (currently the system dual boots into Windows and Debian).

Currently I am at a loss and am not sure what else to look at. Would greatly appreciate if someone could point me in the right direction.

More information about the hardware:
CPU: AMD Ryzen 7 1800X
Motherboard: ROG STRIX B350-F (BIOS version 5603)
Graphics Card: Radeon RX 580

Thank you.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: System Freezes on Ryzen 7 1800X

#2 Post by Head_on_a_Stick »

Have you installed the firmware for the graphics card?

Enable persistence for the systemd journal to use that to check for any relevant error messages. Read the journald.conf man page to find out how to do that.
deadbang

LewsTh3R1n
Posts: 3
Joined: 2021-01-09 07:54

Re: System Freezes on Ryzen 7 1800X

#3 Post by LewsTh3R1n »

Thank a lot for the reply.
Have you installed the firmware for the graphics card?
Yes, I believe these are also installed (package: firmware-amd-graphics).
Enable persistence for the systemd journal to use that to check for any relevant error messages. Read the journald.conf man page to find out how to do that.
I tried setting journal configuration to persistent. (The phrasing in the man page makes me believe that this is the default behaviour anyway.)
Had one crash since then and nothing interesting in the logs.

Following the discussion here, set up netconsole. Hopefully that shows something.
I am beginning to think the CPU or the motherboard is faulty. I had this issue in Linux ever since I built this set up.
But then again, no apparent issue in Windows...

LE_746F6D617A7A69
Posts: 932
Joined: 2020-05-03 14:16
Has thanked: 7 times
Been thanked: 65 times

Re: System Freezes on Ryzen 7 1800X

#4 Post by LE_746F6D617A7A69 »

Debian testing is released for ... testing. Most of Debian derivatives are using unstable kernels - to pretend that they're somehow "better" than Debian stable.
Kernel v4.19.x from Debian stable worked well for Me with both 14 and 7nm Ryzens - have You tried it?
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: System Freezes on Ryzen 7 1800X

#5 Post by toquinho »

I had similar random freezes on a Ryzen 7 1800X. I bought the processor back in 2018, but installed it only a few weeks ago. The system froze when idle (not under load) several times per week, and journalctl indicated some hardware errors.

It seems that the early 1800X processors had a problem with Linux. Please see here:
https://github.com/suaefar/ryzen-test
The test did not complete on my system.

So I bought a new 3700X, and the system has been running for a while without these problems.

AMD offers a worldwide warranty of three years after purchase. So I contacted them via their warranty form:
https://www.amd.com/en/support/kb/warra ... n/rma-form
You have to provide them with the Product Part Number Product Serial Number of the processor. They are printed on the seal of the box and on the processor, so you may have to disassemble your system if you cannot get these numbers otherwise. In my case they also requested a copy of the purchase receipt. After a few days I got a message saying that they would replace the processor. I have just shipped the old one back...

LE_746F6D617A7A69
Posts: 932
Joined: 2020-05-03 14:16
Has thanked: 7 times
Been thanked: 65 times

Re: System Freezes on Ryzen 7 1800X

#6 Post by LE_746F6D617A7A69 »

toquinho wrote:It seems that the early 1800X processors had a problem with Linux. Please see here:
https://github.com/suaefar/ryzen-test
The test did not complete on my system.
Yeah, *Ubuntu* had a problem with AMD CPUs, and Ubuntu is using unstable/tesing kernels from Debian + custom, completely untested patches.
Bill Gates: "(...) In my case, I went to the garbage cans at the Computer Science Center and I fished out listings of their operating system."
The_full_story and Nothing_have_changed

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: System Freezes on Ryzen 7 1800X

#7 Post by toquinho »

Honestly, I do not believe that this is the fault of Ubuntu or an "unstable" kernel. I had the freezes on the current stable release of Debian, and AMD replaces the processors on warranty just based on their part and serial numbers. If it were a kernel problem AMD would not replace the processors, and the kernel bug would probably have been fixed by now (three years after the problems were reported). Please see also: https://www.phoronix.com/scan.php?page= ... v-Response

LewsTh3R1n
Posts: 3
Joined: 2021-01-09 07:54

Re: System Freezes on Ryzen 7 1800X

#8 Post by LewsTh3R1n »

Thanks for all the replies, everyone.
Thanks a lot for the links to phoronix and info about AMD's warranty. I will try contacting them and see how it goes.

I have been waiting for a crash since I enabled netconsole and have not been able to get even a single crash so far. (I had a single crash after enabling it and that seems to be unrelated - looks like something to do with my wireless device.)
Why is it always I can't get a crash when I want one??? :D

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: System Freezes on Ryzen 7 1800X

#9 Post by sunrat »

LewsTh3R1n wrote:Why is it always I can't get a crash when I want one??? :D
Murphy's Law?
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

pwzhangzz
Posts: 420
Joined: 2020-11-11 17:42
Has thanked: 9 times
Been thanked: 26 times

Re: System Freezes on Ryzen 7 1800X

#10 Post by pwzhangzz »

I have a Ryzen 7 3700 desktop machine with Radeon 580 running Debian Bullseye. So far, no problem.

Knock on wood!

Post Reply