drm/radeon: always program the MC on startup
authorAlex Deucher <alexander.deucher@amd.com>
Sun, 4 Aug 2013 16:13:17 +0000 (12:13 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 10 Sep 2013 00:57:20 +0000 (01:57 +0100)
commitd03160d52da816b9f6c87d68bed5aeecaf488191
tree9ad297bc5940435eff0389263f20fda8f90ac98a
parenteb4a22ba43d91d58a35bc4fce11d8e6065bb4e1d
drm/radeon: always program the MC on startup

commit 6fab3febf6d949b0a12b1e4e73db38e4a177a79e upstream.

For r6xx+ asics.  This mirrors the behavior of pre-r6xx
asics.  We need to program the MC even if something
else in startup() fails.  Failure to do so results in
an unusable GPU.

Based on a fix from: Mark Kettenis <kettenis@openbsd.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
[bwh: Backported to 3.2: adjust context, drop changes to cik.c and si.c]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/rv770.c