etnaviv: drm: Suppress get-param error message for non-existent core
The -ENXIO return value isn't necessarily an error condition. When iterating over cores, this signals that there are no more cores to be found. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28921>
This commit is contained in:
@@ -194,7 +194,9 @@ static uint64_t get_param(struct etna_device *dev, uint32_t core, uint32_t param
|
||||
|
||||
ret = drmCommandWriteRead(dev->fd, DRM_ETNAVIV_GET_PARAM, &req, sizeof(req));
|
||||
if (ret) {
|
||||
ERROR_MSG("get-param (%x) failed! %d (%s)", param, ret, strerror(errno));
|
||||
if (ret != -ENXIO)
|
||||
ERROR_MSG("get-param (%x) failed! %d (%s)", param, ret,
|
||||
strerror(errno));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user