drm/amdgpu: add fence suspend/resume functions
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Aug 2015 16:41:48 +0000 (12:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:50:18 +0000 (16:50 -0400)
commit5ceb54c68a28fc8af5cf8d32c4fde29c97dd3c18
tree2202b44528b6471bdc11fcf580b5348ec7354f48
parentc6a4079badc2f0eda69a028622c7080a284ae147
drm/amdgpu: add fence suspend/resume functions

Added to:
- handle draining the ring on suspend
- properly enable/disable interrupts on suspend and resume

Fix breakages from:
commit 467ee3be53d240d08beed2e82a941e820c1ac323
Author: Chunming Zhou <david1.zhou@amd.com>
Date:   Mon Jun 1 14:14:32 2015 +0800

    drm/amdgpu: always enable EOP interrupt v2

Tested-by: Audrey Grodzovsky <audrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c