OSDN Git Service

drm/amdgpu:cleanup job reset routine(v2)
authorMonk Liu <Monk.Liu@amd.com>
Mon, 16 Oct 2017 11:46:43 +0000 (19:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Dec 2017 21:33:10 +0000 (16:33 -0500)
commita8a51a70416baab813606c6014c5f0746958dfb2
tree9198ac8b6d047072804fdd52f367bb4923f05f7e
parent7716ea564f6538236c34749cdf3a6351c2844c1a
drm/amdgpu:cleanup job reset routine(v2)

merge the setting guilty on context into this function
to avoid implement extra routine.

v2:
go through entity list and compare the fence_ctx
before operate on the entity, otherwise the entity
may be just a wild pointer

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Chunming Zhou <David1.Zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
drivers/gpu/drm/amd/scheduler/gpu_scheduler.h