drm/radeon: properly handle mc_stop/mc_resume on evergreen+ (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Aug 2012 21:18:42 +0000 (17:18 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Dec 2012 19:13:09 +0000 (11:13 -0800)
commit7c6b6eb9c4dbf21b3358bd1e68b9f1880e364a4b
tree27e158e1f38815c3501b34397eb92beb0d9e328f
parent52fcc830d72a41651a485fab646fd14174b89c4a
drm/radeon: properly handle mc_stop/mc_resume on evergreen+ (v2)

commit 62444b7462a2b98bc78d68736c03a7c4e66ba7e2 upstream.

- Stop the displays from accessing the FB
- Block CPU access
- Turn off MC client access

This should fix issues some users have seen, especially
with UEFI, when changing the MC FB location that result
in hangs or display corruption.

v2: fix crtc enabled check noticed by Luca Tettamanti

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/evergreen_reg.h
drivers/gpu/drm/radeon/evergreend.h
drivers/gpu/drm/radeon/radeon_asic.h