]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: report more amdgpu_fence_info
authorpding <Pixel.Ding@amd.com>
Thu, 12 Oct 2017 05:53:20 +0000 (13:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:27:18 +0000 (15:27 -0400)
commit7e852100c8d9b93bcf17413302bd2969ec5da6ec
tree1d80f99f733d73191d6052798a62e0999d92bcc4
parent1306ea73bebae8393255f72774da557a251f9ba5
drm/amdgpu: report more amdgpu_fence_info

Only for GFX ring. This can help checking MCBP feature.

The fence at the end of the frame will indicate the completion status.
If the frame completed normally, the fence is written to the address
given in the EVENT_WRITE_EOP packet. If preemption occurred in the
previous IB the address is adjusted by 2 DWs. If work submitted in the
frame was reset before completion, the fence address is adjusted by
four DWs. In the case that preemption occurred, and before preemption
completed a reset was initiated, the address will be adjusted with six
DWs

Signed-off-by: pding <Pixel.Ding@amd.com>
Reviewed-by: Monk Liu <monk.liu@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_fence.c