diff --git a/src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_hwctx.c b/src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_hwctx.c index 66b6ea20a7d..231dee2a21e 100644 --- a/src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_hwctx.c +++ b/src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_hwctx.c @@ -24,9 +24,14 @@ int xocl_get_slot_id_by_hw_ctx_id(struct xocl_dev *xdev, mutex_lock(&client->lock); hw_ctx = kds_get_hw_ctx_by_id(client, hw_ctx_id); if (!hw_ctx) { - userpf_err(xdev, "No valid HW context is open"); + /* This is a woraround. This is only valid for single slot case + * and application use legacy application flow but create + * multiple IPs. For multi-slot case consider this is an Error. + */ + userpf_info(xdev, "WARNING !!!! No valid HW context is open." + " Continuing with default one"); mutex_unlock(&client->lock); - return -EINVAL; + return 0; } mutex_unlock(&client->lock);