drm/radeon: handle broken disabled rb mask gracefully
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Apr 2013 14:13:22 +0000 (10:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 11 Apr 2013 13:22:04 +0000 (09:22 -0400)
commitcedb655a3a7764c3fd946077944383c9e0e68dd4
tree60af8b9cb083ff6c0f4707afe84e0edf87d135a2
parent55b615aec66d88a0c5dbb9fc026dbdd3b0c121d2
drm/radeon: handle broken disabled rb mask gracefully

If the disabled rb mask register is not properly initialized
program a sane default based on the number of RBs for the
asic.  This avoids a potential divide by 0 when calculating
the backend mask.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/ni.c