OSDN Git Service

drm/amdgpu: add ib preemption status in amdgpu_job (v2)
authorJack Xiao <Jack.Xiao@amd.com>
Thu, 17 Jan 2019 07:47:36 +0000 (15:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:57:40 +0000 (18:57 -0500)
commitd8780dc71d56acf734a5756cac8c7787eb6bec11
tree90273c398d9fae31b1eea9bfaaf2df73f17abfba
parentf92d5c6123f4f06a3660e4c398e1d453d1d29a9d
drm/amdgpu: add ib preemption status in amdgpu_job (v2)

Add ib preemption status in amdgpu_job, so that ring level function
can detect preemption and program for resuming it.

v2: squash in fix to restore job->preamble_status back to status value (Jack)

Acked-by: Alex Deucher <alexander.deucher@amd.com>
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_ib.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.h