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]
Date:   Sat, 05 Nov 2016 23:25:56 +0100
From:   Heiko Stuebner <heiko@...ech.de>
To:     Julius Werner <jwerner@...omium.org>
Cc:     linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org,
        Doug Anderson <dianders@...omium.org>,
        Xing Zheng <zhengxing@...k-chips.com>
Subject: Re: [PATCH] clk: rockchip: Ignore frac divisor for PLL equivalence when it's unused

Am Mittwoch, 2. November 2016, 16:43:24 CET schrieb Julius Werner:
> Rockchip RK3399 PLLs can be used in two separate modes: integral and
> fractional. We can select between these two modes with the unambiguously
> named DSMPD bit.
> 
> During boot, we check all PLL settings to confirm that they match our
> PLL table for that frequency, and reinitialize the PLLs where they
> don't. The settings checked for this include the fractional divider
> field that is only used in fractional mode, even if we're in integral
> mode (DSMPD = 1) and that field has no effect.
> 
> This patch changes the check to only compare the fractional divider if
> we're actually in fractional mode. This way, we won't reinitialize the
> PLL in cases where there's absolutely no reason for that, which may
> avoid glitching child clocks that should better not be glitched (e.g.
> PWM regulators).
> 
> Signed-off-by: Julius Werner <jwerner@...omium.org>

I took the liberty to clone the fix to the rk3036 pll type as well, which is
quite similar and only differs in the actual register layout.

As sugested by the above, I've applied this to my clk branch for 4.10 [0]


Thanks for fixing this
Heiko


[0] https://git.kernel.org/cgit/linux/kernel/git/mmind/linux-rockchip.git/commit/?id=bf92384b6d729b22916ba832b4a225ca196e98ba

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ