lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <176764058399.2961867.4037408758770245058.b4-ty@kernel.org>
Date: Mon,  5 Jan 2026 13:16:27 -0600
From: Bjorn Andersson <andersson@...nel.org>
To: Michael Turquette <mturquette@...libre.com>,
	Stephen Boyd <sboyd@...nel.org>,
	Taniya Das <quic_tdas@...cinc.com>,
	Taniya Das <taniya.das@....qualcomm.com>
Cc: Ajit Pandey <ajit.pandey@....qualcomm.com>,
	Imran Shaik <imran.shaik@....qualcomm.com>,
	Jagadeesh Kona <jagadeesh.kona@....qualcomm.com>,
	linux-arm-msm@...r.kernel.org,
	linux-clk@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] clk: qcom: rcg2: compute 2d using duty fraction directly


On Mon, 05 Jan 2026 16:09:50 +0530, Taniya Das wrote:
> The duty-cycle calculation in clk_rcg2_set_duty_cycle() currently
> derives an intermediate percentage `duty_per = (num * 100) / den` and
> then computes:
> 
>     d = DIV_ROUND_CLOSEST(n * duty_per * 2, 100);
> 
> This introduces integer truncation at the percentage step (division by
> `den`) and a redundant scaling by 100, which can reduce precision for
> large `den` and skew the final rounding.
> 
> [...]

Applied, thanks!

[1/1] clk: qcom: rcg2: compute 2d using duty fraction directly
      commit: d6205a1878dd4cc9664c4b4829b68a29c0426efc

Best regards,
-- 
Bjorn Andersson <andersson@...nel.org>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ