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)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Dec 2013 00:56:44 +0000 (19:56 -0500)
commit0ca223b029a261e82fb2f50c52eb85d510f4260e
tree40896ccc1c2386304143c42560c9b96c4a6c1899
parentb7bc799903bbae16795cb15705ddcab80c8f17f1
drm/radeon: fixup bad vram size on SI

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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/si.c