* [U-Boot] [PATCH] arm: mach-omap2: Relax checks on OP-TEE location to allow pageable image
@ 2017-09-13 18:27 Andrew F. Davis
2017-09-14 3:55 ` Lokesh Vutla
2017-09-16 2:32 ` [U-Boot] " Tom Rini
0 siblings, 2 replies; 3+ messages in thread
From: Andrew F. Davis @ 2017-09-13 18:27 UTC (permalink / raw)
To: u-boot
From: Harinarayan Bhatta <harinarayan@ti.com>
When the OP-TEE image is built for secure paging the load address may be
in SRAM, remove checks that prevent this.
Signed-off-by: Harinarayan Bhatta <harinarayan@ti.com>
Signed-off-by: Andrew F. Davis <afd@ti.com>
---
arch/arm/mach-omap2/sec-common.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/arch/arm/mach-omap2/sec-common.c b/arch/arm/mach-omap2/sec-common.c
index 2d54a3165e..52e1785b4a 100644
--- a/arch/arm/mach-omap2/sec-common.c
+++ b/arch/arm/mach-omap2/sec-common.c
@@ -305,12 +305,8 @@ int secure_tee_install(u32 addr)
if ((hdr->magic != OPTEE_MAGIC) ||
(hdr->version != OPTEE_VERSION) ||
- (hdr->init_load_addr_hi != 0) ||
- (hdr->init_load_addr_lo < (sec_mem_start + sizeof(struct optee_header))) ||
- (tee_file_size > size) ||
- ((hdr->init_load_addr_lo + tee_file_size - 1) >
- (sec_mem_start + size - 1))) {
- printf("Error in TEE header. Check load address and sizes\n");
+ (tee_file_size > size)) {
+ printf("Error in TEE header. Check firewall and TEE sizes\n");
unmap_sysmem(hdr);
return CMD_RET_FAILURE;
}
--
2.14.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] arm: mach-omap2: Relax checks on OP-TEE location to allow pageable image
2017-09-13 18:27 [U-Boot] [PATCH] arm: mach-omap2: Relax checks on OP-TEE location to allow pageable image Andrew F. Davis
@ 2017-09-14 3:55 ` Lokesh Vutla
2017-09-16 2:32 ` [U-Boot] " Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Lokesh Vutla @ 2017-09-14 3:55 UTC (permalink / raw)
To: u-boot
On Wednesday 13 September 2017 11:57 PM, Andrew F. Davis wrote:
> From: Harinarayan Bhatta <harinarayan@ti.com>
>
> When the OP-TEE image is built for secure paging the load address may be
> in SRAM, remove checks that prevent this.
>
> Signed-off-by: Harinarayan Bhatta <harinarayan@ti.com>
> Signed-off-by: Andrew F. Davis <afd@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Thanks and regards,
Lokesh
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] arm: mach-omap2: Relax checks on OP-TEE location to allow pageable image
2017-09-13 18:27 [U-Boot] [PATCH] arm: mach-omap2: Relax checks on OP-TEE location to allow pageable image Andrew F. Davis
2017-09-14 3:55 ` Lokesh Vutla
@ 2017-09-16 2:32 ` Tom Rini
1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2017-09-16 2:32 UTC (permalink / raw)
To: u-boot
On Wed, Sep 13, 2017 at 01:27:44PM -0500, Andrew F. Davis wrote:
> From: Harinarayan Bhatta <harinarayan@ti.com>
>
> When the OP-TEE image is built for secure paging the load address may be
> in SRAM, remove checks that prevent this.
>
> Signed-off-by: Harinarayan Bhatta <harinarayan@ti.com>
> Signed-off-by: Andrew F. Davis <afd@ti.com>
> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170915/efc8be4a/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-09-16 2:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-13 18:27 [U-Boot] [PATCH] arm: mach-omap2: Relax checks on OP-TEE location to allow pageable image Andrew F. Davis
2017-09-14 3:55 ` Lokesh Vutla
2017-09-16 2:32 ` [U-Boot] " Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox