]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9e3a44f5e8178b496cd86ce2d968cc95f79c0ef1
tree5a57da8ff80e4af80c2da6c9c789d09bc71cd2db
parent698c4fb2ed41030ef0713a10ca106693b7863cfd
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