答复: [PATCH] drm/amdgpu: avoid drm error log during S3 on RHEL7.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No problem!

Thanks
JimQu

________________________________________
å??件人: Christian König <deathsimple at vodafone.de>
å??é??æ?¶é?´: 2016å¹´10æ??20æ?¥ 15:50
�件人: Qu, Jim; amd-gfx at lists.freedesktop.org
主�: Re: [PATCH] drm/amdgpu: avoid drm error log during S3 on RHEL7.3

Am 20.10.2016 um 09:00 schrieb jimqu:
> Change-Id: I04dc3d2749d162367a6745ea0e618c4d7d3cae8d
> Signed-off-by: JimQu <Jim.Qu at amd.com>
Patch is Reviewed-by: Christian König <christian.koenig at amd.com>.

Nice catch, we probably have that on some other places as well. Have you
also checked the other DRM_ERROR() occasions in that file?

Regards,
Christian.

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> index cf03f9f..7182812 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> @@ -530,7 +530,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;
>               }
>




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux