aboutsummaryrefslogtreecommitdiffstats
path: root/amdgpu
diff options
context:
space:
mode:
authorMichel Dänzer2018-01-08 04:20:25 -0600
committerMichel Dänzer2018-01-15 03:01:39 -0600
commit57d3d4c96887cde016fe1d2766196accf77ca423 (patch)
tree8f53f3a325ce24c88b308a0ada737184c1b66bbc /amdgpu
parentfd9bcb73e9c5a01085069b37c2f5e04300a9b4d4 (diff)
downloadexternal-libdrm-57d3d4c96887cde016fe1d2766196accf77ca423.tar.gz
external-libdrm-57d3d4c96887cde016fe1d2766196accf77ca423.tar.xz
external-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.c2
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)
155 if (r == -EINVAL) { 155 if (r == -EINVAL) {
156 fprintf(stderr, "Invalid format: %s: line %d: %s\n", 156 fprintf(stderr, "Invalid format: %s: line %d: %s\n",
157 AMDGPU_ASIC_ID_TABLE, line_num, line); 157 AMDGPU_ASIC_ID_TABLE, line_num, line);
158 } else if (r) { 158 } else if (r && r != -EAGAIN) {
159 fprintf(stderr, "%s: Cannot parse ASIC IDs: %s\n", 159 fprintf(stderr, "%s: Cannot parse ASIC IDs: %s\n",
160 __func__, strerror(-r)); 160 __func__, strerror(-r));
161 } 161 }