]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: dts: mediatek: mt8195-demo: fix the memory size of node secmon
authorMacpaul Lin <macpaul.lin@mediatek.com>
Fri, 11 Nov 2022 09:55:40 +0000 (17:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jan 2023 10:11:49 +0000 (11:11 +0100)
commit318bfeaf189d119f75e143c654d137d6fcf5b130
tree3162c56c61a77532a0a10b5f09c7dabbe9cbf3e1
parentcde1a27ac529da11efbb9dec504ca5bd3e177172
arm64: dts: mediatek: mt8195-demo: fix the memory size of node secmon

commit b48e0e8bf59a18e29c9b7195729d9b1616bac2a2 upstream.

The size of device tree node secmon (bl31_secmon_reserved) was
incorrect. It should be increased to 2MiB (0x200000).

The origin setting will cause some abnormal behavior due to
trusted-firmware-a and related firmware didn't load correctly.
The incorrect behavior may vary because of different software stacks.
For example, it will cause build error in some Yocto project because
it will check if there was enough memory to load trusted-firmware-a
to the reserved memory.

When mt8195-demo.dts sent to the upstream, at that time the size of
BL31 was small. Because supported functions and modules in BL31 are
basic sets when the board was under early development stage.

Now BL31 includes more firmwares of coprocessors and maturer functions
so the size has grown bigger in real applications. According to the value
reported by customers, we think reserved 2MiB for BL31 might be enough
for maybe the following 2 or 3 years.

Cc: stable@vger.kernel.org # v5.19
Fixes: cfcfd8a667f7 ("arm64: dts: mediatek: Add device-tree for MT8195 Demo board")
Signed-off-by: Macpaul Lin <macpaul.lin@mediatek.com>
Reviewed-by: Miles Chen <miles.chen@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20221111095540.28881-1-macpaul.lin@mediatek.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/boot/dts/mediatek/mt8195-demo.dts