drm/amd/display: Refine globallock.
authorAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Wed, 21 Jun 2017 19:44:23 +0000 (15:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:08:11 +0000 (18:08 -0400)
commitf0129a537b52da851abd26f8296f3ffd1e5dc424
tree7d7935859f09754e7b37c20c1b29d752dac5a3f4
parent5634fb6078dd9b9f794e93eef2fef52150cdc827
drm/amd/display: Refine globallock.

Switch to wait_for_completion_interruptible_timeout wait
since the lock is called from IOCTL context and can be
interrupted by a signal.

Global lock function might return EDEADLK or EINTR which
is not an error and just singals to user mode to restart
the call.

Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c