drm/ttm: Don't print error message if eviction was interrupted
authorjsg <jsg@openbsd.org>
Fri, 4 Aug 2023 08:55:47 +0000 (08:55 +0000)
committerjsg <jsg@openbsd.org>
Fri, 4 Aug 2023 08:55:47 +0000 (08:55 +0000)
From Thomas Hellstrom
3a8f9b8ccf2b34623cd7264cd78c80f8806959d5 in linux-6.1.y/6.1.43
8ab3b0663e279ab550bc2c0b5d602960e8b94e02 in mainline linux

sys/dev/pci/drm/ttm/ttm_bo.c

index ca0d0bf..a7f5071 100644 (file)
@@ -504,7 +504,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;
                }