From: Lizhi Hou <lizhi.hou@amd.com>
To: "Mario Limonciello (AMD) (kernel.org)" <superm1@kernel.org>,
<ogabbay@kernel.org>, <quic_jhugo@quicinc.com>,
<maciej.falkowski@linux.intel.com>, <dan.carpenter@linaro.org>,
<dri-devel@lists.freedesktop.org>
Cc: <linux-kernel@vger.kernel.org>, <max.zhen@amd.com>,
<sonal.santan@amd.com>
Subject: Re: [PATCH] accel/amdxdna: Fix incorrect return value in aie2_hwctx_sync_debug_bo()
Date: Fri, 24 Oct 2025 13:09:23 -0700 [thread overview]
Message-ID: <0b9eb27e-b178-cfc8-5591-f1fb4b0595d3@amd.com> (raw)
In-Reply-To: <69e9de18-4553-474d-b7b0-d3ff3c2efbc5@kernel.org>
Applied to drm-misc-next.
On 10/24/25 11:06, Mario Limonciello (AMD) (kernel.org) wrote:
>
>
> On 10/24/2025 11:26 AM, Lizhi Hou wrote:
>> When the driver issues the SYNC_DEBUG_BO command, it currently returns 0
>> even if the firmware fails to execute the command. Update the driver to
>> return -EINVAL in this case to properly indicate the failure.
>>
>> Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
>> Closes:
>> https://lore.kernel.org/dri-devel/aPsadTBXunUSBByV@stanley.mountain/
>> Fixes: 7ea046838021 ("accel/amdxdna: Support firmware debug buffer")
>> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
> Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>> ---
>> drivers/accel/amdxdna/aie2_ctx.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/accel/amdxdna/aie2_ctx.c
>> b/drivers/accel/amdxdna/aie2_ctx.c
>> index 63450b7773ac..c6c473c78352 100644
>> --- a/drivers/accel/amdxdna/aie2_ctx.c
>> +++ b/drivers/accel/amdxdna/aie2_ctx.c
>> @@ -879,7 +879,7 @@ int aie2_hwctx_sync_debug_bo(struct amdxdna_hwctx
>> *hwctx, u32 debug_bo_hdl)
>> aie2_cmd_wait(hwctx, seq);
>> if (cmd.result) {
>> XDNA_ERR(xdna, "Response failure 0x%x", cmd.result);
>> - return ret;
>> + return -EINVAL;
>> }
>> return 0;
>
prev parent reply other threads:[~2025-10-24 20:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-24 16:26 Lizhi Hou
2025-10-24 18:06 ` Mario Limonciello (AMD) (kernel.org)
2025-10-24 20:09 ` Lizhi Hou [this message]
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=0b9eb27e-b178-cfc8-5591-f1fb4b0595d3@amd.com \
--to=lizhi.hou@amd.com \
--cc=dan.carpenter@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maciej.falkowski@linux.intel.com \
--cc=max.zhen@amd.com \
--cc=ogabbay@kernel.org \
--cc=quic_jhugo@quicinc.com \
--cc=sonal.santan@amd.com \
--cc=superm1@kernel.org \
/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®