From: Mario Limonciello <superm1@kernel.org>
To: Lizhi Hou <lizhi.hou@amd.com>,
ogabbay@kernel.org, quic_jhugo@quicinc.com,
dri-devel@lists.freedesktop.org, karol.wachowski@linux.intel.com,
max.zhen@amd.com
Cc: linux-kernel@vger.kernel.org, sonal.santan@amd.com
Subject: Re: [PATCH V1] accel/amdxdna: Downgrade user triggered error messages to debug
Date: Wed, 2 Dec 2026 15:11:27 -0600 [thread overview]
Message-ID: <acef1d27-1c92-431a-a006-ddf0dea9b9dc@kernel.org> (raw)
In-Reply-To: <20261202210255.3268104-1-lizhi.hou@amd.com>
On 12/2/26 15:02, Lizhi Hou wrote:
> Many driver messages that report a rejected ioctl argument are logged at
> error level. Probing optional parameters and passing bad arguments is
> ordinary user space behaviour, and the handlers already return an error
> to the caller, so these are not driver errors.
>
> Downgrade these messages to debug level so they remain available via
> dynamic debug without spamming the log.
>
> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Thanks for that fix.
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
> ---
> drivers/accel/amdxdna/aie2_ctx.c | 4 ++--
> drivers/accel/amdxdna/aie2_message.c | 8 +++----
> drivers/accel/amdxdna/aie2_pci.c | 20 ++++++++---------
> drivers/accel/amdxdna/aie4_ctx.c | 32 ++++++++++++++--------------
> drivers/accel/amdxdna/aie4_pci.c | 8 +++----
> drivers/accel/amdxdna/amdxdna_ctx.c | 14 ++++++------
> drivers/accel/amdxdna/amdxdna_gem.c | 16 +++++++-------
> 7 files changed, 51 insertions(+), 51 deletions(-)
>
> diff --git a/drivers/accel/amdxdna/aie2_ctx.c b/drivers/accel/amdxdna/aie2_ctx.c
> index 0a6be8ba8e3ce..aa14f7157f970 100644
> --- a/drivers/accel/amdxdna/aie2_ctx.c
> +++ b/drivers/accel/amdxdna/aie2_ctx.c
> @@ -548,7 +548,7 @@ static int aie2_hwctx_col_list(struct amdxdna_hwctx *hwctx)
>
> hwctx->num_col = hwctx->num_tiles / ndev->aie.metadata.core.row_count;
> if (!hwctx->num_col || hwctx->num_col > ndev->total_col) {
> - XDNA_ERR(xdna, "Invalid num_col %d", hwctx->num_col);
> + XDNA_DBG(xdna, "Invalid num_col %d", hwctx->num_col);
> return -EINVAL;
> }
>
> @@ -953,7 +953,7 @@ static int aie2_hwctx_cu_config(struct amdxdna_hwctx *hwctx, void *buf, u32 size
> return -EINVAL;
>
> if (hwctx->cus) {
> - XDNA_ERR(xdna, "Not support re-config CU");
> + XDNA_DBG(xdna, "Not support re-config CU");
> return -EINVAL;
> }
>
> diff --git a/drivers/accel/amdxdna/aie2_message.c b/drivers/accel/amdxdna/aie2_message.c
> index d95a18af9b091..078a53586e844 100644
> --- a/drivers/accel/amdxdna/aie2_message.c
> +++ b/drivers/accel/amdxdna/aie2_message.c
> @@ -402,14 +402,14 @@ int aie2_query_status(struct amdxdna_dev_hdl *ndev, char __user *buf,
>
> if (buf_sz < resp.size) {
> ret = -EINVAL;
> - XDNA_ERR(xdna, "Bad buffer size. Available: %u. Needs: %u", buf_sz, resp.size);
> + XDNA_DBG(xdna, "Bad buffer size. Available: %u. Needs: %u", buf_sz, resp.size);
> goto fail;
> }
>
> size = min(size, resp.size);
> if (copy_to_user(buf, buff_addr, size)) {
> ret = -EFAULT;
> - XDNA_ERR(xdna, "Failed to copy NPU status to user space");
> + XDNA_DBG(xdna, "Failed to copy NPU status to user space");
> goto fail;
> }
>
> @@ -452,14 +452,14 @@ int aie2_query_telemetry(struct amdxdna_dev_hdl *ndev,
>
> if (buf_sz < resp.size) {
> ret = -EINVAL;
> - XDNA_ERR(xdna, "Bad buffer size. Available: %u. Needs: %u", buf_sz, resp.size);
> + XDNA_DBG(xdna, "Bad buffer size. Available: %u. Needs: %u", buf_sz, resp.size);
> goto free_buf;
> }
>
> size = min(size, resp.size);
> if (copy_to_user(buf, addr, size)) {
> ret = -EFAULT;
> - XDNA_ERR(xdna, "Failed to copy telemetry to user space");
> + XDNA_DBG(xdna, "Failed to copy telemetry to user space");
> goto free_buf;
> }
>
> diff --git a/drivers/accel/amdxdna/aie2_pci.c b/drivers/accel/amdxdna/aie2_pci.c
> index cc53c1fc39443..a6564aec0d5b8 100644
> --- a/drivers/accel/amdxdna/aie2_pci.c
> +++ b/drivers/accel/amdxdna/aie2_pci.c
> @@ -668,7 +668,7 @@ static int aie2_get_aie_status(struct amdxdna_client *client,
> ndev = xdna->dev_handle;
> buf_sz = min(args->buffer_size, sizeof(status));
> if (copy_from_user(&status, u64_to_user_ptr(args->buffer), buf_sz)) {
> - XDNA_ERR(xdna, "Failed to copy AIE request into kernel");
> + XDNA_DBG(xdna, "Failed to copy AIE request into kernel");
> return -EFAULT;
> }
>
> @@ -680,7 +680,7 @@ static int aie2_get_aie_status(struct amdxdna_client *client,
> }
>
> if (copy_to_user(u64_to_user_ptr(args->buffer), &status, buf_sz)) {
> - XDNA_ERR(xdna, "Failed to copy AIE request info to user space");
> + XDNA_DBG(xdna, "Failed to copy AIE request info to user space");
> return -EFAULT;
> }
>
> @@ -921,7 +921,7 @@ static int aie2_get_telemetry(struct amdxdna_client *client,
> elem_num = xdna->dev_handle->priv->hwctx_limit;
> header_sz = struct_size(header, map, elem_num);
> if (args->buffer_size <= header_sz) {
> - XDNA_ERR(xdna, "Invalid buffer size");
> + XDNA_DBG(xdna, "Invalid buffer size");
> return -EINVAL;
> }
> telemetry_data_sz = args->buffer_size - header_sz;
> @@ -931,7 +931,7 @@ static int aie2_get_telemetry(struct amdxdna_client *client,
> return -ENOMEM;
>
> if (copy_from_user(header, u64_to_user_ptr(args->buffer), sizeof(*header))) {
> - XDNA_ERR(xdna, "Failed to copy telemetry header from user");
> + XDNA_DBG(xdna, "Failed to copy telemetry header from user");
> return -EFAULT;
> }
>
> @@ -952,7 +952,7 @@ static int aie2_get_telemetry(struct amdxdna_client *client,
> }
>
> if (copy_to_user(u64_to_user_ptr(args->buffer), header, header_sz)) {
> - XDNA_ERR(xdna, "Copy header failed");
> + XDNA_DBG(xdna, "Copy header failed");
> return -EFAULT;
> }
>
> @@ -1029,7 +1029,7 @@ static int aie2_get_info(struct amdxdna_client *client, struct amdxdna_drm_get_i
> ret = aie2_get_preempt_state(client, args);
> break;
> default:
> - XDNA_ERR(xdna, "Not supported request parameter %u", args->param);
> + XDNA_DBG(xdna, "Not supported request parameter %u", args->param);
> ret = -EOPNOTSUPP;
> }
>
> @@ -1100,7 +1100,7 @@ static int aie2_get_array(struct amdxdna_client *client,
> ret = amdxdna_drm_get_bo_usage(&xdna->ddev, args);
> break;
> default:
> - XDNA_ERR(xdna, "Not supported request parameter %u", args->param);
> + XDNA_DBG(xdna, "Not supported request parameter %u", args->param);
> ret = -EOPNOTSUPP;
> }
>
> @@ -1121,7 +1121,7 @@ static int aie2_set_power_mode(struct amdxdna_client *client,
>
> if (copy_from_user(&power_state, u64_to_user_ptr(args->buffer),
> sizeof(power_state))) {
> - XDNA_ERR(xdna, "Failed to copy power mode request into kernel");
> + XDNA_DBG(xdna, "Failed to copy power mode request into kernel");
> return -EFAULT;
> }
>
> @@ -1130,7 +1130,7 @@ static int aie2_set_power_mode(struct amdxdna_client *client,
>
> power_mode = power_state.power_mode;
> if (power_mode > POWER_MODE_TURBO) {
> - XDNA_ERR(xdna, "Invalid power mode %d", power_mode);
> + XDNA_DBG(xdna, "Invalid power mode %d", power_mode);
> return -EINVAL;
> }
>
> @@ -1191,7 +1191,7 @@ static int aie2_set_state(struct amdxdna_client *client,
> ret = aie2_set_preempt_state(client, args);
> break;
> default:
> - XDNA_ERR(xdna, "Not supported request parameter %u", args->param);
> + XDNA_DBG(xdna, "Not supported request parameter %u", args->param);
> ret = -EOPNOTSUPP;
> break;
> }
> diff --git a/drivers/accel/amdxdna/aie4_ctx.c b/drivers/accel/amdxdna/aie4_ctx.c
> index 25c801a89488c..b3cb347c00b78 100644
> --- a/drivers/accel/amdxdna/aie4_ctx.c
> +++ b/drivers/accel/amdxdna/aie4_ctx.c
> @@ -366,14 +366,14 @@ static int aie4_hwctx_umq_init(struct amdxdna_hwctx *hwctx)
> /* Queue lives in user-allocated BO so device can access it under PASID. */
> umq_bo = amdxdna_gem_get_obj(hwctx->client, hwctx->umq_bo_hdl, AMDXDNA_BO_SHARE);
> if (!umq_bo) {
> - XDNA_ERR(xdna, "cannot find umq_bo handle %d", hwctx->umq_bo_hdl);
> + XDNA_DBG(xdna, "cannot find umq_bo handle %d", hwctx->umq_bo_hdl);
> return -ENOENT;
> }
>
> /* Ensure user BO can hold queue header and direct/indirect packet arrays. */
> if (umq_bo->mem.size < sizeof(*qhdr) ||
> (umq_bo->mem.size < sizeof(*qhdr) + pkts_sz + indir_pkts_sz)) {
> - XDNA_ERR(xdna, "umq_bo size %zu is too small",
> + XDNA_DBG(xdna, "umq_bo size %zu is too small",
> (size_t)umq_bo->mem.size);
> ret = -EINVAL;
> goto put_umq_bo;
> @@ -728,7 +728,7 @@ static int fill_indirect_pkt(struct amdxdna_hwctx_priv *priv, u64 slot_idx,
> u16 i;
>
> if (!entries || entries > HSA_MAX_LEVEL1_INDIRECT_ENTRIES) {
> - XDNA_ERR(priv->hwctx->client->xdna, "Invalid indirect entries %u", entries);
> + XDNA_DBG(priv->hwctx->client->xdna, "Invalid indirect entries %u", entries);
> return -EINVAL;
> }
>
> @@ -742,11 +742,11 @@ static int fill_indirect_pkt(struct amdxdna_hwctx_priv *priv, u64 slot_idx,
>
> /* Validate uc_index against indirect packet bounds before publication. */
> if (uci >= HSA_MAX_LEVEL1_INDIRECT_ENTRIES) {
> - XDNA_ERR(priv->hwctx->client->xdna, "Invalid uc index %d", uci);
> + XDNA_DBG(priv->hwctx->client->xdna, "Invalid uc index %d", uci);
> return -EINVAL;
> }
> if (upper_32_bits(dtrace_buf) > U16_MAX) {
> - XDNA_ERR(priv->hwctx->client->xdna,
> + XDNA_DBG(priv->hwctx->client->xdna,
> "Invalid dtrace buffer address 0x%llx", dtrace_buf);
> return -EINVAL;
> }
> @@ -813,19 +813,19 @@ static int validate_cmd_abo(struct amdxdna_dev *xdna, struct amdxdna_gem_obj *cm
>
> op = amdxdna_cmd_get_op(cmd_abo);
> if (op != ERT_START_DPU) {
> - XDNA_ERR(xdna, "Invalid exec buf op, %d", op);
> + XDNA_DBG(xdna, "Invalid exec buf op, %d", op);
> return -EINVAL;
> }
>
> dpu = amdxdna_cmd_get_payload(cmd_abo, &payload_size);
> if (!dpu || payload_size < sizeof(*dpu)) {
> - XDNA_ERR(xdna, "Invalid DPU payload, size %u", payload_size);
> + XDNA_DBG(xdna, "Invalid DPU payload, size %u", payload_size);
> return -EINVAL;
> }
> chained = READ_ONCE(dpu->chained);
> if (chained >= HSA_MAX_LEVEL1_INDIRECT_ENTRIES ||
> payload_size < (u32)(chained + 1) * sizeof(*dpu)) {
> - XDNA_ERR(xdna, "Invalid DPU chained entries %u, payload %u",
> + XDNA_DBG(xdna, "Invalid DPU chained entries %u, payload %u",
> chained, payload_size);
> return -EINVAL;
> }
> @@ -834,7 +834,7 @@ static int validate_cmd_abo(struct amdxdna_dev *xdna, struct amdxdna_gem_obj *cm
> u64 dtrace_buf = READ_ONCE(dpu->dtrace_buffer);
>
> if (upper_32_bits(dtrace_buf) > U16_MAX) {
> - XDNA_ERR(xdna, "Invalid dtrace buffer address 0x%llx", dtrace_buf);
> + XDNA_DBG(xdna, "Invalid dtrace buffer address 0x%llx", dtrace_buf);
> return -EINVAL;
> }
> } else {
> @@ -843,11 +843,11 @@ static int validate_cmd_abo(struct amdxdna_dev *xdna, struct amdxdna_gem_obj *cm
> u64 dtrace_buf = READ_ONCE(dpu[i].dtrace_buffer);
>
> if (uci >= HSA_MAX_LEVEL1_INDIRECT_ENTRIES) {
> - XDNA_ERR(xdna, "Invalid uc index %u", uci);
> + XDNA_DBG(xdna, "Invalid uc index %u", uci);
> return -EINVAL;
> }
> if (upper_32_bits(dtrace_buf) > U16_MAX) {
> - XDNA_ERR(xdna, "Invalid dtrace buffer address 0x%llx", dtrace_buf);
> + XDNA_DBG(xdna, "Invalid dtrace buffer address 0x%llx", dtrace_buf);
> return -EINVAL;
> }
> }
> @@ -1273,14 +1273,14 @@ static int get_cmd_bos(struct amdxdna_hwctx *hwctx, struct amdxdna_sched_job *jo
>
> payload = amdxdna_cmd_get_payload(job->cmd_bo, &payload_len);
> if (!payload) {
> - XDNA_ERR(xdna, "Invalid cmd payload for chained cmd");
> + XDNA_DBG(xdna, "Invalid cmd payload for chained cmd");
> return -EINVAL;
> }
> ccnt = READ_ONCE(payload->command_count);
> /* A command chain cannot exceed queue capacity. */
> if (!ccnt || ccnt > CTX_MAX_CMDS ||
> payload_len < struct_size(payload, data, ccnt)) {
> - XDNA_ERR(xdna, "Invalid command count %u", ccnt);
> + XDNA_DBG(xdna, "Invalid command count %u", ccnt);
> return -EINVAL;
> }
>
> @@ -1293,7 +1293,7 @@ static int get_cmd_bos(struct amdxdna_hwctx *hwctx, struct amdxdna_sched_job *jo
>
> abo = amdxdna_gem_get_obj(hwctx->client, boh, AMDXDNA_BO_SHARE);
> if (!abo) {
> - XDNA_ERR(xdna, "Failed to find cmd BO %u at index %u", boh, i);
> + XDNA_DBG(xdna, "Failed to find cmd BO %u at index %u", boh, i);
> ret = -ENOENT;
> goto put_bos;
> }
> @@ -1483,13 +1483,13 @@ int aie4_cmd_submit(struct amdxdna_hwctx *hwctx, struct amdxdna_sched_job *job,
> XDNA_DBG(xdna, "ctx %s job %p received", hwctx->name, job);
>
> if (!job->cmd_bo) {
> - XDNA_ERR(xdna, "No command BO in job");
> + XDNA_DBG(xdna, "No command BO in job");
> return -EINVAL;
> }
>
> op = amdxdna_cmd_get_op(job->cmd_bo);
> if (op != ERT_START_DPU && op != ERT_CMD_CHAIN) {
> - XDNA_ERR(xdna, "Invalid cmd opcode %d", op);
> + XDNA_DBG(xdna, "Invalid cmd opcode %d", op);
> return -EINVAL;
> }
>
> diff --git a/drivers/accel/amdxdna/aie4_pci.c b/drivers/accel/amdxdna/aie4_pci.c
> index ebb87afa6afb3..3222cc8b92550 100644
> --- a/drivers/accel/amdxdna/aie4_pci.c
> +++ b/drivers/accel/amdxdna/aie4_pci.c
> @@ -964,7 +964,7 @@ static int aie4_get_info(struct amdxdna_client *client, struct amdxdna_drm_get_i
> ret = aie4_query_resource_info(client, args);
> break;
> default:
> - XDNA_ERR(xdna, "Not supported request parameter %u", args->param);
> + XDNA_DBG(xdna, "Not supported request parameter %u", args->param);
> ret = -EOPNOTSUPP;
> }
>
> @@ -990,7 +990,7 @@ static int aie4_set_power_mode(struct amdxdna_client *client,
>
> if (copy_from_user(&power_state, u64_to_user_ptr(args->buffer),
> sizeof(power_state))) {
> - XDNA_ERR(xdna, "Failed to copy power mode request into kernel");
> + XDNA_DBG(xdna, "Failed to copy power mode request into kernel");
> return -EFAULT;
> }
>
> @@ -999,7 +999,7 @@ static int aie4_set_power_mode(struct amdxdna_client *client,
>
> power_mode = power_state.power_mode;
> if (power_mode > POWER_MODE_TURBO) {
> - XDNA_ERR(xdna, "Invalid power mode %d", power_mode);
> + XDNA_DBG(xdna, "Invalid power mode %d", power_mode);
> return -EINVAL;
> }
>
> @@ -1031,7 +1031,7 @@ static int aie4_set_state(struct amdxdna_client *client,
> ret = aie4_set_power_mode(client, args);
> break;
> default:
> - XDNA_ERR(xdna, "Not supported request parameter %u", args->param);
> + XDNA_DBG(xdna, "Not supported request parameter %u", args->param);
> ret = -EOPNOTSUPP;
> break;
> }
> diff --git a/drivers/accel/amdxdna/amdxdna_ctx.c b/drivers/accel/amdxdna/amdxdna_ctx.c
> index 8601655cecdb5..1be859b7baa76 100644
> --- a/drivers/accel/amdxdna/amdxdna_ctx.c
> +++ b/drivers/accel/amdxdna/amdxdna_ctx.c
> @@ -241,7 +241,7 @@ int amdxdna_drm_create_hwctx_ioctl(struct drm_device *dev, void *data, struct dr
> return -ENOMEM;
>
> if (copy_from_user(&hwctx->qos, u64_to_user_ptr(args->qos_p), sizeof(hwctx->qos))) {
> - XDNA_ERR(xdna, "Access QoS info failed");
> + XDNA_DBG(xdna, "Access QoS info failed");
> kfree(hwctx);
> return -EFAULT;
> }
> @@ -369,7 +369,7 @@ int amdxdna_drm_config_hwctx_ioctl(struct drm_device *dev, void *data, struct dr
> case DRM_AMDXDNA_HWCTX_REMOVE_FW_BUF:
> /* For those types that param_val is pointer */
> if (buf_size > PAGE_SIZE) {
> - XDNA_ERR(xdna, "Config param buffer too large");
> + XDNA_DBG(xdna, "Config param buffer too large");
> return -E2BIG;
> }
>
> @@ -615,7 +615,7 @@ int amdxdna_cmd_submit(struct amdxdna_client *client,
> if (cmd_bo_hdl != AMDXDNA_INVALID_BO_HANDLE) {
> job->cmd_bo = amdxdna_gem_get_obj(client, cmd_bo_hdl, AMDXDNA_BO_SHARE);
> if (!job->cmd_bo) {
> - XDNA_ERR(xdna, "Failed to get cmd bo from %d", cmd_bo_hdl);
> + XDNA_DBG(xdna, "Failed to get cmd bo from %d", cmd_bo_hdl);
> ret = -EINVAL;
> goto free_job;
> }
> @@ -633,7 +633,7 @@ int amdxdna_cmd_submit(struct amdxdna_client *client,
>
> ret = amdxdna_arg_bos_lookup(client, job, arg_bo_hdls, arg_bo_cnt);
> if (ret) {
> - XDNA_ERR(xdna, "Argument BOs lookup failed, ret %d", ret);
> + XDNA_DBG(xdna, "Argument BOs lookup failed, ret %d", ret);
> goto cmd_put;
> }
>
> @@ -709,13 +709,13 @@ static int amdxdna_drm_submit_execbuf(struct amdxdna_client *client,
> int ret;
>
> if (args->arg_count > MAX_ARG_COUNT) {
> - XDNA_ERR(xdna, "Invalid arg bo count %d", args->arg_count);
> + XDNA_DBG(xdna, "Invalid arg bo count %d", args->arg_count);
> return -EINVAL;
> }
>
> /* Only support single command for now. */
> if (args->cmd_count != 1) {
> - XDNA_ERR(xdna, "Invalid cmd bo count %d", args->cmd_count);
> + XDNA_DBG(xdna, "Invalid cmd bo count %d", args->cmd_count);
> return -EINVAL;
> }
>
> @@ -759,7 +759,7 @@ int amdxdna_drm_submit_cmd_ioctl(struct drm_device *dev, void *data, struct drm_
> return amdxdna_drm_submit_execbuf(client, args);
> }
>
> - XDNA_ERR(client->xdna, "Invalid command type %d", args->type);
> + XDNA_DBG(client->xdna, "Invalid command type %d", args->type);
> return -EINVAL;
> }
>
> diff --git a/drivers/accel/amdxdna/amdxdna_gem.c b/drivers/accel/amdxdna/amdxdna_gem.c
> index 8454f3780d737..3de8e1b55aea4 100644
> --- a/drivers/accel/amdxdna/amdxdna_gem.c
> +++ b/drivers/accel/amdxdna/amdxdna_gem.c
> @@ -123,7 +123,7 @@ amdxdna_gem_heap_alloc(struct amdxdna_gem_obj *abo)
> mutex_lock(&client->mm_lock);
>
> if (!mem->size || mem->size > xdna->dev_info->dev_heap_max_size) {
> - XDNA_ERR(xdna, "Invalid dev bo size 0x%lx, max heap 0x%lx",
> + XDNA_DBG(xdna, "Invalid dev bo size 0x%lx, max heap 0x%lx",
> mem->size, xdna->dev_info->dev_heap_max_size);
> ret = -EINVAL;
> goto unlock_out;
> @@ -1111,7 +1111,7 @@ amdxdna_gem_create_cbuf_object(struct drm_device *dev, struct amdxdna_drm_create
> u64 align;
>
> if (!size) {
> - XDNA_ERR(xdna, "Invalid BO size 0x%llx", args->size);
> + XDNA_DBG(xdna, "Invalid BO size 0x%llx", args->size);
> return ERR_PTR(-EINVAL);
> }
>
> @@ -1220,7 +1220,7 @@ amdxdna_drm_create_dev_heap_bo(struct drm_device *dev,
> WARN_ON(!is_power_of_2(xdna->dev_info->dev_mem_size));
> XDNA_DBG(xdna, "Requested dev heap size 0x%llx", args->size);
> if (!args->size || !IS_ALIGNED(args->size, xdna->dev_info->dev_mem_size)) {
> - XDNA_ERR(xdna, "The dev heap size 0x%llx is not multiple of 0x%lx",
> + XDNA_DBG(xdna, "The dev heap size 0x%llx is not multiple of 0x%lx",
> args->size, xdna->dev_info->dev_mem_size);
> return ERR_PTR(-EINVAL);
> }
> @@ -1235,14 +1235,14 @@ amdxdna_drm_create_dev_heap_bo(struct drm_device *dev,
>
> if (!xdna->dev_info->ops->hwctx_heap_expand &&
> client->dev_heap_nid > 0) {
> - XDNA_ERR(xdna, "Heap expansion is not supported");
> + XDNA_DBG(xdna, "Heap expansion is not supported");
> ret = -EOPNOTSUPP;
> goto mm_unlock;
> }
>
> if (client->total_heap_size + abo->mem.size >
> xdna->dev_info->dev_heap_max_size) {
> - XDNA_ERR(xdna, "Heap size 0x%lx + 0x%lx exceeds max 0x%lx",
> + XDNA_DBG(xdna, "Heap size 0x%lx + 0x%lx exceeds max 0x%lx",
> client->total_heap_size, abo->mem.size,
> xdna->dev_info->dev_heap_max_size);
> ret = -ENOSPC;
> @@ -1282,7 +1282,7 @@ amdxdna_drm_create_dev_bo(struct drm_device *dev,
> int ret;
>
> if (!aligned_sz) {
> - XDNA_ERR(xdna, "Invalid BO size 0x%llx", args->size);
> + XDNA_DBG(xdna, "Invalid BO size 0x%llx", args->size);
> return ERR_PTR(-EINVAL);
> }
>
> @@ -1541,7 +1541,7 @@ int amdxdna_drm_sync_bo_ioctl(struct drm_device *dev,
>
> gobj = drm_gem_object_lookup(filp, args->handle);
> if (!gobj) {
> - XDNA_ERR(xdna, "Lookup GEM object failed");
> + XDNA_DBG(xdna, "Lookup GEM object failed");
> return -ENOENT;
> }
> abo = to_xdna_obj(gobj);
> @@ -1572,7 +1572,7 @@ int amdxdna_drm_sync_bo_ioctl(struct drm_device *dev,
> } else {
> ret = amdxdna_gem_pin(abo);
> if (ret) {
> - XDNA_ERR(xdna, "Pin BO %d failed, ret %d", args->handle, ret);
> + XDNA_DBG(xdna, "Pin BO %d failed, ret %d", args->handle, ret);
> goto put_obj;
> }
>
next prev parent reply other threads:[~2026-12-02 21:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 21:02 Lizhi Hou
2026-12-02 21:11 ` Mario Limonciello [this message]
2026-12-02 22:00 ` Lizhi Hou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=acef1d27-1c92-431a-a006-ddf0dea9b9dc@kernel.org \
--to=superm1@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=karol.wachowski@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizhi.hou@amd.com \
--cc=max.zhen@amd.com \
--cc=ogabbay@kernel.org \
--cc=quic_jhugo@quicinc.com \
--cc=sonal.santan@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®