All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Abhilash V <abhilash.v@oss.qualcomm.com>
Cc: ilias.apalodimas@linaro.org, aswin.murugan@oss.qualcomm.com,
	casey.connolly@linaro.org, neil.armstrong@linaro.org,
	sumit.garg@kernel.org, lukma@nabladev.com, peng.fan@nxp.com,
	jh80.chung@samsung.com, tanmay.kathpalia@altera.com,
	sjg@chromium.org, Michael.Srba@seznam.cz,
	varadarajan.narayanan@oss.qualcomm.com, nikroks@mainlining.org,
	balaji.selvanathan@oss.qualcomm.com, nathbappai@gmail.com,
	jbx6244@gmail.com, u-boot@lists.u-boot-project.org,
	u-boot-qcom@groups.io
Subject: Re: [PATCH v5 09/13] arm: qcom: enable MMU and cache setup for Shikra SPL
Date: Thu, 29 Oct 2026 11:14:35 -0600	[thread overview]
Message-ID: <20261029171435.GA3011578@bill-the-cat> (raw)
In-Reply-To: <20261029105746.3487456-10-abhilash.v@oss.qualcomm.com>

[-- Attachment #1: Type: text/plain, Size: 981 bytes --]

On Thu, Oct 29, 2026 at 03:57:42AM -0700, Abhilash V wrote:

> Use Shikra fixed pre-DDR memory map when enabling caches in
> SPL. Allocate page tables from the early malloc-F heap and
> select the board map through a common Qualcomm hook.
> 
> Signed-off-by: Abhilash V <abhilash.v@oss.qualcomm.com>
[snip]
> +/*
> + * SPL platforms whose pre-DRAM address map differs from the common Qualcomm
> + * map may override this hook.
> + */
> +struct mm_region *__weak qcom_spl_mem_map(void)
> +{
> +	return NULL;
> +}
[snip]
> @@ -192,7 +208,11 @@ void enable_caches(void)
>  
>  	gd->arch.tlb_fillptr = tlb_addr;
>  
> -	build_mem_map();
> +	spl_mem_map = qcom_spl_mem_map();
> +	if (spl_mem_map)
> +		mem_map = spl_mem_map;
> +	else
> +		build_mem_map();

This is kind of odd. Which pre-requisite series brings this in? I wonder
if a better abstraction would help, and if this is still the right way
to go, the weak part should come in then.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2026-10-29 17:14 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-29 10:57 [PATCH v5 00/13] qcom: shikra: add eMMC SPL boot support Abhilash V
2026-10-29 10:57 ` [PATCH v5 01/13] arm: qcom: add common QCLIB SPL extension helpers Abhilash V
2026-10-29 16:47   ` Tom Rini
2026-10-29 10:57 ` [PATCH v5 02/13] pinctrl: qcom: add Shikra SPL pinctrl option Abhilash V
2026-10-29 10:57 ` [PATCH v5 03/13] board: qualcomm: shikra: add SPL board support Abhilash V
2026-10-29 16:50   ` Tom Rini
2026-10-29 10:57 ` [PATCH v5 04/13] clk: qcom: add configurable FSM-voted PLL helper Abhilash V
2026-10-29 10:57 ` [PATCH v5 05/13] arm: dts: shikra: retain QUP SPL dependencies Abhilash V
2026-10-29 16:51   ` Tom Rini
2026-10-30  6:16     ` Sumit Garg
2026-10-29 10:57 ` [PATCH v5 06/13] clk: qcom: configure Shikra GPLL6 for SDCC1 Abhilash V
2026-10-29 10:57 ` [PATCH v5 07/13] clk: qcom: enable Shikra QUP wrapper clocks Abhilash V
2026-10-29 10:57 ` [PATCH v5 08/13] mmc: msm_sdhci: make tuning callbacks optional Abhilash V
2026-10-29 10:57 ` [PATCH v5 09/13] arm: qcom: enable MMU and cache setup for Shikra SPL Abhilash V
2026-10-29 17:14   ` Tom Rini [this message]
2026-10-29 10:57 ` [PATCH v5 10/13] board: qualcomm: shikra: prepare QUP firmware in SPL Abhilash V
2026-10-29 10:57 ` [PATCH v5 11/13] board: qualcomm: shikra: embed XBL-sec in SPL ELF Abhilash V
2026-10-29 16:55   ` Tom Rini
2026-10-29 10:57 ` [PATCH v5 12/13] arm: dts: shikra: retain SPL dependencies in IQS overlay Abhilash V
2026-10-29 10:57 ` [PATCH v5 13/13] clk: qcom: build only selected clock drivers in SPL Abhilash V
2026-10-29 17:21   ` Tom Rini

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=20261029171435.GA3011578@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=Michael.Srba@seznam.cz \
    --cc=abhilash.v@oss.qualcomm.com \
    --cc=aswin.murugan@oss.qualcomm.com \
    --cc=balaji.selvanathan@oss.qualcomm.com \
    --cc=casey.connolly@linaro.org \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jbx6244@gmail.com \
    --cc=jh80.chung@samsung.com \
    --cc=lukma@nabladev.com \
    --cc=nathbappai@gmail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=nikroks@mainlining.org \
    --cc=peng.fan@nxp.com \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@kernel.org \
    --cc=tanmay.kathpalia@altera.com \
    --cc=u-boot-qcom@groups.io \
    --cc=u-boot@lists.u-boot-project.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.