drm/amdgpu: fix colliding of preemption
authorMonk Liu <Monk.Liu@amd.com>
Thu, 6 Feb 2020 15:55:58 +0000 (23:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2020 16:01:25 +0000 (11:01 -0500)
commit6325b38d892b68902e38a9953abb6d42bfd389fb
tree6237bfe490e37e679cc3db9f47d50c4ba619b342
parent9cfb06920e2b4ea9ae903be640927b8da0fd5b68
drm/amdgpu: fix colliding of preemption

what:
some os preemption path is messed up with world switch preemption

fix:
cleanup those logics so os preemption not mixed with world switch

this patch is a general fix for issues comes from SRIOV MCBP, but
there is still UMD side issues not resovlved yet, so this patch
cannot fix all world switch bug.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Acked-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c