drm/amdgpu: fix&cleanups for wb_clear
authorMonk Liu <Monk.Liu@amd.com>
Fri, 29 Dec 2017 09:06:41 +0000 (17:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Feb 2018 20:19:03 +0000 (15:19 -0500)
commitf812dec57d55719f5fe1f6fce193561015369363
treea645eb8482c1ed6b32f005fc17d6177de55a4e35
parent8d333fe0ad9dcb9651b9b450424a960bac040f96
drm/amdgpu: fix&cleanups for wb_clear

fix:
should do right shift on wb before clearing

cleanups:
1,should memset all wb buffer
2,set max wb number to 128 (total 4KB) is big enough

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c