drm/amdgpu: Move MMIO flip out of spinlocked region
authorVitaly Prosyak <vitaly.prosyak@amd.com>
Tue, 20 Oct 2015 19:02:03 +0000 (15:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Feb 2016 21:08:55 +0000 (16:08 -0500)
commit6bd9e877ce5322baf84c991c4509b49cf39a9b57
tree41750b369880b1372874e0a72f16f38f44fdb816
parent9ddf940f5d73ca4a0ee1e8f65993f7f080f1ed20
drm/amdgpu: Move MMIO flip out of spinlocked region

Prior actual  MMIO flip we need to acquire DAL mutex to guard
our target state which get modified on reset mode.
Assign page flip status before actual flip to handle
the possible race condition with interrupt.

Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c