]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f35c1f2245d6a13158c96382805a84765ad83c4
treeda3ada74fbbc639d3fabd40c39a566b069ae7c9e
parent34a6f4f9b89025217780a9e511c275c9632a8913
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