From: Luca Weiss <luca.weiss@fairphone.com>
To: Sumit Garg <sumit.garg@kernel.org>,
u-boot@lists.denx.de, u-boot-qcom@groups.io
Cc: Tom Rini <trini@konsulko.com>, Lukasz Majewski <lukma@denx.de>,
Casey Connolly <casey.connolly@linaro.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Biswapriyo Nath <nathbappai@gmail.com>,
Aswin Murugan <aswin.murugan@oss.qualcomm.com>,
Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>,
Quentin Schulz <quentin.schulz@cherry.de>,
Johan Jonker <jbx6244@gmail.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Antony Kurniawan Soemardi <linux@smankusors.com>,
Luca Weiss <luca.weiss@fairphone.com>
Subject: [PATCH 4/4] mach-snapdragon: Do reserved memory carveout for MSM8953/SDM632
Date: Wed, 15 Jul 2026 17:17:43 +0200 [thread overview]
Message-ID: <20260715-msm8953-basic-v1-4-bc4cb5099d8e@fairphone.com> (raw)
In-Reply-To: <20260715-msm8953-basic-v1-0-bc4cb5099d8e@fairphone.com>
The MSM8953/SDM632 SoCs also requires the carveout, otherwise it crashes
in early init in initcall_run_f -> board_init_f -> initcall_run_r ->
initr_caches -> enable_caches -> dcache_enable -> mmu_setup ->
set_sctlr.
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
---
arch/arm/mach-snapdragon/board.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-snapdragon/board.c b/arch/arm/mach-snapdragon/board.c
index 35735f1551c..d7059473282 100644
--- a/arch/arm/mach-snapdragon/board.c
+++ b/arch/arm/mach-snapdragon/board.c
@@ -745,8 +745,10 @@ void enable_caches(void)
gd->arch.tlb_addr = tlb_addr;
gd->arch.tlb_size = tlb_size;
- /* We do the carveouts only for QCS404, for now. */
- if (fdt_node_check_compatible(gd->fdt_blob, 0, "qcom,qcs404") == 0) {
+ /* We do the carveouts only for some SoCs, for now. */
+ if (fdt_node_check_compatible(gd->fdt_blob, 0, "qcom,qcs404") == 0 ||
+ fdt_node_check_compatible(gd->fdt_blob, 0, "qcom,msm8953") == 0 ||
+ fdt_node_check_compatible(gd->fdt_blob, 0, "qcom,sdm632") == 0) {
carveout_start = get_timer(0);
/* Takes ~20-50ms on SDM845 */
carve_out_reserved_memory();
--
2.55.0
prev parent reply other threads:[~2026-07-16 1:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 15:17 [PATCH 0/4] Initial MSM8953 support Luca Weiss
2026-07-15 15:17 ` [PATCH 1/4] clk/qcom: Add MSM8953 clock driver Luca Weiss
2026-07-15 15:17 ` [PATCH 2/4] qcom_defconfig: Enable " Luca Weiss
2026-07-15 15:17 ` [PATCH 3/4] drivers: pinctrl: Add Qualcomm MSM8953 TLMM driver Luca Weiss
2026-07-15 15:17 ` Luca Weiss [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260715-msm8953-basic-v1-4-bc4cb5099d8e@fairphone.com \
--to=luca.weiss@fairphone.com \
--cc=aswin.murugan@oss.qualcomm.com \
--cc=casey.connolly@linaro.org \
--cc=ilias.apalodimas@linaro.org \
--cc=jbx6244@gmail.com \
--cc=linux@smankusors.com \
--cc=lukma@denx.de \
--cc=nathbappai@gmail.com \
--cc=neil.armstrong@linaro.org \
--cc=quentin.schulz@cherry.de \
--cc=sumit.garg@kernel.org \
--cc=trini@konsulko.com \
--cc=u-boot-qcom@groups.io \
--cc=u-boot@lists.denx.de \
--cc=varadarajan.narayanan@oss.qualcomm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox