drm/radeon: fixup bad vram size on SI
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Dec 2013 14:24:30 +0000 (09:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 15:45:10 +0000 (07:45 -0800)
commitd7b2643fc9a596037084830b157a559d8f870169
treea793be954495b2d5014f621a55c9b413a3f8c7f1
parent14655c3cc0adb85752b165eadb003cbc781bcffe
drm/radeon: fixup bad vram size on SI

commit 0ca223b029a261e82fb2f50c52eb85d510f4260e upstream.

Some boards seem to have garbage in the upper
16 bits of the vram size register.  Check for
this and clamp the size properly.  Fixes
boards reporting bogus amounts of vram.

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