System Freezes on Ryzen 7 1800X

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

System Freezes on Ryzen 7 1800X

Postby LewsTh3R1n » 2021-01-09 08:38

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.
LewsTh3R1n
 
Posts: 2
Joined: 2021-01-09 07:54

Re: System Freezes on Ryzen 7 1800X

Postby Head_on_a_Stick » 2021-01-09 12:03

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.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13062
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: System Freezes on Ryzen 7 1800X

Postby LewsTh3R1n » 2021-01-10 17:43

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...
LewsTh3R1n
 
Posts: 2
Joined: 2021-01-09 07:54

Re: System Freezes on Ryzen 7 1800X

Postby LE_746F6D617A7A69 » 2021-01-11 20:59

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
LE_746F6D617A7A69
 
Posts: 421
Joined: 2020-05-03 14:16

Re: System Freezes on Ryzen 7 1800X

Postby toquinho » 2021-01-12 19:57

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/warranty-information/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...
toquinho
 
Posts: 44
Joined: 2014-06-24 16:50

Re: System Freezes on Ryzen 7 1800X

Postby LE_746F6D617A7A69 » 2021-01-13 20:55

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
LE_746F6D617A7A69
 
Posts: 421
Joined: 2020-05-03 14:16

Re: System Freezes on Ryzen 7 1800X

Postby toquinho » 2021-01-13 23:00

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=news_item&px=Ryzen-Segv-Response
toquinho
 
Posts: 44
Joined: 2014-06-24 16:50


Return to Hardware

Who is online

Users browsing this forum: No registered users and 15 guests

fashionable