drm/radeon: Fix sideport problems on certain RS690 boards
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Dec 2013 23:15:51 +0000 (18:15 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 15 Feb 2014 19:20:13 +0000 (19:20 +0000)
commite5fdcafb4a311d2b37f00ed425f27f67834eb64b
tree1bb6aa8eee175113081bd17c2f87f61829a9b500
parentd92055f130b4f4d4c88f2029783fceab31c2577b
drm/radeon: Fix sideport problems on certain RS690 boards

commit 8333f0fe133be420ce3fcddfd568c3a559ab274e upstream.

Some RS690 boards with 64MB of sideport memory show up as
having 128MB sideport + 256MB of UMA.  In this case,
just skip the sideport memory and use UMA.  This fixes
rendering corruption and should improve performance.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=35457

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/radeon/rs690.c