OSDN Git Service

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 19:18:03 +0000 (14:18 -0500)
commit73469585510d5161368c899b7eacd58c824b2b24
tree525373dc79902b2e61def035821f5c94f1c50fcc
parent2e7cbbbcf9a0c3492a919bf25921437c9e1342db
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