All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Manorit Chawdhry <m-chawdhry@ti.com>
Cc: "Andrew F. Davis" <afd@ti.com>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Kamlesh Gurudasani <kamlesh@ti.com>,
	u-boot@lists.denx.de, Praneeth Bajjuri <praneeth@ti.com>,
	Neha Malcom Francis <n-francis@ti.com>
Subject: Re: [PATCH v2 2/3] Kconfig: j721s2: Change K3_MCU_SCRATCHPAD_BASE to non firewalled region
Date: Thu, 4 May 2023 20:59:22 -0400	[thread overview]
Message-ID: <20230505005922.GQ2270346@bill-the-cat> (raw)
In-Reply-To: <20230405-j721s2-hs-evm-upstream-v2-2-c0f10a410e07@ti.com>

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

On Thu, May 04, 2023 at 11:07:07AM +0530, Manorit Chawdhry wrote:

> On K3 HS-SE devices all the firewalls are locked by default
> until sysfw comes up. Rom configures some of the firewall for its usage
> along with the SRAM for R5 but the PSRAM region is still locked.
> 
> The K3 MCU Scratchpad for j721s2 was set to a PSRAM region triggering the
> firewall exception before sysfw came up. The exception started happening
> after adding multi dtb support that accesses the scratchpad for reading
> EEPROM contents.
> 
> Old map:
> ┌─────────────────────────────────────┐ 0x41c00000
> │                 SPL                 │
> ├─────────────────────────────────────┤ 0x41c61f20 (approx)
> │                STACK                │
> ├─────────────────────────────────────┤ 0x41c65f20
> │             Global data             │
> │  sizeof(struct global_data) = 0xd8  │
> ├─────────────────────────────────────┤ gd->malloc_base = 0x41c66000
> │                HEAP                 │
> │  CONFIG_SYS_MALLOC_F_LEN = 0x10000  │
> ├─────────────────────────────────────┤ CONFIG_SPL_BSS_START_ADDR
> │               SPL BSS               │ (0x41c76000)
> │  CONFIG_SPL_BSS_MAX_SIZE = 0xA000   │
> ├─────────────────────────────────────┤ (0x41c80000)
> │               DM DATA               │
> ├─────────────────────────────────────┤ (0x41c84130) (approx)
> │                EMPTY                │
> └─────────────────────────────────────┘ CONFIG_SYS_K3_BOOT_PARAM_TABLE_INDEX
> 				        (0x41cffbfc)
> 
> New map:
> ┌─────────────────────────────────────┐ 0x41c00000
> │                 SPL                 │
> ├─────────────────────────────────────┤ 0x41c61f20 (approx)
> │                STACK                │
> ├─────────────────────────────────────┤ 0x41c65f20
> │             Global data             │
> │  sizeof(struct global_data) = 0xd8  │
> ├─────────────────────────────────────┤ gd->malloc_base = 0x41c66000
> │                HEAP                 │
> │  CONFIG_SYS_MALLOC_F_LEN = 0x10000  │
> ├─────────────────────────────────────┤ CONFIG_SPL_BSS_START_ADDR
> │               SPL BSS               │ (0x41c76000)
> │  CONFIG_SPL_BSS_MAX_SIZE = 0xA000   │
> ├─────────────────────────────────────┤ (0x41c80000)
> │               DM DATA               │
> ├─────────────────────────────────────┤ (0x41c84130) (approx)
> │                EMPTY                │
> ├─────────────────────────────────────┤ SYS_K3_MCU_SCRATCHPAD_BASE
> │              SCRATCHPAD             │ (0x41cff9fc)
> │ SYS_K3_MCU_SCRATCHPAD_SIZE = 0x200  │
> └─────────────────────────────────────┘ CONFIG_SYS_K3_BOOT_PARAM_TABLE_INDEX
> 				        (0x41cffbfc)
> 
> Reviewed-by: Kamlesh Gurudasani <kamlesh@ti.com>
> Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>

Applied to u-boot/master, thanks!

-- 
Tom

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

  reply	other threads:[~2023-05-05  1:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-04  5:37 [PATCH v2 0/3] J7 merge HS configs Manorit Chawdhry
2023-05-04  5:37 ` [PATCH v2 1/3] configs: j721s2: Merge the HS and non-HS defconfigs Manorit Chawdhry
2023-05-05  0:59   ` Tom Rini
2023-05-04  5:37 ` [PATCH v2 2/3] Kconfig: j721s2: Change K3_MCU_SCRATCHPAD_BASE to non firewalled region Manorit Chawdhry
2023-05-05  0:59   ` Tom Rini [this message]
2023-05-05 13:45     ` Nishanth Menon
2023-05-08  4:51       ` Manorit Chawdhry
2023-05-08  4:57         ` Vignesh Raghavendra
2023-05-08  5:07           ` Manorit Chawdhry
2023-05-04  5:37 ` [PATCH v2 3/3] configs: j7200: Merge the HS and non-HS defconfigs Manorit Chawdhry
2023-05-05  0:59   ` 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=20230505005922.GQ2270346@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=afd@ti.com \
    --cc=kamlesh@ti.com \
    --cc=m-chawdhry@ti.com \
    --cc=n-francis@ti.com \
    --cc=praneeth@ti.com \
    --cc=u-boot@lists.denx.de \
    --cc=vigneshr@ti.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.