R5 M330 GPU lockup with DPM + high power states
Submitted by Andrzej Mendel-Nykorowycz
Assigned to Default DRI bug account
Created attachment 123454
/var/log/syslog at the moment of hangup (photo)
System: Ubuntu 16.06 with Mesa git (padoka ppa) and kernel 4.6-rc6
GPU: Intel HD 5500 + AMD R5 M330 - all command below run with DRI_PRIME=1
I get GPU hangups, which result in freeze after a soft reset, whenever the load is high enough to push the GPU into higher power states.
If I run, for example, glmark2, only the first frame gets rendered and then the GPU lockups. After ~30s system freezes with information about GPU soft reset as the last message in syslog (see attachment)
If I run a non-GPU-intensive commands (say, glxgears with vsync), then the GPU stays in low power states and I do not get this hangup. If I force lower power states (echo battery > /sys/class/drm/card1/device/power_dpm_state), I don't get this hangup even with glmark2.
If I force high power states (echo performance > /sys/class/drm/card1/device/power_dpm_state; echo high > /sys/class/drm/card1/device/power_dpm_force_performance_level; echo on > /sys/class/drm/card1/device/power/control) then I do not get the hangup as long as there is no activity at all on the GPU. A simple glxgears is enough to trigger a hangup in this situation.
This bug is present since at least kernel 4.2.
I would appreciate any info on how to debug this further and will provide more info if requested.
Attachment 123454, "/var/log/syslog at the moment of hangup (photo)":