Hi Chaoyi, hi all,
A gentle follow-up on the thread above from July: no reply yet, and I
wanted to add the new evidence I gathered since, in case it sharpens
the question.
Since then I confirmed the engage/completion split explicitly:
- Loading the vendor rknpu and running ONE vendor job ("priming"),
then unloading it (no power cycle) and loading mainline rocket,
makes rocket's executers engage for the first time (S_POINTER
bit 16 = 0x1000e on all five units, matching the working vendor
signature). So the engage is one-time HW state established by a
*working vendor job*, not by probe/init writes.
- But completion still fails afterwards: even primed, rocket's job
times out with wt_rd = 0 / dt_wr = 0 (vendor: 0x1900 / 0x6400).
- An NIU reset pulse (CRU SOFTRST_CON2 bits 8..10) at resume CLEARS
the primed state (reads drop to 0); nothing we write re-arms it.
I also tested a kiln-style reset edge inside rockchip_pd_power()
at PD power-on (RK3576 kiln 0002 analog) on v7.4-rc3, including a
forced cold power cycle of the PMU island from userspace:
negative -- the pulse does not re-arm the sequencer, and the PD
never actually cold-cycles on this board.
- Cache coherency ruled out (forced dma_sync of all BOs at submit;
live DT has no dma-coherent). CBUF_DBG matches the vendor's engaged
values pre/post job. The board now runs mainline v7.4-rc3 and the
gate reproduces there unchanged.
So the refined question: after a vendor job has left the NPU in the
armed per-power-session state, which step of that job arms the CNA
weight-fetch sequencer - and is there any RK3568-visible precondition
(CBUF/DCOMP/weight-DMA enable, ordering vs. engage) I could replicate
in rocket so it computes without the vendor prime?
Happy to run any targeted capture on the board (RK3568, ROCK 3B).
Thanks again.
Kind regards,
Midgy