drm/vmwgfx: Avoid cmdbuf alloc sleeping if !TASK_RUNNING
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 26 Jun 2015 11:46:52 +0000 (04:46 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 5 Aug 2015 12:01:09 +0000 (14:01 +0200)
commit9b590783b3d6d2e06516788d1061176109677409
treefd9757f581f2333701b1e99db3da8e78dc97ff6c
parent6bf6bf03b37b5ba0f3399fa9bb3d62edfa117c87
drm/vmwgfx: Avoid cmdbuf alloc sleeping if !TASK_RUNNING

If the command buffer pool is out of space, the code waits until space is
available. However since the condition code tries to allocate a range manager
node while !TASK_RUNNING we get a kernel warning.

Avoid this by pre-allocating the mm node. This will also probably be more
efficient.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c