ARM: EXYNOS: Update secondary boot addr for secure mode
PATCH RESEND v2 1/2 ARM: EXYNOS: Update secondary boot addr for secure mode
Almost all Exynos-series of SoCs that run in secure mode don't need additional offset for every CPU, with Exynos4412 being the only exception.
Tested on Origen-Quad (Exynos4412) and Arndale-Octa (Exynos5420).
While at it, fix the coding style (space around *).
--- arch/arm/mach-exynos/firmware.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
arch/arm/mach-exynos/firmware.c +7 -2
@@ -57,8 +57,13 @@ static int exynos_set_cpu_boot_addr(int cpu, unsigned long boot_addr) boot_reg = sysram_ns_base_addr +0x1c ; -if (!soc_is_exynos4212 () && !soc_is_exynos3250 ()) - boot_reg +=4 *cpu; +/* +* Almost all Exynos-series of SoCs that run in secure mode don't need +* additional offset for every CPU, with Exynos4412 being the only +* exception. +*/ +if (soc_is_exynos4412 ()) + boot_reg +=4 * cpu;__raw_writel (boot_addr, boot_reg);return 0 ;
Signature · 1 line
1.7.9.5
PATCH RESEND v2 2/2 ARM: dts: Add secure firmware support for Arndale-octa
From: Tushar Behera <[email protected]>
Arndale-Octa board is always configured to work with trustzone firmware binary. Added DTS node entry to enable this support.
--- arch/arm/boot/dts/exynos5420-arndale-octa.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/exynos5420-arndale-octa.dts +5 -0
@@ -26,6 +26,11 @@ bootargs = "console=ttySAC3,115200"; }; + firmware at 02073000 { + compatible = "samsung,secure-firmware"; + reg = <0x02073000 0x1000>; + }; + fixed-rate-clocks { oscclk { compatible = "samsung,exynos5420-oscclk";
Signature · 1 line
1.7.9.5
Kukjin Kim
AppliedPATCH RESEND v2 2/2 ARM: dts: Add secure firmware support for Arndale-octa
Quoted 17 lines · Sachin Kamat
From: Tushar Behera<[email protected]>
Arndale-Octa board is always configured to work with trustzone firmware binary. Added DTS node entry to enable this support.
Signed-off-by Tushar Behera<[email protected]>Signed-off-by Sachin Kamat<[email protected]>--- arch/arm/boot/dts/exynos5420-arndale-octa.dts | 5 +++++ 1 file changed, 5 insertions(+)arch/arm/boot/dts/exynos5420-arndale-octa.dts +0
-0@@ -26,6 +26,11 @@ bootargs = "console=ttySAC3,115200";
arch/arm/boot/dts/exynos5420-arndale-octa.dts line 36
Quoted 10 lines
arch/arm/boot/dts/exynos5420-arndale-octa.dts +5
-0}; + firmware at 02073000 { + compatible = "samsung,secure-firmware"; + reg =<0x02073000 0x1000>; + }; + fixed-rate-clocks { oscclk { compatible = "samsung,exynos5420-oscclk";
Applied, thanks.
- Kukjin
PATCH RESEND v2 1/2 ARM: EXYNOS: Update secondary boot addr for secure mode
In reply to Sachin KamatAm 28.05.2014 06:13, schrieb Sachin Kamat:
Quoted 6 lines
Almost all Exynos-series of SoCs that run in secure mode don't need additional offset for every CPU, with Exynos4412 being the only exception.
Tested on Origen-Quad (Exynos4412) and Arndale-Octa (Exynos5420).
Quoted 7 lines
While at it, fix the coding style (space around *).
Signed-off-by Sachin Kamat <[email protected]>Signed-off-by Tushar Behera <[email protected]>--- arch/arm/mach-exynos/firmware.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Fixes ODROID-XU (Exynos5410) as well - thought it had been a prereq to applying the 5410 patches...
Regards,
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg
PATCH RESEND v2 1/2 ARM: EXYNOS: Update secondary boot addr for secure mode
Quoted 15 lines · Andreas F?rber
Am 28.05.2014 06:13, schrieb Sachin Kamat:
Quoted 6 lines
Almost all Exynos-series of SoCs that run in secure mode don't need additional offset for every CPU, with Exynos4412 being the only exception.
Tested on Origen-Quad (Exynos4412) and Arndale-Octa (Exynos5420).
Quoted 7 lines
While at it, fix the coding style (space around *).
Signed-off-by Sachin Kamat<[email protected]>Signed-off-by Tushar Behera<[email protected]>--- arch/arm/mach-exynos/firmware.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Quoted 5 lines
Fixes ODROID-XU (Exynos5410) as well - thought it had been a prereq to applying the 5410 patches...
Tested-by Andreas F?rber<[email protected]>
Andreas, thanks for your test :-)
Sachin, How about exynos4210, 5250, 5260 and 5440?...
I need to check again, honestly I don't remember all of Exynos SoCs' different things ;-) Then will apply into fixes for 3.16.
Thanks,
Kukjin
PATCH RESEND v2 1/2 ARM: EXYNOS: Update secondary boot addr for secure mode
Quoted 19 lines · Kukjin Kim
Quoted 18 lines · Andreas F?rber
Am 28.05.2014 06:13, schrieb Sachin Kamat:
Quoted 6 lines
Almost all Exynos-series of SoCs that run in secure mode don't need additional offset for every CPU, with Exynos4412 being the only exception.
Tested on Origen-Quad (Exynos4412) and Arndale-Octa (Exynos5420).
Quoted 7 lines
While at it, fix the coding style (space around *).
Signed-off-by Sachin Kamat<[email protected]>Signed-off-by Tushar Behera<[email protected]>--- arch/arm/mach-exynos/firmware.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)Fixes ODROID-XU (Exynos5410) as well - thought it had been a prereq to applying the 5410 patches...
Quoted 7 lines
Quoted 2 lines
Tested-by Andreas F?rber<[email protected]>Andreas, thanks for your test :-)
Sachin, How about exynos4210, 5250, 5260 and 5440?...
I need to check again, honestly I don't remember all of Exynos SoCs' different things ;-) Then will apply into fixes for 3.16.
Exynos4210 doesn't use secure firmware, at least on any board supported in mainline. Not sure about those Exynos5 models, but the only boards supported in mainline with firmware node in DT are based on Exynos4412 or Exynos5410.
Best regards,
Tomasz
PATCH RESEND v2 1/2 ARM: EXYNOS: Update secondary boot addr for secure mode
Quoted 28 lines · Tomasz Figa
Quoted 19 lines · Kukjin Kim
Quoted 18 lines · Andreas F?rber
Am 28.05.2014 06:13, schrieb Sachin Kamat:
Quoted 6 lines
Almost all Exynos-series of SoCs that run in secure mode don't need additional offset for every CPU, with Exynos4412 being the only exception.
Tested on Origen-Quad (Exynos4412) and Arndale-Octa (Exynos5420).
Quoted 7 lines
While at it, fix the coding style (space around *).
Signed-off-by Sachin Kamat<[email protected]>Signed-off-by Tushar Behera<[email protected]>--- arch/arm/mach-exynos/firmware.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)Fixes ODROID-XU (Exynos5410) as well - thought it had been a prereq to applying the 5410 patches...
Quoted 7 lines
Quoted 2 lines
Tested-by Andreas F?rber<[email protected]>Andreas, thanks for your test :-)
Sachin, How about exynos4210, 5250, 5260 and 5440?...
I need to check again, honestly I don't remember all of Exynos SoCs' different things ;-) Then will apply into fixes for 3.16.
Quoted 8 lines
Exynos4210 doesn't use secure firmware, at least on any board supported in mainline. Not sure about those Exynos5 models, but the only boards supported in mainline with firmware node in DT are based on Exynos4412 or Exynos5410.
Best regards,
Tomasz
Kukjin,
Would you please pick this patch as a fix for 3.16?
Signature · 1 line
Tushar Behera
PATCH RESEND v2 1/2 ARM: EXYNOS: Update secondary boot addr for secure mode
In reply to Kukjin KimKukjin,
Quoted 22 lines · Kukjin Kim
Quoted 21 lines · Andreas F?rber
Am 28.05.2014 06:13, schrieb Sachin Kamat:
Quoted 7 lines
Almost all Exynos-series of SoCs that run in secure mode don't need additional offset for every CPU, with Exynos4412 being the only exception.
Tested on Origen-Quad (Exynos4412) and Arndale-Octa (Exynos5420).
Quoted 7 lines
While at it, fix the coding style (space around *).
Signed-off-by Sachin Kamat<[email protected]>Signed-off-by Tushar Behera<[email protected]>--- arch/arm/mach-exynos/firmware.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)Fixes ODROID-XU (Exynos5410) as well - thought it had been a prereq to applying the 5410 patches...
Quoted 7 lines
Quoted 2 lines
Tested-by Andreas F?rber<[email protected]>Andreas, thanks for your test :-)
Sachin, How about exynos4210, 5250, 5260 and 5440?...
I need to check again, honestly I don't remember all of Exynos SoCs' different things ;-) Then will apply into fixes for 3.16.
ping..
--
Regards,
Sachin.
PATCH RESEND v2 1/2 ARM: EXYNOS: Update secondary boot addr for secure mode
In reply to Andreas FärberQuoted 15 lines · Andreas F?rber
Am 28.05.2014 06:13, schrieb Sachin Kamat:
Quoted 6 lines
Almost all Exynos-series of SoCs that run in secure mode don't need additional offset for every CPU, with Exynos4412 being the only exception.
Tested on Origen-Quad (Exynos4412) and Arndale-Octa (Exynos5420).
Quoted 7 lines
While at it, fix the coding style (space around *).
Signed-off-by Sachin Kamat <[email protected]>Signed-off-by Tushar Behera <[email protected]>--- arch/arm/mach-exynos/firmware.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Quoted 5 lines
Fixes ODROID-XU (Exynos5410) as well - thought it had been a prereq to applying the 5410 patches...
Tested-by Andreas F?rber <[email protected]>
Kukjin, this patch is required to bring up 4 A15 cores on some 5410 and 5420 based
boards. Can you please queue this up for the upcoming rc as fixes?
PATCH RESEND v2 1/2 ARM: EXYNOS: Update secondary boot addr for secure mode
Quoted 20 lines · Sachin Kamat
Quoted 18 lines · Andreas F?rber
Am 28.05.2014 06:13, schrieb Sachin Kamat:
Quoted 6 lines
Almost all Exynos-series of SoCs that run in secure mode don't need additional offset for every CPU, with Exynos4412 being the only exception.
Tested on Origen-Quad (Exynos4412) and Arndale-Octa (Exynos5420).
Quoted 7 lines
While at it, fix the coding style (space around *).
Signed-off-by Sachin Kamat <[email protected]>Signed-off-by Tushar Behera <[email protected]>--- arch/arm/mach-exynos/firmware.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)Fixes ODROID-XU (Exynos5410) as well - thought it had been a prereq to applying the 5410 patches...
Quoted 6 lines
Quoted 2 lines
Tested-by Andreas F?rber <[email protected]>Kukjin, this patch is required to bring up 4 A15 cores on some 5410 and 5420 based
boards. Can you please queue this up for the upcoming rc as fixes?
Sure, I will take this into fixes.
Thanks,
Kukjin
PATCH RESEND v2 1/2 ARM: EXYNOS: Update secondary boot addr for secure mode
Am 25.06.2014 13:43, schrieb Kukjin Kim:
Quoted 18 lines
Quoted 17 lines · Sachin Kamat
Quoted 15 lines · Andreas F?rber
Am 28.05.2014 06:13, schrieb Sachin Kamat:
Quoted 13 lines
Almost all Exynos-series of SoCs that run in secure mode don't need additional offset for every CPU, with Exynos4412 being the only exception.
Tested on Origen-Quad (Exynos4412) and Arndale-Octa (Exynos5420).
While at it, fix the coding style (space around *).
Signed-off-by Sachin Kamat <[email protected]>Signed-off-by Tushar Behera <[email protected]>--- arch/arm/mach-exynos/firmware.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Fixes ODROID-XU (Exynos5410) as well - thought it had been a prereq to applying the 5410 patches...
Tested-by Andreas F?rber <[email protected]>
FWIW meanwhile I also successfully tested it on 5420 based Arndale Octa.
I can also check on 5250 based Spring, now that it's working, if that helps build confidence in the patch.
Cheers,
Andreas
Quoted 8 lines
Quoted 3 lines
Kukjin, this patch is required to bring up 4 A15 cores on some 5410 and 5420 based
boards. Can you please queue this up for the upcoming rc as fixes?Sure, I will take this into fixes.
Thanks,
Kukjin
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend?rffer; HRB 16746 AG N?rnberg
PATCH RESEND v2 1/2 ARM: EXYNOS: Update secondary boot addr for secure mode
In reply to Kukjin KimQuoted 21 lines · Kukjin Kim
Quoted 20 lines · Sachin Kamat
Quoted 18 lines · Andreas F?rber
Am 28.05.2014 06:13, schrieb Sachin Kamat:
Quoted 6 lines
Almost all Exynos-series of SoCs that run in secure mode don't need additional offset for every CPU, with Exynos4412 being the only exception.
Tested on Origen-Quad (Exynos4412) and Arndale-Octa (Exynos5420).
Quoted 7 lines
While at it, fix the coding style (space around *).
Signed-off-by Sachin Kamat <[email protected]>Signed-off-by Tushar Behera <[email protected]>--- arch/arm/mach-exynos/firmware.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)Fixes ODROID-XU (Exynos5410) as well - thought it had been a prereq to applying the 5410 patches...
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Tested-by Andreas F?rber <[email protected]>Kukjin, this patch is required to bring up 4 A15 cores on some 5410 and 5420 based
boards. Can you please queue this up for the upcoming rc as fixes?Sure, I will take this into fixes.
Kukjin,
I don't see this patch in your fixes-2 branch yet.
Quoted 4 lines
Thanks,
Kukjin
Regards,
Sachin.