From: Arun Iyengar Subject: [PATCH 0/2] accel/rocket: Fix file close and reset with a job on the NPU Date: Tue, 01 Dec 2026 07:28:07 +0000 Message-Id: <20261201-rocket-fixes-v1-0-986c3e5ceb44@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yXM0QpAQBSE4VfRubZldyV5FblgDQ6F9iAl725x+ TX9c5HAM4SK6CKPg4WXOUDHEbmhnnsoboPJJCbT2ibKL27Cpjo+IQo6tbmrjW0ACsnq8Q2hKKv fsjcj3PZ+0H0/8SgZT3AAAAA= X-Change-ID: 20261130-rocket-fixes-e1438ca23bee To: Tomeu Vizoso , Oded Gabbay Cc: Heiko Stuebner , Jeff Hugo , Sumit Semwal , =?utf-8?q?Christian_K=C3=B6nig?= , Philipp Stanner , Midgy BALON , Jiaxing Hu , dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, stable@vger.kernel.org, Arun Iyengar X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796110087; l=1043; i=aiyengar1990@gmail.com; s=20261110; h=from:subject:message-id; bh=kuGe1XJNYkf5gDcpzyypltnw9shopA6+bAoSOmJTovU=; b=8MT+ybocA8p9MZuiT+MCJAldZEnjjWTAEDDhjKfSwxyXz5L1Vk9+RCaQoCkoXSo2ccByxpM94 IpCrRBh+TSDDMvwkeiwUsjcGLBHdfi9T2NZVvKLkQQNLaDX9oqF24Sx X-Developer-Key: i=aiyengar1990@gmail.com; a=ed25519; pk=zXpRgUTrhaFe6jLyPqbBy3ccfkj04w0g2690Wv3mg+0= X-Endpoint-Received: by B4 Relay for aiyengar1990@gmail.com/20261110 with auth_id=1480 List-Id: B4 Relay Submissions Patch 2 is the same change as Midgy Balon's RK3568 RFC; see the patch. Tested on an Orange Pi 5 (RK3588), 7.3 with both patches, KASAN: 70 SIGKILLs during inference, no job timeout (before: 12 in 10 kills); 10 faulting jobs, no IOMMU stall timeout or warning (before: 75 and 10), also with the next-20261127 rockchip-iommu.c. Developed with Claude (Anthropic) as a coding assistant; I reviewed and tested it. Signed-off-by: Arun Iyengar --- Arun Iyengar (2): accel/rocket: Wait for in-flight jobs before releasing the file's BOs accel/rocket: Reset the core before detaching its IOMMU drivers/accel/rocket/rocket_drv.c | 28 ++++++++++++++++++++++++++-- drivers/accel/rocket/rocket_drv.h | 2 ++ drivers/accel/rocket/rocket_job.c | 24 ++++++++++++++++++------ 3 files changed, 46 insertions(+), 8 deletions(-) --- base-commit: 9f333c38eac95cef6e1d54681b010c6531a7dcb2 change-id: 20261130-rocket-fixes-e1438ca23bee Best regards, -- Arun Iyengar