From: sashiko-bot@kernel.org
To: "Arun Iyengar" <aiyengar1990@gmail.com>
Cc: dri-devel@lists.freedesktop.org, media-ci@linuxtv.org
Subject: Re: [PATCH 1/2] accel/rocket: Wait for in-flight jobs before releasing the file's BOs
Date: Tue, 01 Dec 2026 07:37:33 +0000 [thread overview]
Message-ID: <sashiko-outbox-242779@kernel.org> (raw)
In-Reply-To: <20261201-rocket-fixes-v1-1-986c3e5ceb44@gmail.com>
Thank you for your contribution! Sashiko AI review found no new issues
in this patch, but noticed 1 related pre-existing issue it does not
introduce:
- [High] accel/rocket: ignored return value in rocket_ioctl_submit() [1]
--
commit 56d4424db2bb4cd4fc68f8a260274639d95da94e
Author: Arun Iyengar <aiyengar1990@gmail.com>
accel/rocket: Wait for in-flight jobs before releasing the file's BOs
This commit tears down the scheduler entity and waits for the file's last
submitted job in the release file operation before drm_release() drops the
file's GEM handles.
> diff --git a/drivers/accel/rocket/rocket_job.c b/drivers/accel/rocket/rocket_job.c
> index 454d465a39e37..32926afb0144c 100644
> --- a/drivers/accel/rocket/rocket_job.c
> +++ b/drivers/accel/rocket/rocket_job.c
[ ... ]
> @@ -641,7 +651,7 @@ static int rocket_ioctl_submit_job(struct drm_device *dev, struct drm_file *file
>
> rjob->out_bo_count = job->out_bo_handle_count;
>
> - ret = rocket_job_push(rjob);
> + ret = rocket_job_push(file_priv, rjob);
> if (ret)
> goto out_cleanup_job;
>
[Severity: High]
This problem wasn't introduced by this patch, but does
rocket_ioctl_submit() ignore the return value of
rocket_ioctl_submit_job() [1]?
drivers/accel/rocket/rocket_job.c:rocket_ioctl_submit() {
...
for (i = 0; i < args->job_count; i++)
rocket_ioctl_submit_job(dev, file, &jobs[i]);
exit:
kvfree(jobs);
return ret;
}
When rocket_ioctl_submit_job() fails (for example, due to an invalid GEM
handle or an allocation failure in rocket_job_push()), ret stays 0 and the
ioctl reports success to userspace for a job that was never queued.
[1] https://sashiko.dev/#/bug/linux-78e2eefa-f18b-4b54-bd1e-b3dcf1458b36
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-rocket-fixes-v1-0-986c3e5ceb44@gmail.com?part=1
next prev parent reply other threads:[~2026-12-01 7:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 7:28 [PATCH 0/2] accel/rocket: Fix file close and reset with a job on the NPU Arun Iyengar via B4 Relay
2026-12-01 7:28 ` [PATCH 1/2] accel/rocket: Wait for in-flight jobs before releasing the file's BOs Arun Iyengar via B4 Relay
2026-12-01 7:37 ` sashiko-bot [this message]
2026-12-01 7:28 ` [PATCH 2/2] accel/rocket: Reset the core before detaching its IOMMU Arun Iyengar via B4 Relay
2026-12-01 7:32 ` sashiko-bot
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=sashiko-outbox-242779@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=aiyengar1990@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=media-ci@linuxtv.org \
--cc=sashiko-reviews@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox