From d764d84d3eda731377632cd9168edb826cadd8ee Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 4 Aug 2023 08:55:47 +0000 Subject: [PATCH] drm/ttm: Don't print error message if eviction was interrupted From Thomas Hellstrom 3a8f9b8ccf2b34623cd7264cd78c80f8806959d5 in linux-6.1.y/6.1.43 8ab3b0663e279ab550bc2c0b5d602960e8b94e02 in mainline linux --- sys/dev/pci/drm/ttm/ttm_bo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/ttm/ttm_bo.c b/sys/dev/pci/drm/ttm/ttm_bo.c index ca0d0bfcf0e..a7f50714c72 100644 --- a/sys/dev/pci/drm/ttm/ttm_bo.c +++ b/sys/dev/pci/drm/ttm/ttm_bo.c @@ -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; } -- 2.20.1