Revert "drm/amdgpu: return new seq_no for amd_sched_push_job"
This reverts commit d1d33da8eb86b8ca41dd9ed95738030df5267b95. Reviewed-by: Christian K?nig <christian.koenig@amd.com> Conflicts: drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
这个提交包含在:
@@ -289,9 +289,12 @@ int amd_context_entity_fini(struct amd_gpu_scheduler *sched,
|
||||
* @sched The pointer to the scheduler
|
||||
* @c_entity The pointer to amd_context_entity
|
||||
* @job The pointer to job required to submit
|
||||
* return the virtual sequence number
|
||||
* return 0 if succeed. -1 if failed.
|
||||
* -2 indicate queue is full for this client, client should wait untill
|
||||
* scheduler consum some queued command.
|
||||
* -1 other fail.
|
||||
*/
|
||||
uint64_t amd_sched_push_job(struct amd_gpu_scheduler *sched,
|
||||
int amd_sched_push_job(struct amd_gpu_scheduler *sched,
|
||||
struct amd_context_entity *c_entity,
|
||||
void *job)
|
||||
{
|
||||
@@ -305,8 +308,7 @@ uint64_t amd_sched_push_job(struct amd_gpu_scheduler *sched,
|
||||
}
|
||||
|
||||
wake_up_interruptible(&sched->wait_queue);
|
||||
|
||||
return atomic64_inc_return(&c_entity->last_queued_v_seq);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -124,7 +124,7 @@ struct amd_gpu_scheduler *amd_sched_create(void *device,
|
||||
|
||||
int amd_sched_destroy(struct amd_gpu_scheduler *sched);
|
||||
|
||||
uint64_t amd_sched_push_job(struct amd_gpu_scheduler *sched,
|
||||
int amd_sched_push_job(struct amd_gpu_scheduler *sched,
|
||||
struct amd_context_entity *c_entity,
|
||||
void *job);
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户