From: Breno Lima <brenomatheus@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/5] imx: hab: Keep CAAM clock enabled after authenticating additional images
Date: Tue, 20 Feb 2018 01:19:22 +0000 [thread overview]
Message-ID: <1519089566-17147-1-git-send-email-brenomatheus@gmail.com> (raw)
From: Breno Lima <breno.lima@nxp.com>
Currently it is not possible to run CMD_DEK on i.MX SPL targets:
=> dek_blob 0x12000000 0x12001000 128
The system hangs after running dek_blob because the CAAM clock is being
disabled by the HAB code. There is no need to disable CAAM clock after
authenticating additional boot images, thus keep CAAM clock enabled to
address this issue.
Signed-off-by: Breno Lima <breno.lima@nxp.com>
---
arch/arm/mach-imx/hab.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-imx/hab.c b/arch/arm/mach-imx/hab.c
index 5f19777..1e6b31d 100644
--- a/arch/arm/mach-imx/hab.c
+++ b/arch/arm/mach-imx/hab.c
@@ -507,13 +507,13 @@ int imx_hab_authenticate_image(uint32_t ddr_start, uint32_t image_size,
/* Verify IVT header bugging out on error */
if (verify_ivt_header(ivt_hdr))
- goto hab_caam_clock_disable;
+ goto hab_authentication_exit;
/* Verify IVT body */
if (ivt->self != ivt_addr) {
printf("ivt->self 0x%08x pointer is 0x%08x\n",
ivt->self, ivt_addr);
- goto hab_caam_clock_disable;
+ goto hab_authentication_exit;
}
start = ddr_start;
@@ -591,8 +591,7 @@ hab_exit_failure_print_status:
get_hab_status();
#endif
-hab_caam_clock_disable:
- hab_caam_clock_enable(0);
+hab_authentication_exit:
if (load_addr != 0)
result = 0;
--
2.7.4
next reply other threads:[~2018-02-20 1:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-20 1:19 Breno Lima [this message]
2018-02-20 1:19 ` [U-Boot] [PATCH 2/5] imx: hab: Ensure the IVT DCD pointer is Null prior to calling HAB authenticate function Breno Lima
2018-02-20 10:44 ` Fabio Estevam
2018-02-20 1:19 ` [U-Boot] [PATCH 3/5] imx: hab: Check if CSF is valid before authenticating image Breno Lima
2018-02-20 10:45 ` Fabio Estevam
2018-02-20 1:19 ` [U-Boot] [PATCH 4/5] imx: hab: Check if CSF contains deprecated commands Breno Lima
2018-02-20 10:45 ` Fabio Estevam
2018-02-20 1:19 ` [U-Boot] [PATCH 5/5] arm: imx: hab: Define HAB_RVT_BASE according to the processor version Breno Lima
2018-02-20 10:45 ` Fabio Estevam
2018-02-20 10:44 ` [U-Boot] [PATCH 1/5] imx: hab: Keep CAAM clock enabled after authenticating additional images Fabio Estevam
2018-02-22 13:36 ` Stefano Babic
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=1519089566-17147-1-git-send-email-brenomatheus@gmail.com \
--to=brenomatheus@gmail.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