drm/amdgpu: avoid drm error log during S3 on RHEL7.3
authorjimqu <Jim.Qu@amd.com>
Thu, 20 Oct 2016 06:58:04 +0000 (14:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Oct 2016 15:18:57 +0000 (11:18 -0400)
Signed-off-by: JimQu <Jim.Qu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

index b0f6e69..82dc8d2 100644 (file)
@@ -519,7 +519,8 @@ static int amdgpu_cs_parser_bos(struct amdgpu_cs_parser *p,
                r = ttm_eu_reserve_buffers(&p->ticket, &p->validated, true,
                                           &duplicates);
                if (unlikely(r != 0)) {
-                       DRM_ERROR("ttm_eu_reserve_buffers failed.\n");
+                       if (r != -ERESTARTSYS)
+                               DRM_ERROR("ttm_eu_reserve_buffers failed.\n");
                        goto error_free_pages;
                }