All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arun Iyengar <aiyengar1990@gmail.com>
To: Tomeu Vizoso <tomeu@tomeuvizoso.net>, Oded Gabbay <ogabbay@kernel.org>
Cc: "Heiko Stuebner" <heiko@sntech.de>,
	"Jeff Hugo" <jeff.hugo@oss.qualcomm.com>,
	"Sumit Semwal" <sumit.semwal@linaro.org>,
	"Christian König" <christian.koenig@amd.com>,
	"Philipp Stanner" <phasta@kernel.org>,
	"Midgy BALON" <midgy971@gmail.com>,
	"Jiaxing Hu" <gahing@gahingwoo.com>,
	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" <aiyengar1990@gmail.com>
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	[thread overview]
Message-ID: <20261201-rocket-fixes-v1-0-986c3e5ceb44@gmail.com> (raw)

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 <aiyengar1990@gmail.com>
---
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 <aiyengar1990@gmail.com>


WARNING: multiple messages have this Message-ID (diff)
From: Arun Iyengar via B4 Relay <devnull+aiyengar1990.gmail.com@kernel.org>
To: Tomeu Vizoso <tomeu@tomeuvizoso.net>, Oded Gabbay <ogabbay@kernel.org>
Cc: "Heiko Stuebner" <heiko@sntech.de>,
	"Jeff Hugo" <jeff.hugo@oss.qualcomm.com>,
	"Sumit Semwal" <sumit.semwal@linaro.org>,
	"Christian König" <christian.koenig@amd.com>,
	"Philipp Stanner" <phasta@kernel.org>,
	"Midgy BALON" <midgy971@gmail.com>,
	"Jiaxing Hu" <gahing@gahingwoo.com>,
	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" <aiyengar1990@gmail.com>
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	[thread overview]
Message-ID: <20261201-rocket-fixes-v1-0-986c3e5ceb44@gmail.com> (raw)

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 <aiyengar1990@gmail.com>
---
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 <aiyengar1990@gmail.com>



WARNING: multiple messages have this Message-ID (diff)
From: Arun Iyengar via B4 Relay <devnull+aiyengar1990.gmail.com@kernel.org>
To: Tomeu Vizoso <tomeu@tomeuvizoso.net>, Oded Gabbay <ogabbay@kernel.org>
Cc: "Heiko Stuebner" <heiko@sntech.de>,
	"Jeff Hugo" <jeff.hugo@oss.qualcomm.com>,
	"Sumit Semwal" <sumit.semwal@linaro.org>,
	"Christian König" <christian.koenig@amd.com>,
	"Philipp Stanner" <phasta@kernel.org>,
	"Midgy BALON" <midgy971@gmail.com>,
	"Jiaxing Hu" <gahing@gahingwoo.com>,
	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" <aiyengar1990@gmail.com>
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	[thread overview]
Message-ID: <20261201-rocket-fixes-v1-0-986c3e5ceb44@gmail.com> (raw)

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 <aiyengar1990@gmail.com>
---
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 <aiyengar1990@gmail.com>



_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

             reply	other threads:[~2026-12-01  7:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  7:28 Arun Iyengar [this message]
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 ` 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
2026-12-01  7:28   ` Arun Iyengar via B4 Relay
2026-12-01  7:28   ` Arun Iyengar via B4 Relay
2026-12-01  7:37   ` sashiko-bot
2026-12-01  7:28 ` [PATCH 2/2] accel/rocket: Reset the core before detaching its IOMMU Arun Iyengar
2026-12-01  7:28   ` Arun Iyengar via B4 Relay
2026-12-01  7:28   ` 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=20261201-rocket-fixes-v1-0-986c3e5ceb44@gmail.com \
    --to=aiyengar1990@gmail.com \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gahing@gahingwoo.com \
    --cc=heiko@sntech.de \
    --cc=jeff.hugo@oss.qualcomm.com \
    --cc=linaro-mm-sig@lists.linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=midgy971@gmail.com \
    --cc=ogabbay@kernel.org \
    --cc=phasta@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=sumit.semwal@linaro.org \
    --cc=tomeu@tomeuvizoso.net \
    /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.