]> Git Repo - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
Merge tag 'imx-drm-next-2018-08-03' of git://git.pengutronix.de/git/pza/linux into...
[linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_test.c
index 007d70cd69ddbf38d3cedc83c6443d8169926636..8904e62dca7ae277143f4a3cbdffaa28ef120bf9 100644 (file)
@@ -103,6 +103,11 @@ static void amdgpu_do_test_moves(struct amdgpu_device *adev)
                        DRM_ERROR("Failed to pin GTT object %d\n", i);
                        goto out_lclean_unres;
                }
+               r = amdgpu_ttm_alloc_gart(&gtt_obj[i]->tbo);
+               if (r) {
+                       DRM_ERROR("%p bind failed\n", gtt_obj[i]);
+                       goto out_lclean_unpin;
+               }
                gart_addr = amdgpu_bo_gpu_offset(gtt_obj[i]);
 
                r = amdgpu_bo_kmap(gtt_obj[i], &gtt_map);
This page took 0.036039 seconds and 4 git commands to generate.