clk: test: add tests for inconsistencies and limitations in the framework
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | clk: test: introduce a few specific rate constants for mock testingdrivers/ | +4 | 0 replies | |
| 2/8 | clk: test: introduce clk_dummy_div for a mock dividerdrivers/ | +41 | 0 replies | |
| 3/8 | clk: test: introduce test suite for sibling rate changes on a dividerdrivers/ | +135 | 0 replies | |
| 4/8 | clk: test: introduce clk_dummy_gate for a mock gatedrivers/ | +34 | 0 replies | |
| 5/8 | clk: test: introduce test suite for sibling rate changes on a gatedrivers/ | +156 | 0 replies | |
| 6/8 | clk: test: introduce helper to create a mock muxdrivers/ | +52 | 0 replies | |
| 7/8 | clk: test: introduce test variation for sibling rate changes on a muxdrivers/ | +46 | 0 replies | |
| 8/8 | clk: test: introduce test variation for sibling rate changes on a gate/muxdrivers/ | +46 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/8] clk: test: add tests for inconsistencies and limitations in the framework
Here's a series that introduces some clock provider kunit tests. These tests are centered around inconsistencies and limitations in the clock framework that may lead to some clocks unknowingly changing rates during a rate change of their siblings.
The intent of the clock framework is to keep the siblings clock rate stable during such an operation:
clk_set_rate(clk, MY_NEW_RATE);
However, it assumes that the sibling can generate that rate in the first place. In many situations, it can't, and it leads to numerous bugs and solutions over the years.
https://lore.kernel.org/lkml/[email protected]/
https://lore.kernel.org/linux-kernel/[email protected]/
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/linux-clk/20241121-ge-ian-debug-imx8-clk-tree-v1-0-0f1b722588fe@bootlin.com/
We intend to fix these issues, but first we need to agree and document what these shortcomings are. These patches are meant to do that, even though some will be skipped as they are currently broken.
Special thanks to Maxime Ripard for the guidance and feedback on this project so far.
Brian Masney (8):
clk: test: introduce a few specific rate constants for mock testing
clk: test: introduce clk_dummy_div for a mock divider
clk: test: introduce test suite for sibling rate changes on a divider
clk: test: introduce clk_dummy_gate for a mock gate
clk: test: introduce test suite for sibling rate changes on a gate
clk: test: introduce helper to create a mock mux
clk: test: introduce test variation for sibling rate changes on a mux
clk: test: introduce test variation for sibling rate changes on a
gate/mux
drivers/clk/clk_test.c | 601 +++++++++++++++++++++++++++++++++++------ 1 file changed, 513 insertions(+), 88 deletions(-)
Signature · 1 line
2.49.0