diff --git a/src/runtime_src/core/edge/drm/zocl/common/zocl_ioctl.c b/src/runtime_src/core/edge/drm/zocl/common/zocl_ioctl.c index f4955dc4046..4ad23fb06ec 100644 --- a/src/runtime_src/core/edge/drm/zocl/common/zocl_ioctl.c +++ b/src/runtime_src/core/edge/drm/zocl/common/zocl_ioctl.c @@ -76,7 +76,7 @@ get_legacy_slot(struct drm_zocl_dev *zdev, struct axlf *axlf, int* slot_id) slot->xclbin_type = zocl_xclbin_type; mutex_unlock(&slot->slot_xclbin_lock); *slot_id = s_id; - DRM_INFO("Found free Slot-%d is selected for xclbin \n", s_id); + DRM_DEBUG("Found free Slot-%d is selected for xclbin \n", s_id); return 0; } @@ -119,7 +119,7 @@ get_free_slot(struct drm_zocl_dev *zdev, struct axlf *axlf, int* slot_id) DRM_ERROR("%s: slot %d doesn't exists or invalid", __func__, s_id); return -EINVAL; } - DRM_INFO("Found a free slot %d for XCLBIN %pUb", s_id, &axlf->m_header.uuid); + DRM_DEBUG("Found a free slot %d for XCLBIN %pUb", s_id, &axlf->m_header.uuid); // acquiring the free slot zdev->slot_mask |= 1 << s_id; *slot_id = s_id; @@ -201,7 +201,7 @@ zocl_read_axlf_ioctl(struct drm_device *ddev, void *data, struct drm_file *filp) DRM_WARN("Unable to allocate slot for xclbin."); return ret; } - DRM_INFO("Allocated slot %d to load xclbin in device.\n", slot_id); + DRM_DEBUG("Allocated slot %d to load xclbin in device.\n", slot_id); return zocl_xclbin_read_axlf(zdev, axlf_obj, client, slot_id); } @@ -227,7 +227,7 @@ int zocl_create_hw_ctx_ioctl(struct drm_device *dev, void *data, struct drm_file DRM_WARN("Unable to allocate slot for xclbin."); return ret; } - DRM_INFO("Allocated slot %d to load xclbin in hw_context.\n", slot_id); + DRM_DEBUG("Allocated slot %d to load xclbin in hw_context.\n", slot_id); ret = zocl_xclbin_read_axlf(zdev, &axlf_obj, client, slot_id); if (ret) { diff --git a/src/runtime_src/core/edge/drm/zocl/common/zocl_xclbin.c b/src/runtime_src/core/edge/drm/zocl/common/zocl_xclbin.c index d9452c25c04..6966a18f912 100644 --- a/src/runtime_src/core/edge/drm/zocl/common/zocl_xclbin.c +++ b/src/runtime_src/core/edge/drm/zocl/common/zocl_xclbin.c @@ -218,11 +218,11 @@ zocl_read_sect(enum axlf_section_kind kind, void *sect, err = xrt_xclbin_section_info(axlf_full, kind, &offset, &size); if (err) { - DRM_INFO("skip kind %d(%s) return code: %d", kind, + DRM_DEBUG("skip kind %d(%s) return code: %d", kind, xrt_xclbin_kind_to_string(kind), err); return 0; } else { - DRM_INFO("found kind %d(%s)", kind, + DRM_DEBUG("found kind %d(%s)", kind, xrt_xclbin_kind_to_string(kind)); } diff --git a/src/runtime_src/core/edge/drm/zocl/edge/zocl_edge_xclbin.c b/src/runtime_src/core/edge/drm/zocl/edge/zocl_edge_xclbin.c index f912c9638fc..29303ab4502 100644 --- a/src/runtime_src/core/edge/drm/zocl/edge/zocl_edge_xclbin.c +++ b/src/runtime_src/core/edge/drm/zocl/edge/zocl_edge_xclbin.c @@ -97,6 +97,7 @@ is_aie_only(struct axlf *axlf) * @param zdev: zocl device structure * @param axlf_obj: xclbin userspace structure * @param client: user space client attached to device + * @param slot_id slot id allocated to load xclbin * * @return 0 on success, Error code on failure. */ @@ -240,7 +241,7 @@ zocl_xclbin_read_axlf(struct drm_zocl_dev *zdev, struct drm_zocl_axlf *axlf_obj, } else { if (!(axlf_obj->za_flags & DRM_ZOCL_PLATFORM_PR)) { - DRM_INFO("disable partial bitstream download, " + DRM_DEBUG("disable partial bitstream download, " "axlf flags is %d", axlf_obj->za_flags); } else { /* @@ -330,11 +331,18 @@ zocl_xclbin_read_axlf(struct drm_zocl_dev *zdev, struct drm_zocl_axlf *axlf_obj, if (ret) goto out0; + DRM_INFO("xclbin %pUb successfully loaded to slot %d\n", + zocl_xclbin_get_uuid(slot), slot_id); + + goto done; + out0: + DRM_ERROR("%s: failed to load xclbin %pUb to slot %d ret: %d\n", + __func__, zocl_xclbin_get_uuid(slot), slot_id, ret); + +done: vfree(aie_res); vfree(axlf); - DRM_INFO("%s %pUb ret: %d", __func__, zocl_xclbin_get_uuid(slot), - ret); mutex_unlock(&slot->slot_xclbin_lock); return ret; } diff --git a/src/runtime_src/core/edge/drm/zocl/zert/zocl_ps_xclbin.c b/src/runtime_src/core/edge/drm/zocl/zert/zocl_ps_xclbin.c index f15255268b7..989e3874746 100644 --- a/src/runtime_src/core/edge/drm/zocl/zert/zocl_ps_xclbin.c +++ b/src/runtime_src/core/edge/drm/zocl/zert/zocl_ps_xclbin.c @@ -35,11 +35,11 @@ zocl_read_sect_kernel(enum axlf_section_kind kind, void *sect, err = xrt_xclbin_section_info(axlf_full, kind, &offset, &size); if (err) { - DRM_INFO("skip kind %d(%s) return code: %d", kind, + DRM_DEBUG("skip kind %d(%s) return code: %d", kind, xrt_xclbin_kind_to_string(kind), err); return 0; } else { - DRM_INFO("found kind %d(%s)", kind, + DRM_DEBUG("found kind %d(%s)", kind, xrt_xclbin_kind_to_string(kind)); }