drm/amdgpu: stop/resume fb access when gpu reset V3
authorChunming Zhou <David1.Zhou@amd.com>
Tue, 28 Jun 2016 02:38:50 +0000 (10:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 19:06:06 +0000 (15:06 -0400)
commitf1aa7e082e56f9c9ea8c0a6b7a0d538dcba9321d
tree42a1d08194de4389f3e66c9422da21c066d3d0b3
parente013c91c06a547a1deae1e8268d6a32ee8ba7f8f
drm/amdgpu: stop/resume fb access when gpu reset V3

V2: Add wait_for_mc_idle after stopping fb access
V3:
1. Remove resume fb access since there is no need to
    do that for gpu reset.
2. Move stop fb access to amdgpu_gpu_reset function,
since it's the same for all asics.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com> (V1)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c