Openwrt/target/linux
Ansuel Smith 5ab9c0b388 ipq806x: fix bug in L2 cache scaling
It has been notice a buf in L2 cache scaling where the scaling is not
done proprely if the frequency is set to the initial state before
the new frequency.

From: https://patchwork.kernel.org/patch/10565443/

* The clocks are set to aux clock rate first to make sure the
* secondary mux is not sourcing off of QSB. The rate is then set to
* two different rates to force a HFPLL reinit under all
* circumstances.

In the initial stage of boot to force a new frequency to apply, is
needed to first set the frequency back to the lowest one (aux_rate)
and then to the target one. This force and make sure the controller
actually switch the frequency to the right one. Apply the same
mechanism to L2 frequency scaling. Before scaling to the target
frequency, first set the frequency to the aux_rate to force the
transition, then scale it to the target frequency. Doing the wrong way
can produce unexpected results and could lock the scaling mechanism
until a full reboot is done (Causing a full reset by the krait-cc driver)

From: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=77612720a2362230af726baa4149c40ec7a7fb05

When the Hfplls are reprogrammed during the rate change,
the primary muxes which are sourced from the same hfpll
for higher frequencies, needs to be switched to the 'safe
secondary mux' as the parent for that small window. This
is done by registering a clk notifier for the muxes and
switching to the safe parent in the PRE_RATE_CHANGE notifier
and back to the original parent in the POST_RATE_CHANGE notifier.

This should apply also to L2 scaling... as we can't relly use
the notifier, we manually do this on L2 scaling.

Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de> [nbg6817/ipq8065]
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2019-12-26 08:31:41 +01:00
..
apm821xx
ar7 kernel: bump 4.9 to 4.9.207 2019-12-24 18:04:32 +01:00
ar71xx
arc770
archs38
armvirt
at91
ath25
ath79 ath79: tp-link: use ath10k-ct-smallbuffers for 64 MiB devices 2019-12-25 11:59:16 +01:00
bcm53xx
brcm47xx
brcm63xx
brcm2708 brcm2708: fix malformed patch 2019-12-25 02:48:25 +01:00
cns3xxx
gemini
generic kernel: bump 4.9 to 4.9.207 2019-12-24 18:04:32 +01:00
imx6
ipq40xx
ipq806x ipq806x: fix bug in L2 cache scaling 2019-12-26 08:31:41 +01:00
ixp4xx kernel: bump 4.9 to 4.9.207 2019-12-24 18:04:32 +01:00
kirkwood
lantiq
layerscape kernel: bump 4.14 to 4.14.160 2019-12-24 17:45:54 +01:00
malta
mediatek
mpc85xx
mvebu kernel: bump 4.14 to 4.14.160 2019-12-24 17:45:54 +01:00
mxs
octeon
octeontx kernel: bump 4.14 to 4.14.160 2019-12-24 17:45:54 +01:00
omap
orion
oxnas
pistachio
ramips
rb532
samsung
sunxi
tegra
uml
x86
zynq
Makefile