Skip to content

accel/rocket: Fix file close and reset with a job on the NPU

Arun Iyengar b4-sent dri-devel linux-media linux-rockchip lkml stable 1 version New

Get series with b4
b4 am [email protected] change-id 20261130-rocket-fixes-e1438ca23bee

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2accel/rocket: Wait for in-flight jobs before releasing the file's BOsdrivers/accel/rocket/rocket_drv.c drivers/accel/rocket/rocket_drv.h drivers/accel/rocket/rocket_job.c+40 -40 replies
2/2accel/rocket: Reset the core before detaching its IOMMUdrivers/accel/rocket/rocket_job.c+6 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] accel/rocket: Fix file close and reset with a job on the NPU

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.

---
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,

Signature · 1 line
Arun Iyengar <[email protected]>