drm/amdgpu:fix gfx fence allocate size
authorMonk Liu <Monk.Liu@amd.com>
Mon, 19 Jun 2017 14:19:41 +0000 (10:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jul 2017 20:29:26 +0000 (16:29 -0400)
commit0915fdbc69f58644f437730fbc9e1f1ab426fe18
treeda3ada74fbbc639d3fabd40c39a566b069ae7c9e
parente342610c9a9b36459c5be107cb0b7c338404fcc3
drm/amdgpu:fix gfx fence allocate size

1, for sriov, we need 8dw for the gfx fence due to CP
behaviour
2, cleanup wrong logic in wptr/rptr wb alloc and free

Change-Id: Ifbfed17a4621dae57244942ffac7de1743de0294
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@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
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c