Re: [PATCH RFC] accel/rocket: Use the component framework to aggregate the cores
From: Sidong Yang
Date: Sun Dec 06 2026 - 08:45:30 EST
Hi Gyeyoung,
Thanks for this. I agree that registering the DRM device at the first
core's probe is the root cause.
I ran it on a ROCK 5B+ (RK3588), backported to 7.2. With open() polled
during module load, no open() saw a core that was still probing, neither
in 20 plain reloads nor with a delay before drm_sched_init(), and
inference on the three cores is fine.
One behaviour change: when the probe of one core fails there is no DRM
device at all. With 97e48904cbdb ("accel/rocket: number the cores by
devicetree position, not bind order") from drm-misc-fixes the remaining
cores work in that case. On top of that commit core->index will also need
rocket_core_hw_index(), as the bind order skips disabled nodes.
Arun's "Serialise core probe and removal" [1] closes the same window with
a mutex over probe, removal and open, and keeps the cores independent.
That patch alone also passed the same test here.
Tomeu, which direction do you prefer? My patch is only the minimal change
for [2], I can drop it if one of these goes in.
[1] https://lore.kernel.org/r/20261206-rocket-fixes-v4-4-75a6279bce98@xxxxxxxxx
[2] https://lore.kernel.org/r/20261203140128.6813-7-tvrtko.ursulin@xxxxxxxxxx
Thanks,
Sidong