Bug 119181

Summary: Hang in amdgpu_vm_bo_update_mapping with powerplay enabled
Product: Drivers Reporter: Hristo Venev (hristo)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: NEW ---    
Severity: normal CC: vedran
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.5.4 Subsystem:
Regression: No Bisected commit-id:
Attachments: Stack trace (sysrq-w)

Description Hristo Venev 2016-05-29 17:58:10 UTC
Created attachment 218111 [details]
Stack trace (sysrq-w)

This happens after a few minutes in a 3D-intensive workload (e.g. Kerbal Space Program). The game hangs, but the mouse is moving. A few seconds later the mouse stops moving.

1. The game is waiting on an ioctl (libdrm: amdgpu_fence_wait/amdgpu_cs_query_fence_status)
2. Xorg is in D state (see attached stack trace).
3. CPU load at ~0%.
4. Nothing interesting in kernel log.

The kernel has voluntary preemption enabled, the GPU is 1002:6938 (AMD Radeon 380X). It is at 56°C, quickly drops down to 51 when forced to low performance state, goes up to 56 when at auto.
Comment 1 Hristo Venev 2016-05-29 19:18:02 UTC
The hang does not occur when the power state is set to low. There are also no rendering glitches (otherwise some frames seem to have random triangles on them).