summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-06-28 15:41:17 +0200
committerAlex Deucher <alexander.deucher@amd.com>2017-07-14 11:05:57 -0400
commitdf264f9e08081c8c79523fd9e9f5241ed23ee7e8 (patch)
treee4ec93583462e2c4d749a14a43a2c2a2623ecc8f /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
parent369421cbfabf0650b73571d7d1c026fc3830e74d (diff)
downloadtalos-obmc-linux-df264f9e08081c8c79523fd9e9f5241ed23ee7e8.tar.gz
talos-obmc-linux-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 <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c2
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);
OpenPOWER on IntegriCloud