drm/amdgpu: Don't hang in amdgpu_flip_work_func on disabled crtc.

2016-03-01 Thread Mario Kleiner
On 02/29/2016 09:10 PM, Dan Carpenter wrote: > Hello Mario Kleiner, > > The patch e1d09dc0ccc6: "drm/amdgpu: Don't hang in > amdgpu_flip_work_func on disabled crtc." from Feb 19, 2016, leads to > the following static checker warning: > > drivers/gpu

drm/amdgpu: Don't hang in amdgpu_flip_work_func on disabled crtc.

2016-02-29 Thread Dan Carpenter
Hello Mario Kleiner, The patch e1d09dc0ccc6: "drm/amdgpu: Don't hang in amdgpu_flip_work_func on disabled crtc." from Feb 19, 2016, leads to the following static checker warning: drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:127 amdgpu_flip_work_func() warn: should this be 'r

[PATCH 2/2] drm/amdgpu: Don't hang in amdgpu_flip_work_func on disabled crtc.

2016-02-19 Thread Mario Kleiner
This fixes a regression introduced in Linux 4.4. This is a port of the same fix for radeon-kms in the patch "drm/radeon: Don't hang in radeon_flip_work_func on disabled crtc. (v2)" Limit the amount of time amdgpu_flip_work_func can delay programming a page flip, by both limiting the maximum amoun