[ Solved] Fail to restart after suspend

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
waynus
Level 3
Level 3
Posts: 153
Joined: Wed Dec 23, 2015 4:22 am

Re: Fail to restart after suspend

Post by waynus »

An update tried the 5.13.0-22 kernel.

Does not seem to have made a difference.

https://termbin.com/4x1c


To clarify what I observe the computer goes into suspend, then on touching the keyboard it and the mouse light up the hard drive light shows activity the monitors activate so must be getting a signal, but that is it, nothing else happens and I have to hard reboot to get any response from the computer.
User avatar
SMG
Level 25
Level 25
Posts: 31775
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Fail to restart after suspend

Post by SMG »

waynus wrote: Mon Nov 29, 2021 2:26 pmTo clarify what I observe the computer goes into suspend,
It looks like you let it stay suspended for 65 seconds. Does that sound correct?
waynus wrote: Mon Nov 29, 2021 2:26 pm then on touching the keyboard it and the mouse light up the hard drive light shows activity the monitors activate so must be getting a signal, but that is it, nothing else happens and I have to hard reboot to get any response from the computer.
Unfortunately, I see pretty much the same errors as in the prior logs. It seems that proposed kernel change did not apply for your system. :(

Code: Select all

Nov 30 05:19:16 wayne-System-Product-Name kernel: amdgpu 0000:09:00.0: amdgpu: RAP: optional rap ta ucode is not available
Nov 30 05:19:16 wayne-System-Product-Name kernel: amdgpu 0000:09:00.0: amdgpu: RAS: optional ras ta ucode is not available
Nov 30 05:19:16 wayne-System-Product-Name kernel: amdgpu 0000:09:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
Nov 30 05:19:16 wayne-System-Product-Name kernel: amdgpu 0000:09:00.0: amdgpu: RunBtc failed!
Nov 30 05:19:16 wayne-System-Product-Name kernel: amdgpu 0000:09:00.0: amdgpu: Failed to setup smc hw!
Nov 30 05:19:16 wayne-System-Product-Name kernel: [drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <smu> failed -62
Nov 30 05:19:16 wayne-System-Product-Name kernel: amdgpu 0000:09:00.0: amdgpu: amdgpu_device_ip_resume failed (-62).
Nov 30 05:19:16 wayne-System-Product-Name kernel: PM: dpm_run_callback(): pci_pm_resume+0x0/0x90 returns -62
Nov 30 05:19:16 wayne-System-Product-Name kernel: amdgpu 0000:09:00.0: PM: failed to resume async: error -62
And then the next set. There was more after that, but it was all kinds of repeats. You are correct that the system itself returns from suspend, but the GPU is not.

Code: Select all

Nov 30 05:19:16 wayne-System-Product-Name kernel: amdgpu: Move buffer fallback to memcpy unavailable
Nov 30 05:19:16 wayne-System-Product-Name kernel: [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to process the buffer list -19!
Nov 30 05:19:16 wayne-System-Product-Name kernel: amdgpu: Move buffer fallback to memcpy unavailable
Nov 30 05:19:16 wayne-System-Product-Name kernel: [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to process the buffer list -19!
Nov 30 05:19:17 wayne-System-Product-Name kernel: [drm] REG_WAIT timeout 1us * 1000 tries - dcn20_hubp_pg_control line:539
Nov 30 05:19:17 wayne-System-Product-Name kernel: [drm] REG_WAIT timeout 1us * 1000 tries - dcn20_dpp_pg_control line:465
Nov 30 05:19:17 wayne-System-Product-Name kernel: [drm] REG_WAIT timeout 1us * 1000 tries - dcn20_hubp_pg_control line:531
Nov 30 05:19:17 wayne-System-Product-Name kernel: [drm] REG_WAIT timeout 1us * 1000 tries - dcn20_dpp_pg_control line:457
Nov 30 05:19:17 wayne-System-Product-Name kernel: [drm] REG_WAIT timeout 1us * 1000 tries - dcn20_hubp_pg_control line:523
Nov 30 05:19:17 wayne-System-Product-Name kernel: [drm] REG_WAIT timeout 1us * 1000 tries - dcn20_dpp_pg_control line:449
Nov 30 05:19:17 wayne-System-Product-Name kernel: [drm] REG_WAIT timeout 1us * 1000 tries - dcn20_hubp_pg_control line:515
Nov 30 05:19:17 wayne-System-Product-Name kernel: [drm] REG_WAIT timeout 1us * 1000 tries - dcn20_dpp_pg_control line:441
Nov 30 05:19:17 wayne-System-Product-Name kernel: [drm] REG_WAIT timeout 1us * 1000 tries - dcn20_hubp_pg_control line:507
Nov 30 05:19:17 wayne-System-Product-Name kernel: [drm] REG_WAIT timeout 1us * 1000 tries - dcn20_dpp_pg_control line:433
Nov 30 05:19:17 wayne-System-Product-Name kernel: [drm] perform_link_training_with_retries: Link training attempt 1 of 4 failed
Nov 30 05:19:18 wayne-System-Product-Name kernel: [drm] perform_link_training_with_retries: Link training attempt 2 of 4 failed
Nov 30 05:19:18 wayne-System-Product-Name kernel: [drm] perform_link_training_with_retries: Link training attempt 3 of 4 failed
Nov 30 05:19:19 wayne-System-Product-Name kernel: [drm] enabling link 0 failed: 15
Image
A woman typing on a laptop with LM20.3 Cinnamon.
waynus
Level 3
Level 3
Posts: 153
Joined: Wed Dec 23, 2015 4:22 am

Re: Fail to restart after suspend

Post by waynus »

Yes about two minutes so 65 seconds seems correct.

I am thinking it will be a waiting game, found the same error type of problem in many places with amdgpu.

Much more of an issue though in laptops where it is doing this on closing the lid.

Found a couple of ideas
1) https://archived.forum.manjaro.org/t/so ... eep/152183

Which suggest disabling IOMMU in the bios. I don't think it will hurt but not sure how it would help.

2) https://github.com/jrandiny/yoga-slim7-ubuntu

A more involved approach with s3 but again I am doubtful it will do the trick either.
User avatar
SMG
Level 25
Level 25
Posts: 31775
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Fail to restart after suspend

Post by SMG »

waynus wrote: Mon Nov 29, 2021 8:11 pmI am thinking it will be a waiting game, found the same error type of problem in many places with amdgpu.
Unfortunately, that is all I can suggest.

The links you listed seem to have slightly different messages, but the first one is also a desktop, so it might be worth a try. There are specific messages in a log when disabling IOMMU might be needed and I didn't see those in yours, but I do not have any other ideas.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
waynus
Level 3
Level 3
Posts: 153
Joined: Wed Dec 23, 2015 4:22 am

Re: Fail to restart after suspend

Post by waynus »

Thanks.

Such is the nature of computers. At least the system is useable and I can do all that I need to on it.
waynus
Level 3
Level 3
Posts: 153
Joined: Wed Dec 23, 2015 4:22 am

Re: Fail to restart after suspend

Post by waynus »

I tried the new Manjaro.

Nice distribution and an easy entry to Arch.

Sadly same problem.
User avatar
SMG
Level 25
Level 25
Posts: 31775
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Fail to restart after suspend

Post by SMG »

waynus wrote: Thu Dec 23, 2021 5:10 pm I tried the new Manjaro...Sadly same problem.
What kernel version is it using?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
waynus
Level 3
Level 3
Posts: 153
Joined: Wed Dec 23, 2015 4:22 am

Re: Fail to restart after suspend

Post by waynus »

I didn't check. Will do later.
deepakdeshp
Level 20
Level 20
Posts: 12334
Joined: Sun Aug 09, 2015 10:00 am

Re: Fail to restart after suspend

Post by deepakdeshp »

Code: Select all

 uname -r
will give the version you are running.
waynus wrote: Thu Dec 23, 2021 5:28 pm I didn't check. Will do later.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
waynus
Level 3
Level 3
Posts: 153
Joined: Wed Dec 23, 2015 4:22 am

Re: Fail to restart after suspend

Post by waynus »

The kernel is 15.15.7-1 and 5.16 rc4

Both do exactly the same as on mint.

It is disappointing as I bought this as my main machine to run Linux and I am back to Windows 11 because it works properly and I leave the machine on 24/7.

I run Mint on a number of other machines without a problem, but on this machine it looks like a bust. That it did work at one time and now doesnt is frustrating.
User avatar
SMG
Level 25
Level 25
Posts: 31775
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Fail to restart after suspend

Post by SMG »

waynus wrote: Fri Dec 24, 2021 12:16 am The kernel is 15.15.7-1 and 5.16 rc4

Both do exactly the same as on mint.
The amdgpu driver is in the kernel so it is not encouraging new the problem is still there in later mainline kernels. I do not know if Canonical is working with AMD to try and get a fix in the Ubuntu/Mint kernels.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
waynus
Level 3
Level 3
Posts: 153
Joined: Wed Dec 23, 2015 4:22 am

Re: Fail to restart after suspend

Post by waynus »

I tried disabling IOMMU.

It had 3 settings enabled, disabled and auto. It was set to auto.

When I set it to disabled suspend works.

Problem solved. Of course the question is why?
User avatar
SMG
Level 25
Level 25
Posts: 31775
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Fail to restart after suspend

Post by SMG »

waynus wrote: Tue Dec 28, 2021 2:04 pm I tried disabling IOMMU.

It had 3 settings enabled, disabled and auto. It was set to auto.

When I set it to disabled suspend works.
Does it work for any kernel or just specific ones?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
waynus
Level 3
Level 3
Posts: 153
Joined: Wed Dec 23, 2015 4:22 am

Re: [ Solved] Fail to restart after suspend

Post by waynus »

Works with 5.4 and 5.13.
User avatar
SMG
Level 25
Level 25
Posts: 31775
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: [ Solved] Fail to restart after suspend

Post by SMG »

Thanks for the feedback.
I do not know how IOMMU relates to your specific motherboard to know why that setting is making a difference.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Da Londo
Level 4
Level 4
Posts: 205
Joined: Fri Feb 06, 2009 11:48 am
Location: Maasmechelen, BE
Contact:

Re: [ Solved] Fail to restart after suspend

Post by Da Londo »

Just leaving a note here about the issue, got the same with 5.13 but with 5.11 all is well, checked IOMMU and was disabled by default.
Asrock B450M Pro with AMD Ryzen 3 3200G.
aka Jim on HexChat
User avatar
SMG
Level 25
Level 25
Posts: 31775
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: [ Solved] Fail to restart after suspend

Post by SMG »

Moderator note: linuxovios issue can now be found here Fail to restart after suspend.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Beginner Questions”