[PATCH libdrm] amdgpu: Don't print error message if parse_one_line returned -EAGAIN

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

 



Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Mon, Jan 8, 2018 at 11:24 AM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> It means it just didn't find an entry for the GPU in the amdgpu.ids file.
>
> Fixes spurious
>
>  amdgpu_parse_asic_ids: Cannot parse ASIC IDs: Resource temporarily unavailable
>
> error messages in that case.
>
> Reported-by: Marek Olšák <marek.olsak at amd.com>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> ---
>  amdgpu/amdgpu_asic_id.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/amdgpu/amdgpu_asic_id.c b/amdgpu/amdgpu_asic_id.c
> index 0c8925e5..62459c09 100644
> --- a/amdgpu/amdgpu_asic_id.c
> +++ b/amdgpu/amdgpu_asic_id.c
> @@ -155,7 +155,7 @@ void amdgpu_parse_asic_ids(struct amdgpu_device *dev)
>         if (r == -EINVAL) {
>                 fprintf(stderr, "Invalid format: %s: line %d: %s\n",
>                         AMDGPU_ASIC_ID_TABLE, line_num, line);
> -       } else if (r) {
> +       } else if (r && r != -EAGAIN) {
>                 fprintf(stderr, "%s: Cannot parse ASIC IDs: %s\n",
>                         __func__, strerror(-r));
>         }
> --
> 2.15.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


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

  Powered by Linux