]> git.ipfire.org Git - thirdparty/linux.git/commit
interconnect: Add kunit tests for core functionality
authorKuan-Wei Chiu <visitorckw@gmail.com>
Sat, 10 Jan 2026 18:43:09 +0000 (18:43 +0000)
committerGeorgi Djakov <djakov@kernel.org>
Tue, 13 Jan 2026 14:18:27 +0000 (16:18 +0200)
commit06ebbe719bb022795cd9def0606a6805b1f2f755
treec2072f3261155fe9e24ab22b2eb79a88490502ee
parenta3e2ea7935c5a6f571d43f02b64ebb92e5cfae87
interconnect: Add kunit tests for core functionality

The interconnect framework currently lacks in-tree unit tests to verify
the core logic in isolation. This makes it difficult to validate
regression stability when modifying the provider/consumer APIs or
aggregation logic.

Introduce a kunit test suite that verifies the fundamental behavior of
the subsystem. The tests cover:
- Provider API (node creation, linking, topology construction).
- Consumer API (path enabling/disabling, bandwidth requests).
- Standard aggregation logic (accumulating bandwidth across links).
- Bulk operations for setting bandwidth on multiple paths.

The suite simulates a simple SoC topology with multiple masters and a
shared bus to validate traffic aggregation behavior in a controlled
software environment, without requiring specific hardware or Device
Tree support.

Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Link: https://lore.kernel.org/r/20260110184309.906735-1-visitorckw@gmail.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/Kconfig
drivers/interconnect/Makefile
drivers/interconnect/icc-kunit.c [new file with mode: 0644]