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:34:20 +0000 (07:34 -0800)
commit4f1f56b80623dd9c7c9e99040fbf5b79d28799d6
tree7773a12c7d0511e19aaaabe18f7549c77cab5f94
parent01c2b7b7c7b16d08a7b3659bb2d98d3a2034b365
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