amdgpu: fix multi-process hang issue
authorEmily Deng <Emily.Deng@amd.com>
Wed, 22 Aug 2018 12:18:25 +0000 (20:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Aug 2018 21:05:20 +0000 (16:05 -0500)
commit2f40c6eac74a2a60921cdec9e9a8a57e88e31434
treea0cf984a6daec954dcff4f0290915b169b22a771
parentd98ff24e8e9be3329eea7c84d5e244d0c1cd0ab3
amdgpu: fix multi-process hang issue

SWDEV-146499: hang during multi vulkan process testing

cause:
the second frame's PREAMBLE_IB have clear-state
and LOAD actions, those actions ruin the pipeline
that is still doing process in the previous frame's
work-load IB.

fix:
need insert pipeline sync if have context switch for
SRIOV (because only SRIOV will report PREEMPTION flag
to UMD)

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Signed-off-by: Emily Deng <Emily.Deng@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_ib.c