LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-08-2017, 06:55 AM   #1
javigarri
LQ Newbie
 
Registered: Jan 2016
Posts: 8

Rep: Reputation: Disabled
Problems with kernel 4.9.36 - amdgpu - suspend


Hello, I have problems with the new kernel 4.9.36 in Slackware linux 14.2:
- Ram suspension does not work

With kernel 4.9.35 it works correctly, although it has some different problems:

bash-4.4# dmesg | grep -i error
[ 4.121036] tpm_crb: probe of MSFT0101:00 failed with error -16
[ 6.518324] bluetooth hci0: Direct firmware load for rtl_bt/rtl8821a_config.bin failed with error -2
[ 7.413617] kfd kfd: error getting iommu info. is the iommu enabled?
[ 7.414542] kfd kfd: Error initializing iommuv2 for device (1002:9874)
[ 7.416603] kfd kfd: device (1002:9874) NOT added due to errors
[ 94.702804] bluetooth hci0: Direct firmware load for rtl_bt/rtl8821a_config.bin failed with error -2


With the 4.9.36 kernel it also gives an error in amdgpu:

File syslog:
Jul 8 13:14:29 serv kernel: [ 4.056397] tpm_crb: probe of MSFT0101:00 failed with error -16
Jul 8 13:14:29 serv kernel: [ 6.492963] bluetooth hci0: Direct firmware load for rtl_bt/rtl8821a_config.bin failed with error -2
Jul 8 13:14:29 serv kernel: [ 7.647236] [drm:amdgpu_vce_ring_test_ib [amdgpu]] *ERROR* amdgpu: IB test timed out.
Jul 8 13:14:29 serv kernel: [ 7.648074] [drm:amdgpu_ib_ring_tests [amdgpu]] *ERROR* amdgpu: failed testing IB on ring 12 (-110).
Jul 8 13:14:29 serv kernel: [ 7.648896] [drm:amdgpu_device_init [amdgpu]] *ERROR* ib ring test failed (-110).
Jul 8 13:14:29 serv kernel: [ 8.383562] kfd kfd: error getting iommu info. is the iommu enabled?
Jul 8 13:14:29 serv kernel: [ 8.384618] kfd kfd: Error initializing iommuv2 for device (1002:9874)
Jul 8 13:14:29 serv kernel: [ 8.386833] kfd kfd: device (1002:9874) NOT added due to errors


Attached file with output of 'dmidecode'
Attached Files
File Type: txt dmidecode.txt (13.8 KB, 9 views)
 
Old 07-08-2017, 03:47 PM   #2
lazardo
Member
 
Registered: Feb 2010
Location: SF Bay Area
Posts: 187

Rep: Reputation: Disabled
looks like firmware issue, cpu microcode and/or drm graphics driver and/or /lib/firmware.

Post related segments of dmesg and/or pre/post suspend /var/log/{messages,syslog,debug}

Cheers,
 
Old 07-08-2017, 05:10 PM   #3
javigarri
LQ Newbie
 
Registered: Jan 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks for answering.

I attach file with log of /var/log/messages, from system restart to the next system restart.

I hope it's what you need. A greeting
Attached Files
File Type: txt var_log_messages.txt (85.9 KB, 5 views)
 
Old 07-09-2017, 06:24 AM   #4
javigarri
LQ Newbie
 
Registered: Jan 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hello again,

I've got it working, applying the next change seen in

https://patchwork.kernel.org/patch/9489859/

File modified:
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
index 39f03f137a56..6b3293a1c7b8 100644
--- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
@@ -134,7 +134,7 @@ static void vce_v3_0_set_vce_sw_clock_gating(struct
amdgpu_device *adev,
accessible but the firmware will throttle the clocks on the
fly as necessary.
*/
- if (gated) {
+ if (!gated) {
data = RREG32(mmVCE_CLOCK_GATING_B);
data |= 0x1ff;

I do not know what makes the change, but it works.
 
Old 08-12-2017, 06:41 AM   #5
javigarri
LQ Newbie
 
Registered: Jan 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hello,

The solution applied in the last post I have to continue applying in each update of the kernel that publish in Slackware x86_64 current.

As I said, I do not know what the change does, but it works.

Does anyone know how to report this to the kernel developers?

Thanks in advance.
 
Old 08-12-2017, 07:02 AM   #6
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,574

Rep: Reputation: 1490Reputation: 1490Reputation: 1490Reputation: 1490Reputation: 1490Reputation: 1490Reputation: 1490Reputation: 1490Reputation: 1490Reputation: 1490
I suggest you try a more recent kernel. Thanks to 55020, you can get a pre-compiled package from the link in this post.
I was having problems with resume from hibernate with the 4.9 series kernels with Intel video hardware. When I contacted upstream, I was asked to try to replicate on the 4.12 series kernel. When I tried, the problem was gone.

PS - In my best HAL, "Thankyou Dave"
 
Old 08-12-2017, 11:15 AM   #7
javigarri
LQ Newbie
 
Registered: Jan 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hello,

For now I will continue to use the last kernel I installed.

Anyway thanks to Allend for his contribution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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: Linux Kernel 4.10.7 Released with AMDGPU and Networking Improvements, Bug Fixes LXer Syndicated Linux News 0 03-31-2017 12:51 AM
LXer: Linux Kernel 4.7.2 Is a Big Update with Numerous AMDGPU and ARM64 Improvements LXer Syndicated Linux News 0 08-21-2016 05:09 PM
LXer: Parted Magic 2016_01_06 Live CD Gets Support for the AMDGPU Driver, Linux Kernel 4.3 LXer Syndicated Linux News 0 01-08-2016 08:02 AM
LXer: GNU Linux-libre Kernel 4.2 Officially Released with AMDGPU Support, More LXer Syndicated Linux News 0 08-31-2015 10:51 PM

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

All times are GMT -5. The time now is 07:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration