Re: [PATCH v3 0/4] Fix clk-divider rates above 4.29 GHz on 64-bit
From: Brian Masney
Date: Mon Nov 23 2026 - 10:41:58 EST
On Thu, 19 Nov 2026 21:49:30 +0100, Carlo Caione wrote:
> Fix clk-divider rates above 4.29 GHz on 64-bit
>
> On 64-bit platforms, the clk-divider truncates requested rates above
> 4.29 GHz when computing a divisor. Fix it and add KUnit tests.
>
> Sebastian Reichel fixed this in 2023 [1], but later versions moved to a
> new generic macro and were never applied. Patch 1 builds on his v1 and
> rounds up with (parent_rate - 1) / rate + 1, which does not overflow
> with clk_round_rate(clk, ULONG_MAX). Patch 2 fixes a division by zero
> found by the new tests. Patch 3 stops truncating divisors to int.
>
> [...]
Applied, thanks!
[1/4] clk: divider: Fix the divisor for rates above 4.29 GHz
https://git.kernel.org/clk/linux/c/485c1514fb97
[2/4] clk: divider: Fix round-closest for rates above the parent rate
https://git.kernel.org/clk/linux/c/9964715d4729
[3/4] clk: divider: Don't truncate divisors to int
https://git.kernel.org/clk/linux/c/e69c78b9782b
[4/4] clk: divider: test: Add tests for rates above 4.29 GHz
https://git.kernel.org/clk/linux/c/7e4d9e345c64
Best regards,
--
Brian Masney <masneyb@xxxxxxxxxx>