drm/radeon: handle broken disabled rb mask gracefully (6xx/7xx) (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Aug 2014 18:52:15 +0000 (14:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Aug 2014 16:21:06 +0000 (12:21 -0400)
commit0a5f6e9d60e71e4b6dbeabd97bc887d6b2b0f0c8
treee02fb6cc8d8bcef96c9b6c1382144a629128ebfd
parent054e01d681b457ab50bdf1f22c0f0d1ad03afd70
drm/radeon: handle broken disabled rb mask gracefully (6xx/7xx) (v2)

This is a port of cedb655a3a7764c3fd946077944383c9e0e68dd4
to older asics.  Fixes a possible divide by 0 if the harvest
register is invalid.

v2: drop some additional harvest munging.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/rv770.c