public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Raghavendra, Vignesh" <vigneshr@ti.com>
To: Wadim Egorov <w.egorov@phytec.de>, <u-boot@lists.denx.de>
Cc: <nm@ti.com>, <upstream@lists.phytec.de>, <bb@ti.com>
Subject: Re: [PATCH 1/2] arm: mach-k3: am625: copy bootindex to OCRAM for main domain SPL
Date: Thu, 7 Mar 2024 09:34:34 +0530	[thread overview]
Message-ID: <bdd6862b-e902-443b-b410-cd3b45feeddd@ti.com> (raw)
In-Reply-To: <68235312-4121-4ffa-a735-6558fe5a3794@phytec.de>

Hi,

On 3/6/2024 7:14 PM, Wadim Egorov wrote:
> Hi Vignesh,
> 
> Am 04.03.24 um 06:06 schrieb Vignesh Raghavendra:
>> Hi Wadim,
>>
>> On 26/02/24 19:00, Wadim Egorov wrote:
>>> Texas Instruments has begun enabling security settings on the SoCs it
>>> produces to instruct ROM and TIFS to begin protecting the Security
>>> Management Subsystem (SMS) from other binaries we load into the chip by
>>> default.
>>>
>>> One way ROM and TIFS do this is by enabling firewalls to protect the
>>> OCSRAM and HSM RAM regions they're using during bootup.
>>>
>>> The HSM RAM the wakeup SPL is in is firewalled by TIFS to protect
>>> itself from the main domain applications. This means the 'bootindex'
>>> value in HSM RAM, left by ROM to indicate if we're using the primary
>>> or secondary boot-method, must be moved to OCSRAM (that TIFS has open
>>> for us) before we make the jump to the main domain so the main domain's
>>> bootloaders can keep access to this information.
>>>
>>> Based on commit
>>>    b672e8581070 ("arm: mach-k3: copy bootindex to OCRAM for main
>>> domain SPL")
>>>
>> FYI, this is mostly a problem in non SPL flow (TI prosperity SBL for
>> example) where HSM RAM would be used by HSM firmware. This should be a
>> issue in R5 SPL flow.  Do you see any issues today? If so, whats the
>> TIFS firmware being used?
> 
> I remember I was losing the bootindex using ti/downstream u-boot.
> But can't figure out the exact version anymore.
> Just did a bit of testing and I can not see the Issue with the current
> u-boot.
> Boot index in 0x43c3f290 stays intact.
> 
> Would it be okay to drop this patch and keep only the 2nd patch that
> factors out into get_boot_device()?
> 

yeah... 2/2 is still relevant irrespective of this patch.

[...]

  reply	other threads:[~2024-03-07  4:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-26 13:30 [PATCH 0/2] *** Introduce get_boot_device() for K3 platform *** Wadim Egorov
2024-02-26 13:30 ` [PATCH 1/2] arm: mach-k3: am625: copy bootindex to OCRAM for main domain SPL Wadim Egorov
2024-03-04  5:06   ` Vignesh Raghavendra
2024-03-04 20:27     ` Bryan Brattlof
2024-03-05  4:36       ` Vignesh Raghavendra
2024-03-05 17:34         ` Bryan Brattlof
2024-03-05 17:36           ` Raghavendra, Vignesh
2024-04-01  9:24             ` Wadim Egorov
2024-04-01 14:46               ` Bryan Brattlof
2024-04-01 16:53                 ` Wadim Egorov
2024-03-06 13:44     ` Wadim Egorov
2024-03-07  4:04       ` Raghavendra, Vignesh [this message]
2024-02-26 13:30 ` [PATCH 2/2] arm: mach-k3: am625: Provide a way to obtain boot device for non SPLs Wadim Egorov

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=bdd6862b-e902-443b-b410-cd3b45feeddd@ti.com \
    --to=vigneshr@ti.com \
    --cc=bb@ti.com \
    --cc=nm@ti.com \
    --cc=u-boot@lists.denx.de \
    --cc=upstream@lists.phytec.de \
    --cc=w.egorov@phytec.de \
    /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