]> Git Repo - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
Merge tag 'csky-for-linus-5.13-rc1' of git://github.com/c-sky/csky-linux
[linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_ib.c
index 148a3b481b12970826d346bc083d358275aad292..a2fe2dac32c16f1f0d35e111b2a70cf04dcb18b8 100644 (file)
@@ -76,6 +76,8 @@ int amdgpu_ib_get(struct amdgpu_device *adev, struct amdgpu_vm *vm,
                }
 
                ib->ptr = amdgpu_sa_bo_cpu_addr(ib->sa_bo);
+               /* flush the cache before commit the IB */
+               ib->flags = AMDGPU_IB_FLAG_EMIT_MEM_SYNC;
 
                if (!vm)
                        ib->gpu_addr = amdgpu_sa_bo_gpu_addr(ib->sa_bo);
This page took 0.033412 seconds and 4 git commands to generate.