drm/amdgpu: add kernel fence in ib_submit_kernel_helper
every sbumission should be able to get a fence. Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Reviewed-by: Christian K?nig <christian.koenig@amd.com> Reviewed-by: Jammy Zhou <jammy.zhou@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
ed88a0ee7f
commit
1763552ee8
@@ -107,7 +107,8 @@ int amdgpu_sched_ib_submit_kernel_helper(struct amdgpu_device *adev,
|
||||
struct amdgpu_ib *ibs,
|
||||
unsigned num_ibs,
|
||||
int (*free_job)(struct amdgpu_cs_parser *),
|
||||
void *owner)
|
||||
void *owner,
|
||||
struct fence **f)
|
||||
{
|
||||
int r = 0;
|
||||
if (amdgpu_enable_scheduler) {
|
||||
@@ -135,5 +136,8 @@ int amdgpu_sched_ib_submit_kernel_helper(struct amdgpu_device *adev,
|
||||
WARN(true, "emit timeout\n");
|
||||
} else
|
||||
r = amdgpu_ib_schedule(adev, 1, ibs, owner);
|
||||
return r;
|
||||
if (r)
|
||||
return r;
|
||||
*f = &ibs[num_ibs - 1].fence->base;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user