From: Frank Oltmanns <frank@oltmanns.dev>
To: Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>
Cc: "A.s. Dong" <aisheng.dong@nxp.com>,
Abel Vesa <abelvesa@kernel.org>,
Fabio Estevam <festevam@gmail.com>,
linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org, NXP Linux Team <linux-imx@nxp.com>,
Peng Fan <peng.fan@nxp.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Sascha Hauer <s.hauer@pengutronix.de>,
Shawn Guo <shawnguo@kernel.org>,
Elaine Zhang <zhangqing@rock-chips.com>
Subject: Re: [PATCH v5 0/2] clk: fractional-divider: Improve approximation when zero based and export
Date: Mon, 17 Jul 2023 10:24:49 +0200 [thread overview]
Message-ID: <874jm3lzce.fsf@oltmanns.dev> (raw)
In-Reply-To: <20230617131041.18313-1-frank@oltmanns.dev>
Hi,
On 2023-06-17 at 15:10:39 +0200, Frank Oltmanns <frank@oltmanns.dev> wrote:
> The fractional divider approximation does not utilize the full available
> range for clocks that are flagged CLK_FRAC_DIVIDER_ZERO_BASED. This
> patchset aims to fix that.
>
> It also adds test cases for the edge cases of fractional divider clocks
> with and without the CLK_FRAC_DIVIDER_ZERO_BASED flag to highlight the
> changes.
>
> Finally, it also exports clk_fractional_divider_general_approximation so
> that the test cases (but also other users like rockchip clk driver) can
> be compiled as a module.
>
> Unfortunately, I have no boards to test this patch. So all we have are
> the unit tests. It seems the only user of this flag in mainline is
> drivers/clk/imx/clk-composite-7ulp.c, therefore I'm cc-ing
> get_maintainers.pl --git-blame -f drivers/clk/imx/clk-composite-7ulp.c
> in the hopes of a wider audience.
Are there remarks or questions on this patchset? Anything that needs to
be improved?
Thanks,
Frank
>
> Thank you for considering this contribution,
> Frank
>
> P.S.: V4 was short-lived, because it triggered a compiler warning on
> clang. I'm sorry for the noise. -- Frank
>
> V4: https://lore.kernel.org/all/20230617102919.27564-1-frank@oltmanns.dev/
> V3: https://lore.kernel.org/all/20230614185521.477924-1-frank@oltmanns.dev/
> V2: https://lore.kernel.org/lkml/20230613083626.227476-1-frank@oltmanns.dev/
> V1: https://lore.kernel.org/lkml/20230529133433.56215-1-frank@oltmanns.dev/
>
> Changes in V5 (since V4):
> - Fix compiler warnings on clang by removing superfluous variable max_m
> in the test cases for the maximum denominator (n) and max_n in the
> test cases for max numerator (m).
> Thank you, Intel, for your kernel test robot!
>
> Changes in V4 (since V3):
> - Export clk_fractional_divider_general_approximation so that users
> (e.g., the testcases) can be compiled as modules.
> - Change test cases so that they test
> clk_fractional_divider_general_approximation again (like in V2)
> instead of clk_fd_round_rate (like in V3), but keeping the structure
> of V3 with separate file and individual test cases for each edge
> case.
>
> Changes in V3 (since V2):
> - Completely reworked the test cases
> - Moved tests to separate file as per Stephen's request
> - Move each edge case into their individual test case as per
> Stephen's request
> - Test clk_fd_round_rate instead of
> clk_fractional_divider_general_approximation as testing the latter
> broke builds
>
> Changes in V2 (since V1):
> - Added test case as requested by Stephen Boyd
> - Fixed commit message as the Cc: was missing a closing bracket, so that the
> original mail unfortunately did not go out to A. s. Dong.
>
> Frank Oltmanns (2):
> clk: fractional-divider: Improve approximation when zero based and
> export
> clk: fractional-divider: tests: Add test suite for edge cases
>
> drivers/clk/.kunitconfig | 1 +
> drivers/clk/Kconfig | 7 +
> drivers/clk/Makefile | 1 +
> drivers/clk/clk-fractional-divider.c | 27 +++-
> drivers/clk/clk-fractional-divider_test.c | 157 ++++++++++++++++++++++
> 5 files changed, 186 insertions(+), 7 deletions(-)
> create mode 100644 drivers/clk/clk-fractional-divider_test.c
WARNING: multiple messages have this Message-ID (diff)
From: Frank Oltmanns <frank@oltmanns.dev>
To: Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>
Cc: "A.s. Dong" <aisheng.dong@nxp.com>,
Abel Vesa <abelvesa@kernel.org>,
Fabio Estevam <festevam@gmail.com>,
linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org, NXP Linux Team <linux-imx@nxp.com>,
Peng Fan <peng.fan@nxp.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Sascha Hauer <s.hauer@pengutronix.de>,
Shawn Guo <shawnguo@kernel.org>,
Elaine Zhang <zhangqing@rock-chips.com>
Subject: Re: [PATCH v5 0/2] clk: fractional-divider: Improve approximation when zero based and export
Date: Mon, 17 Jul 2023 10:24:49 +0200 [thread overview]
Message-ID: <874jm3lzce.fsf@oltmanns.dev> (raw)
In-Reply-To: <20230617131041.18313-1-frank@oltmanns.dev>
Hi,
On 2023-06-17 at 15:10:39 +0200, Frank Oltmanns <frank@oltmanns.dev> wrote:
> The fractional divider approximation does not utilize the full available
> range for clocks that are flagged CLK_FRAC_DIVIDER_ZERO_BASED. This
> patchset aims to fix that.
>
> It also adds test cases for the edge cases of fractional divider clocks
> with and without the CLK_FRAC_DIVIDER_ZERO_BASED flag to highlight the
> changes.
>
> Finally, it also exports clk_fractional_divider_general_approximation so
> that the test cases (but also other users like rockchip clk driver) can
> be compiled as a module.
>
> Unfortunately, I have no boards to test this patch. So all we have are
> the unit tests. It seems the only user of this flag in mainline is
> drivers/clk/imx/clk-composite-7ulp.c, therefore I'm cc-ing
> get_maintainers.pl --git-blame -f drivers/clk/imx/clk-composite-7ulp.c
> in the hopes of a wider audience.
Are there remarks or questions on this patchset? Anything that needs to
be improved?
Thanks,
Frank
>
> Thank you for considering this contribution,
> Frank
>
> P.S.: V4 was short-lived, because it triggered a compiler warning on
> clang. I'm sorry for the noise. -- Frank
>
> V4: https://lore.kernel.org/all/20230617102919.27564-1-frank@oltmanns.dev/
> V3: https://lore.kernel.org/all/20230614185521.477924-1-frank@oltmanns.dev/
> V2: https://lore.kernel.org/lkml/20230613083626.227476-1-frank@oltmanns.dev/
> V1: https://lore.kernel.org/lkml/20230529133433.56215-1-frank@oltmanns.dev/
>
> Changes in V5 (since V4):
> - Fix compiler warnings on clang by removing superfluous variable max_m
> in the test cases for the maximum denominator (n) and max_n in the
> test cases for max numerator (m).
> Thank you, Intel, for your kernel test robot!
>
> Changes in V4 (since V3):
> - Export clk_fractional_divider_general_approximation so that users
> (e.g., the testcases) can be compiled as modules.
> - Change test cases so that they test
> clk_fractional_divider_general_approximation again (like in V2)
> instead of clk_fd_round_rate (like in V3), but keeping the structure
> of V3 with separate file and individual test cases for each edge
> case.
>
> Changes in V3 (since V2):
> - Completely reworked the test cases
> - Moved tests to separate file as per Stephen's request
> - Move each edge case into their individual test case as per
> Stephen's request
> - Test clk_fd_round_rate instead of
> clk_fractional_divider_general_approximation as testing the latter
> broke builds
>
> Changes in V2 (since V1):
> - Added test case as requested by Stephen Boyd
> - Fixed commit message as the Cc: was missing a closing bracket, so that the
> original mail unfortunately did not go out to A. s. Dong.
>
> Frank Oltmanns (2):
> clk: fractional-divider: Improve approximation when zero based and
> export
> clk: fractional-divider: tests: Add test suite for edge cases
>
> drivers/clk/.kunitconfig | 1 +
> drivers/clk/Kconfig | 7 +
> drivers/clk/Makefile | 1 +
> drivers/clk/clk-fractional-divider.c | 27 +++-
> drivers/clk/clk-fractional-divider_test.c | 157 ++++++++++++++++++++++
> 5 files changed, 186 insertions(+), 7 deletions(-)
> create mode 100644 drivers/clk/clk-fractional-divider_test.c
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-07-17 8:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-17 13:10 [PATCH v5 0/2] clk: fractional-divider: Improve approximation when zero based and export Frank Oltmanns
2023-06-17 13:10 ` Frank Oltmanns
2023-06-17 13:10 ` [PATCH v5 1/2] " Frank Oltmanns
2023-06-17 13:10 ` Frank Oltmanns
2023-10-12 22:40 ` Stephen Boyd
2023-06-17 13:10 ` [PATCH v5 2/2] clk: fractional-divider: tests: Add test suite for edge cases Frank Oltmanns
2023-06-17 13:10 ` Frank Oltmanns
2023-10-12 22:40 ` Stephen Boyd
2023-07-17 8:24 ` Frank Oltmanns [this message]
2023-07-17 8:24 ` [PATCH v5 0/2] clk: fractional-divider: Improve approximation when zero based and export Frank Oltmanns
2023-07-19 22:12 ` Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874jm3lzce.fsf@oltmanns.dev \
--to=frank@oltmanns.dev \
--cc=abelvesa@kernel.org \
--cc=aisheng.dong@nxp.com \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=peng.fan@nxp.com \
--cc=s.hauer@pengutronix.de \
--cc=sboyd@kernel.org \
--cc=shawnguo@kernel.org \
--cc=zhangqing@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.