U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH][v4] powerpc/mpc85xx: SECURE BOOT- Add secure boot target for B4860QDS
Date: Mon, 10 Mar 2014 18:55:46 -0500	[thread overview]
Message-ID: <1394495746.6150.8.camel@snotra.buserror.net> (raw)
In-Reply-To: <531DDC5C.8070805@freescale.com>

On Mon, 2014-03-10 at 08:38 -0700, York Sun wrote:
> On 03/10/2014 02:14 AM, Bansal Aneesh-B39320 wrote:
> >> -----Original Message-----
> >> From: Sun York-R58495
> >> Sent: Saturday, March 08, 2014 12:01 AM
> >> To: Bansal Aneesh-B39320; u-boot at lists.denx.de
> >> Cc: Wood Scott-B07421
> >> Subject: Re: [PATCH][v4] powerpc/mpc85xx: SECURE BOOT- Add secure boot
> >> target for B4860QDS
> >>
> >> Do you see the need to disable CPC before relocation? You are doing so
> >> in this patch. Does the temporary LAW or address conflict with u-boot?
> > Earlier we were disabling cpc in cpu_init_r. However since cache invalidation function was getting skipped in the process, it was causing random crashes. Skipping invalidation works in RAMBOOT scenario, however since we don?t have valid data when CPC is configured as cache for the secure boot scenario which is not RAMBOOT, these crashes were occurring in few platforms. As a result we had to move this disable code early in the sequence, so that invalidation of cache doesn?t get skipped.
> >>
> 
> As I suggested, if you have to do this before relocation, a macro
> CONFIG_SYS_CPC_REINIT_F makes more sense.

How hard would it be to check the status of CPC at runtime, or just
unconditionally reinit (for non-ramboot)?

I don't think I ever saw an answer to the question of what harm it does
to leave CPC alone until the normal place where we init CPC.

-Scott

  reply	other threads:[~2014-03-10 23:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-07 13:23 [U-Boot] [PATCH][v4] powerpc/mpc85xx: SECURE BOOT- Add secure boot target for B4860QDS Aneesh Bansal
2014-03-07 18:30 ` York Sun
2014-03-07 18:54   ` Scott Wood
2014-03-07 18:58     ` York Sun
2014-03-07 19:00       ` Scott Wood
2014-03-07 19:07         ` York Sun
2014-03-10 23:24           ` Scott Wood
2014-03-11  2:46             ` York Sun
2014-03-10  9:14   ` aneesh.bansal at freescale.com
2014-03-10 15:38     ` York Sun
2014-03-10 23:55       ` Scott Wood [this message]
2014-03-11  0:00         ` York Sun
2014-03-11  8:43           ` aneesh.bansal at freescale.com
2014-03-07 18:43 ` Scott Wood

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=1394495746.6150.8.camel@snotra.buserror.net \
    --to=scottwood@freescale.com \
    --cc=u-boot@lists.denx.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