diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2018-01-08 11:20:25 +0100 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2018-01-15 10:01:39 +0100 |
commit | 57d3d4c96887cde016fe1d2766196accf77ca423 (patch) | |
tree | 8f53f3a325ce24c88b308a0ada737184c1b66bbc /amdgpu | |
parent | fd9bcb73e9c5a01085069b37c2f5e04300a9b4d4 (diff) | |
download | libdrm-57d3d4c96887cde016fe1d2766196accf77ca423.tar.gz libdrm-57d3d4c96887cde016fe1d2766196accf77ca423.tar.bz2 libdrm-57d3d4c96887cde016fe1d2766196accf77ca423.zip |
amdgpu: Don't print error message if parse_one_line returned -EAGAIN
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@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'amdgpu')
-rw-r--r-- | amdgpu/amdgpu_asic_id.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |