From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9688606A31A for ; Tue, 1 Dec 2026 07:37:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cOhUrSsF Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3BE4810E352; Tue, 1 Dec 2026 07:37:41 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0460A10E352 for ; Tue, 1 Dec 2026 07:37:35 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 43FB961E3B; Tue, 1 Dec 2026 07:37:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFE291F000C1; Tue, 1 Dec 2026 07:37:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796110654; bh=iocJVB+QiwjgP3hIV3ZLXeKJuA9kF3EQCPfymCf8JEA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=cOhUrSsFVQy5ldVdA7zz0jxsUifJDZDNqTgDSP9Erf+p0dTS1oXTi9q990FZWfZSf 0V/23pUeW0f+i7xSorfptCCFEnr3MgIOKVxQlITF8JF7qz96DosNHRqH9ZLQseG9zb E2AyacYfd1c7K86jpug5LkqAUTLJneoHEwMvk0cmojg4Ke4PaGy6WDK6DNQV2Ii0eV ck3dHFWVYLLlpXDmtVA8gCrd/+Ds2aVKWfHc7O+vbktskgt+ALFsgKFmrzTvjjTcyx lK8mMVKqAgkF8DmSCWpUkS+4JEQYk8k7z2Mg7UCEJT9DYbMC3xkmlWI6sfUKYqFCr2 baS+g3Idi+jcw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 1/2] accel/rocket: Wait for in-flight jobs before releasing the file's BOs To: "Arun Iyengar" Cc: dri-devel@lists.freedesktop.org, media-ci@linuxtv.org In-Reply-To: <20261201-rocket-fixes-v1-1-986c3e5ceb44@gmail.com> References: <20261201-rocket-fixes-v1-0-986c3e5ceb44@gmail.com> <20261201-rocket-fixes-v1-1-986c3e5ceb44@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 07:37:33 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "dri-devel" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: 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 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/roc= ket_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 > =20 > rjob->out_bo_count =3D job->out_bo_handle_count; > =20 > - ret =3D rocket_job_push(rjob); > + ret =3D rocket_job_push(file_priv, rjob); > if (ret) > goto out_cleanup_job; > =20 [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 =3D 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 --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-rocket-fix= es-v1-0-986c3e5ceb44@gmail.com?part=3D1