From: Igor Paunovic <royalnet026@gmail.com>
To: Jiaxing Hu <gahing@gahingwoo.com>
Cc: linux-rockchip@lists.infradead.org,
Tomeu Vizoso <tomeu@tomeuvizoso.net>,
Igor Paunovic <royalnet026@gmail.com>
Subject: accel/rocket: clks[].id fix - standalone patch, or would you prefer to split it out?
Date: Wed, 29 Jul 2026 09:20:19 +0200 [thread overview]
Message-ID: <20260729072019.105907-1-royalnet026@gmail.com> (raw)
Hi Jiaxing,
I have been working with the rocket NPU driver on RK3588 (Orange Pi 5
Plus) and ran into the missing core->clks[].id initialisation in
rocket_core_init().
I noticed it while reading the live clock tree rather than the source:
/sys/kernel/debug/clk/clk_summary shows four "fdab0000.npu" consumer
handles on aclk_npu0 - and likewise on aclk_npu1/aclk_npu2 for the other
two cores - while hclk_npu0, pclk_npu_root and scmi_clk_npu have no
"fdab0000.npu" consumer at all. The driver believes it owns four clocks
but really holds four handles to the AXI clock.
Before writing anything up I went through the lists, and I see you
already fix exactly this as part of
[RFC PATCH v2 6/8] accel/rocket: add RK3576 NPU (RKNN) support
Message-Id: <20260718031146.3368811-7-gahing@gahingwoo.com>
so I would rather ask you first than send something that looks like a
duplicate.
The reason I care: I would like to look into OPP/devfreq support for
rocket later on - Jonas Karlman mentioned it as future work in the
RK3568 thread - and today the driver holds no reference at all to the
clock that actually feeds the NPU ("npu", SCMI_CLK_NPU on RK3588). That
is in the way of any frequency scaling work. The NPU still runs anyway -
clk_summary shows scmi_clk_npu with the hardware enable bit set but no
Linux consumer, i.e. firmware keeps it running - so the bug is latent
rather than fatal.
Timing-wise this also seems like a natural moment to ask: Will has
already picked up the two iommu patches from your v2, and after
Alexey's review you mentioned a v3 respin of the accel patch. Since the
RK3576 inference issue is still being debugged, the clks[].id fix would
otherwise sit inside an RFC for a while, even though it is independent
of that work and the bug it fixes is in mainline today.
Would you prefer to:
(a) split the clks[].id fix out of your series and send it standalone
with a Fixes: tag? That way it can land independently of the RK3576
enablement work and be backported. I would be glad to give it a
Tested-by on RK3588 / Orange Pi 5 Plus.
(b) or, if you would rather keep your series as it is, I can send the
standalone fix with you on Cc and a note under the --- pointing at
your patch.
Either works for me. I mostly want to avoid us duplicating effort, and
you posted it first.
Thanks,
Igor Paunovic
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next reply other threads:[~2026-07-29 7:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-29 7:20 Igor Paunovic [this message]
2026-07-29 9:29 ` [PATCH] accel/rocket: request the core clocks by name Igor Paunovic
2026-07-29 10:50 ` Jiaxing Hu
2026-07-29 13:05 ` Igor Paunovic
[not found] ` <CAPsqS2STG3ejiYe5AaYM2gODdDtkcvDvKuOerJZ3CJko1PZ=Hg@mail.gmail.com>
2026-07-29 9:38 ` accel/rocket: clks[].id fix - standalone patch, or would you prefer to split it out? Igor Paunovic
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=20260729072019.105907-1-royalnet026@gmail.com \
--to=royalnet026@gmail.com \
--cc=gahing@gahingwoo.com \
--cc=linux-rockchip@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox