Aspeed GPIOP handover with managed controller lifetime
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest posting 2/22 patches 4 repliesIn review
- v4 posting 1/20 of 2 patches 0 repliesSuperseded
Changes in v4 from the cover letter
- Add managed registration as a separate prerequisite patch.
- Keep the handover implementation unchanged.
- Add KASAN lifecycle testing in QEMU and on B650D4U hardware.
- Update validation statements to distinguish lifecycle and power tests.
Patches in v4 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | pinctrl: aspeed: Use managed pinctrl registrationdrivers/ | +2 | 1 reply | |
| 2/2 | pinctrl: aspeed: Hand over global GPIOP passthrough to local mux controlsdrivers/ | +141 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCH v4 0/2] Aspeed GPIOP handover with managed controller lifetime
This series continues the AST2600 global-to-local GPIOP passthrough handover work, rebased on v7.4-rc1. It adds a shared pinctrl lifetime fix before the G6 handover change.
The registration lifetime issue was identified by automated review:
the G6 callback data is devm-allocated, while the shared helper used unmanaged pinctrl registration. Patch 1 switches registration to devm_pinctrl_register(), ensuring unregister runs before earlier devres allocations are freed. Patch 2 retains the v3 handover logic.
Changes since v3:
- Add managed registration as a separate prerequisite patch.
- Keep the handover implementation unchanged.
- Add KASAN lifecycle testing in QEMU and on B650D4U hardware.
- Update validation statements to distinguish lifecycle and power tests.
Validation:
- Shared helper and G4/G5/G6 objects compile-tested with W=1 on ARM.
- G7 SOC0 object compile-tested using ARM COMPILE_TEST; this was not an ARM64 build or G7 runtime test.
- Generic KASAN boot and one unbind/rebind cycle passed in AST2600 QEMU and on physical B650D4U hardware. Controller entries disappeared on unbind and returned on rebind; a subsequent debugfs pins read succeeded. No KASAN reports were observed in the captured tests.
- The final v4 source tree matches the tested v3 tree plus the managed-registration change; only commit order and messages differ.
- Earlier remote power-on/off and physical-button power-on testing used an OpenBMC 6.18.24-based kernel, not this v7.4-rc1 test kernel.
The unfixed runtime comparison has not been performed. Concurrent readers, probe-failure injection, mixed-pair forwarding, protected writes and SCU510[28] hardware handling remain unvalidated. Existing questions about probe-time normalization policy and concurrent SCU writers also remain open. Electrical measurements are outside the scope of this lifecycle test.
Supplementary procedure, exact source/config and logs:
https://github.com/prasanthp20/asrock-b650d4u-bmc-support/tree/64eaccfde9ac4ec35646c0b7a8663486775b5d3b/docs/experiments/03-pinctrl-lifecycle-kasan
Previous version:
https://lore.kernel.org/r/[email protected]
Please review the shared lifetime fix and the GPIOP handover policy.
Prasanth Kumar Padarthi (2):
pinctrl: aspeed: Use managed pinctrl registration
pinctrl: aspeed: Hand over global GPIOP passthrough to local mux
controls
drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c | 145 ++++++++++++++++++++- drivers/pinctrl/aspeed/pinctrl-aspeed.c | 3 +- 2 files changed, 143 insertions(+), 5 deletions(-)
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
Signature · 1 line
2.47.3