drm/vmwgfx: Reorganize the fence wait loop
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 20 Jun 2018 09:51:02 +0000 (11:51 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 3 Jul 2018 18:40:48 +0000 (20:40 +0200)
commit14dba7178491e2bc411dc2e4542295709c1fb9e6
treeb389fa88db41986e6b1d5492997e68a92490c19e
parent3fbeccf8ceb1651b376a14bfe1005d518a4d8fa0
drm/vmwgfx: Reorganize the fence wait loop

Reorganize the fence wait loop somewhat to make it look more like the
examples in set_current_state() kerneldoc, and add some code comments.

Also if we're about to time out, make sure we check again whether the fence
is actually signaled.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c