]> Git Repo - J-linux.git/commitdiff
drm/ttm: Don't print error message if eviction was interrupted
authorThomas Hellström <[email protected]>
Tue, 7 Mar 2023 14:46:19 +0000 (15:46 +0100)
committerThomas Hellström <[email protected]>
Thu, 9 Mar 2023 13:18:53 +0000 (14:18 +0100)
Avoid printing an error message if eviction was interrupted by,
for example, the user pressing CTRL-C. That may happen if eviction
is waiting for something, like for example a free batch-buffer.

Signed-off-by: Thomas Hellström <[email protected]>
Reviewed-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/ttm/ttm_bo.c

index 882c2fa346f33966489dc766446488b6dbad4281..459f1b4440daa25affcc778df6a3f7dfc088da86 100644 (file)
@@ -464,7 +464,8 @@ bounce:
        if (ret == -EMULTIHOP) {
                ret = ttm_bo_bounce_temp_buffer(bo, &evict_mem, ctx, &hop);
                if (ret) {
-                       pr_err("Buffer eviction failed\n");
+                       if (ret != -ERESTARTSYS && ret != -EINTR)
+                               pr_err("Buffer eviction failed\n");
                        ttm_resource_free(bo, &evict_mem);
                        goto out;
                }
This page took 0.050587 seconds and 4 git commands to generate.