Skip to contentSkip to conversation

kworker consumes 100% of a cpu core when screen sleeps with amdgpu kernel driver.

Bug 97471 [email protected] 1 participant 13 messages Aug 24, 2016 – Dec 20, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=97471

Bug ID: 97471
Summary: kworker consumes 100% of a cpu core when screen sleeps
with amdgpu kernel driver.
Product: DRI
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

Created attachment 126008
--> https://bugs.freedesktop.org/attachment.cgi?id=126008&action=edit
System information and perf data

Hi
I have configured my system to use the amdgpu kernel driver (note no experimental support activated) on openSUSE Tumbleweed and running 4.8.0-rc2-3.gda13dfd-default. I did have to re-build the xf86-video-amdgpu to add my Mullins R5 PCI-IDs. I don't see this when running the radeon driver.

Reproducible: Always

Steps to Reproduce:
1. Boot to Gnome desktop.
2. Set timeout for screen saver 1-15 minutes doesn't matter.
3. From a remote ssh session monitor via top and observe one cpu at ~100% when screen save activates.

Actual Results:
I ran the following perf command to capture some data which will add as an attachment;

perf record -F 250 -g -a sleep 10
perf report

Expected Results:
Not consume cpu when idle/screensaver mode.

Attachment includes;
20-amdgpu.conf, dmidecode.txt, perf_data_summary.txt, 4.8.rc3.perf.data, os-release and Xorg.0.log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97471

--- Comment #2 from Malcolm Lewis <[email protected]> --- Created attachment 126111
--> https://bugs.freedesktop.org/attachment.cgi?id=126111&action=edit
Ourput from dmesg

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97471

--- Comment #3 from [email protected] ---
I am hitting this bug on Carrizo as well.
In particular, it only takes effect if the disabled output is the integrated screen (eDP-1). Disabling the DP-1 output (which is actually an HDMI port) connected to an external screen has no visible effects.

My system is Arch Linux, with the default kernel (Vanilla Linux 4.7.2 with a one-line patch changing the default log level).

I can provide additional information about my system if necessary. I can also try out kernel patches if that will help.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97471

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #4 from Alex Deucher <[email protected]> --- *** Bug 97849 has been marked as a duplicate of this bug. ***

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97471

--- Comment #5 from Alex Deucher <[email protected]> ---
For some reason the eDP panel is causing an hotplug interrupt storm when the panel is disabled. I'm not sure why radeon is behaving differently off hand.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97471

--- Comment #7 from Striker Leggette <[email protected]> --- Fresh boot. This happens as soon as you change the display to _only_ push HDMI.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97471

--- Comment #8 from Alex Deucher <[email protected]> --- Created attachment 126818
--> https://bugs.freedesktop.org/attachment.cgi?id=126818&action=edit
possible fix

Does this patch help?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97471

--- Comment #9 from Jan Vesely <[email protected]> --- (In reply to Alex Deucher from comment #8)

Quoted 4 lines

Created attachment 126818 [details] [review]
possible fix

Does this patch help?

modified version of the patch helps on my setup. (patch modified to apply on top of ROCK kernel)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97471

--- Comment #10 from Malcolm Lewis <[email protected]> --- (In reply to Alex Deucher from comment #8)

Quoted 4 lines

Created attachment 126818 [details] [review]
possible fix

Does this patch help?

Hi
I can confirm the patch also works for me, both with the Laptop screen, laptop and HDMI attached screen and just the HDMI screen.

Kernel used: 4.8.0-rc8-2.g991ee60-default
OS: openSUSE Tumbleweed 20160927
Note, there is no dce_v6_0.c file, so had to tweak your patch.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97471

--- Comment #11 from Malcolm Lewis <[email protected]> --- Hi
I would also like to confirm the patch works with the 4.4.21-3-default in openSUSE Leap 42.2 currently in beta.

I also expect it to work with SLED 12 SP2 when released since they are running the same kernel, just need to update xf86-video-amdgpu to 1.1.2 for support of my GPU.

Many thanks :)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97471

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel