mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 07:31:41 +00:00
drm/amdgpu: use kernel submit helper in vm
Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Reviewed-by: Christian K?nig <christian.koenig@amd.com>
This commit is contained in:
parent
953e8fd4e7
commit
4af9f07ccd
3 changed files with 33 additions and 144 deletions
|
@ -121,7 +121,7 @@ int amdgpu_sched_ib_submit_kernel_helper(struct amdgpu_device *adev,
|
|||
uint64_t v_seq;
|
||||
struct amdgpu_cs_parser *sched_job =
|
||||
amdgpu_cs_parser_create(adev, owner, &adev->kernel_ctx,
|
||||
ibs, 1);
|
||||
ibs, num_ibs);
|
||||
if(!sched_job) {
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ int amdgpu_sched_ib_submit_kernel_helper(struct amdgpu_device *adev,
|
|||
if (r)
|
||||
WARN(true, "emit timeout\n");
|
||||
} else
|
||||
r = amdgpu_ib_schedule(adev, 1, ibs, owner);
|
||||
r = amdgpu_ib_schedule(adev, num_ibs, ibs, owner);
|
||||
if (r)
|
||||
return r;
|
||||
*f = &ibs[num_ibs - 1].fence->base;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue