diff options
| author | Christian König <[email protected]> | 2017-06-28 13:41:17 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-07-14 15:05:57 +0000 |
| commit | df264f9e08081c8c79523fd9e9f5241ed23ee7e8 (patch) | |
| tree | e4ec93583462e2c4d749a14a43a2c2a2623ecc8f /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
| parent | drm/amdgpu: fix amdgpu_ring_write_multiple (diff) | |
| download | kernel-df264f9e08081c8c79523fd9e9f5241ed23ee7e8.tar.gz kernel-df264f9e08081c8c79523fd9e9f5241ed23ee7e8.zip | |
drm/amdgpu: allow flushing VMID0 before IB execution as well
This allows us to queue IBs which needs an up to date system domain as well.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Acked-by: Felix Kuehling <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c index f774b3f497d2..1b30d2ab9c51 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c @@ -172,7 +172,7 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs, if (ring->funcs->insert_start) ring->funcs->insert_start(ring); - if (vm) { + if (job) { r = amdgpu_vm_flush(ring, job); if (r) { amdgpu_ring_undo(ring); |
