Skip to content

Commit b2037da

Browse files
superna9999khilman
authored andcommitted
arm64: dts: meson-gxl-s805x: reduce initial Mali450 core frequency
When starting at 744MHz, the Mali 450 core crashes on S805X based boards: lima d00c0000.gpu: IRQ ppmmu3 not found lima d00c0000.gpu: IRQ ppmmu4 not found lima d00c0000.gpu: IRQ ppmmu5 not found lima d00c0000.gpu: IRQ ppmmu6 not found lima d00c0000.gpu: IRQ ppmmu7 not found Internal error: synchronous external abort: 96000210 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.7.2+ #492 Hardware name: Libre Computer AML-S805X-AC (DT) pstate: 40000005 (nZcv daif -PAN -UAO) pc : lima_gp_init+0x28/0x188 ... Call trace: lima_gp_init+0x28/0x188 lima_device_init+0x334/0x534 lima_pdev_probe+0xa4/0xe4 ... Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b Reverting to a safer 666Mhz frequency on the S805X that doesn't use the GP0 PLL makes it more stable. Fixes: fd47716 ("ARM64: dts: add S805X based P241 board") Fixes: 0449b8e ("arm64: dts: meson: add libretech aml-s805x-ac board") Signed-off-by: Neil Armstrong <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 95ca6f0 commit b2037da

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-libretech-ac.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <dt-bindings/input/input.h>
1111
#include <dt-bindings/sound/meson-aiu.h>
1212

13-
#include "meson-gxl-s905x.dtsi"
13+
#include "meson-gxl-s805x.dtsi"
1414

1515
/ {
1616
compatible = "libretech,aml-s805x-ac", "amlogic,s805x",

arch/arm64/boot/dts/amlogic/meson-gxl-s805x-p241.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <dt-bindings/input/input.h>
1111

12-
#include "meson-gxl-s905x.dtsi"
12+
#include "meson-gxl-s805x.dtsi"
1313

1414
/ {
1515
compatible = "amlogic,p241", "amlogic,s805x", "amlogic,meson-gxl";
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* Copyright (c) 2020 BayLibre SAS
4+
* Author: Neil Armstrong <[email protected]>
5+
*/
6+
7+
#include "meson-gxl-s905x.dtsi"
8+
9+
/ {
10+
compatible = "amlogic,s805x", "amlogic,meson-gxl";
11+
};
12+
13+
/* The S805X Package doesn't seem to handle the 744MHz OPP correctly */
14+
&mali {
15+
assigned-clocks = <&clkc CLKID_MALI_0_SEL>,
16+
<&clkc CLKID_MALI_0>,
17+
<&clkc CLKID_MALI>; /* Glitch free mux */
18+
assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>,
19+
<0>, /* Do Nothing */
20+
<&clkc CLKID_MALI_0>;
21+
assigned-clock-rates = <0>, /* Do Nothing */
22+
<666666666>,
23+
<0>; /* Do Nothing */
24+
};

0 commit comments

Comments
 (0)