From: sashiko-bot@kernel.org
To: "Yuho Choi" <oss.patchbox@gmail.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
virtualization@lists.linux.dev,
"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH v1] vdpa/snet: Don't discard the DPU error in snet_send_ctrl_msg()
Date: Mon, 05 Oct 2026 04:56:30 +0000 [thread overview]
Message-ID: <20261005045631.4CBB71F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20261005044915.264532-1-oss.patchbox@gmail.com>
> snet_send_ctrl_msg() reads the error code the DPU reports when it ACKs
> a control message, but then overwrites it with the return value of
> snet_wait_for_dpu_completion(). As a result, a DESTROY, SUSPEND or
> RESUME that the DPU rejects is reported to the caller as a success as
> long as the DPU clears the opcode register in time.
>
> For SUSPEND this means vhost-vdpa marks the device as suspended and
> lets userspace reprogram the vrings while the DPU is still running
> them; for DESTROY, snet_reset_dev() never even sees that the device
> failed to stop.
>
> Return the error from the saved ACK value once the completion wait
> itself has succeeded.
>
> Fixes: 3f3a1675b731 ("vdpa/snet: support getting and setting VQ state")
> Cc: stable@vger.kernel.org
> Signed-off-by: Yuho Choi <oss.patchbox@gmail.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261005044915.264532-1-oss.patchbox@gmail.com?part=1
prev parent reply other threads:[~2026-10-05 4:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-05 4:47 [PATCH v1] vdpa/snet: Don't discard the DPU error in snet_send_ctrl_msg() Yuho Choi
2026-10-05 4:56 ` sashiko-bot [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=20261005045631.4CBB71F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=eperezma@redhat.com \
--cc=mst@redhat.com \
--cc=oss.patchbox@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=virtualization@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.