drm/amdgpu/gfx: fix off by one in rb rework (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Feb 2016 15:06:06 +0000 (10:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Feb 2016 22:44:57 +0000 (17:44 -0500)
commitaac1e3caac343c05ab550fa611489bd206aa8a7b
tree5a57da8ff80e4af80c2da6c9c789d09bc71cd2db
parentd2eaa59000c7717e68a75cf2c106f056d2bc30b4
drm/amdgpu/gfx: fix off by one in rb rework (v2)

When I reworked this code, I messed up num rb count.

v2: use hweight32

Reviewed-by: Ken Wang <Qingquing.Wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c