drm/amdgpu: mark the partial job as preempted in mcbp unit test
authorJack Xiao <Jack.Xiao@amd.com>
Wed, 23 Jan 2019 05:54:26 +0000 (13:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:58:21 +0000 (18:58 -0500)
commit80f8fb9178eda5a16b5ff8e2b2e8304f0a06f5f4
treeb80d1686bafa7785872327b61ca436041c0fff63
parent6698a3d05fda57f37add68c55a0696bfa7100413
drm/amdgpu: mark the partial job as preempted in mcbp unit test

In mcbp unit test, the test should detect the preempted job which may
be a partial execution ib and mark it as preempted; so that the gfx
block can correctly generate PM4 frame.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c