Skip to contentSkip to conversation

R7 M370 hangs with radeon.dpm=1 when running demanding graphical programs with DRI PRIME

Bug 97137 [email protected] 1 participant 9 messages Jul 29, 2016 – Nov 29, 2016

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 97137
Summary: R7 M370 hangs with radeon.dpm=1 when running demanding
graphical programs with DRI PRIME
Product: DRI
Version: DRI git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: DRM/Radeon
Assignee: [email protected]
Reporter: [email protected]

I own a laptop (Thinkpad E560) with an Intel+Radeon gpu combo. When trying to run demanding graphical programs with the radeon gpu via dri prime it hangs. In this context, demanding programs are anything more demanding than glxgears (which runs fine).

If I boot with radeon.dpm=0 everything runs fine but at the low default clock speeds. I have been unable to set faster clock speeds via the sysfs interface.

I have tried drm-next from
https://cgit.freedesktop.org/~airlied/linux/?h=drm-next together with the latest git linux-firmware but the problem is the same.

The problem can be replicated by running 'glmark2 -b texture'. However 'glmark2 -b build' seems to work without any problems.

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

#1 lore raw

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

--- Comment #1 from Mauro Santos <[email protected]> --- Created attachment 125426
--> https://bugs.freedesktop.org/attachment.cgi?id=125426&action=edit
dmesg with gpu hang

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=97137

--- Comment #2 from Mauro Santos <[email protected]> --- Created attachment 125427
--> https://bugs.freedesktop.org/attachment.cgi?id=125427&action=edit
lspci -vvnn

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=97137

--- Comment #3 from Alex Deucher <[email protected]> --- Does setting radeon.runpm=0 on the kernel command line in grub 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=97137

--- Comment #4 from Mauro Santos <[email protected]> --- (In reply to Alex Deucher from comment #3)

Quoted 1 line

Does setting radeon.runpm=0 on the kernel command line in grub help?

No change. When running glmark2 I still get a hang when it gets to the texture test. I see the cube spin for maybe less than one second and then the test/gpu hangs.

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=97137

--- Comment #5 from Mauro Santos <[email protected]> --- Created attachment 125429
--> https://bugs.freedesktop.org/attachment.cgi?id=125429&action=edit
dmesg with radeon.runpm=0

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

#6 lore raw
In reply to [email protected]

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

Mauro Santos <[email protected]> changed:

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

--- Comment #6 from Mauro Santos <[email protected]> --- Is there any further information or tests I can do to help determining the cause of the problem and finding a fix/workaround?

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=97137

--- Comment #7 from Mauro Santos <[email protected]> --- I have just noticed that the hang does not happen if I run 'glmark2 -b texture' while on battery, however the fps result is a lot lower than with the Intel gpu.

Might this provide any further clues to the problem?

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=97137

Mauro Santos <[email protected]> changed:

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

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #8 from Mauro Santos <[email protected]> --- This is now working for me.

The fix was introduced sometime between stable kernel 4.8.6 and 4.8.7 and is still working fine with 4.8.11.

I haven't tried to find exactly which commit fixed things but given that it's working now I'll let it rest. If later there is a regression I now have a good starting point for a bisect and new bug report.

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