arm: exynos: Use the generic lowlevel_init instead of the specific one
Subsystems (3)
PATCH 1/1 arm: exynos: Use the generic lowlevel_init instead of the specific one
This patch is to use the the generic lowlevel_init instead of the specific one.
--- arch/arm/mach-exynos/soc.c | 8 -------- 1 file changed, 8 deletions(-)
arch/arm/mach-exynos/soc.c +0 -8
@@ -23,11 +23,3 @@ void enable_caches(void) dcache_enable(); }#endif - -#ifdef CONFIG_ARM64 -void lowlevel_init (void ) -{ -armv8_switch_to_el2 (); -armv8_switch_to_el1 (); -} -#endif
Signature · 1 line
2.1.0.27.g96db324
PATCH 1/1 arm: exynos: Use the generic lowlevel_init instead of the specific one
Quoted 4 lines · Alison Wang
This patch is to use the the generic
lowlevel_initinstead of the specific one.Signed-off-by Alison Wang <[email protected]>
If I had to guess, I'd think they only had their own version because the old one required a GIC.
Either way, since Samsung doesn't reply, I'm fine potentially breaking their boards if that means that we can make progress for actively maintained ones:
Alex
PATCH 1/1 arm: exynos: Use the generic lowlevel_init instead of the specific one
Hi Alison,
Quoted 10 lines · Alexander Graf
Quoted 4 lines · Alison Wang
This patch is to use the the generic
lowlevel_initinstead of the specific one.Signed-off-by Alison Wang <[email protected]>If I had to guess, I'd think they only had their own version because the old one required a GIC.
I apologize for the delay.
The reason for using a custom version was to avoid enabling ARMV8_MULTIENTRY config option since the Exynos7 code was ready for it.
Quoted 6 lines
Either way, since Samsung doesn't reply, I'm fine potentially breaking their boards if that means that we can make progress for actively maintained ones:
Reviewed-by Alexander Graf <[email protected]>
This patch without the ARMV8_MULTIENTRY and ARMV8_SWITCH_TO_EL1 config options does not switch the boot CPU from EL3 to EL1. So it would be preferable to not merge this patch until ARMV8_MULTIENTRY is enabled for Exynos7.
Thomas.
Quoted 7 lines
Alex
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
PATCH 1/1 arm: exynos: Use the generic lowlevel_init instead of the specific one
Quoted 30 lines
Am 20.09.2016 um 07:51 schrieb Thomas Abraham <[email protected]>:
Hi Alison,
Quoted 11 lines · Alexander Graf
Quoted 7 lines · Alison Wang
This patch is to use the the generic
lowlevel_initinstead of the specific one.Signed-off-by Alison Wang <[email protected]>If I had to guess, I'd think they only had their own version because the old one required a GIC.
I apologize for the delay.
The reason for using a custom version was to avoid enabling
ARMV8_MULTIENTRYconfig option since the Exynos7 code was ready for it.Quoted 5 lines
Either way, since Samsung doesn't reply, I'm fine potentially breaking their boards if that means that we can make progress for actively maintained ones:
Quoted 6 lines
Quoted 1 line
Reviewed-by Alexander Graf <[email protected]>This patch without the
ARMV8_MULTIENTRYandARMV8_SWITCH_TO_EL1config options does not switch the boot CPU from EL3 to EL1. So it would be preferable to not merge this patch untilARMV8_MULTIENTRYis enabled for Exynos7.
Why do you want to switch it to EL1 in the first place? Linux is very happy to live in EL2 - which is what we call it in by default.
Alex
PATCH 1/1 arm: exynos: Use the generic lowlevel_init instead of the specific one
Quoted 43 lines · Alexander Graf
Am 20.09.2016 um 07:51 schrieb Thomas Abraham <[email protected]>:
Hi Alison,
On Mon, Sep 19, 2016 at 7:38 PM, Alexander Graf <[email protected]> wrote:
On 09.09.16 10:48, Alison Wang wrote:
This patch is to use the the generic
lowlevel_initinstead of thespecific one.
Signed-off-by Alison Wang <[email protected]>If I had to guess, I'd think they only had their own version because the
old one required a GIC.
I apologize for the delay.
The reason for using a custom version was to avoid enabling
ARMV8_MULTIENTRYconfig option since the Exynos7 code was ready for it.Either way, since Samsung doesn't reply, I'm fine potentially breaking
their boards if that means that we can make progress for actively
maintained ones:
Reviewed-by Alexander Graf <[email protected]>
Quoted 8 lines
This patch without the
ARMV8_MULTIENTRYandARMV8_SWITCH_TO_EL1config options does not switch the boot CPU from EL3 to EL1. So it would be preferable to not merge this patch untilARMV8_MULTIENTRYis enabled for Exynos7.Why do you want to switch it to EL1 in the first place? Linux is very happy to live in EL2 - which is what we call it in by default.
Okay, there is no particular requirement to be in EL1 for Exynos7. EL2 would also be fine. But Exynos7 support in u-boot is not yet ready for enabling ARMV8_MULTIENTRY config option. Is there anything be blocked due to Exynos7 using a custom lowlevel_init function?
Thomas.
Quoted 4 lines
Alex
PATCH 1/1 arm: exynos: Use the generic lowlevel_init instead of the specific one
Quoted 50 lines · Thomas Abraham
Quoted 49 lines · Alexander Graf
Am 20.09.2016 um 07:51 schrieb Thomas Abraham <[email protected]>:
Hi Alison,
On Mon, Sep 19, 2016 at 7:38 PM, Alexander Graf <[email protected]> wrote:
On 09.09.16 10:48, Alison Wang wrote:
This patch is to use the the generic
lowlevel_initinstead of thespecific one.
Signed-off-by Alison Wang <[email protected]>If I had to guess, I'd think they only had their own version because the
old one required a GIC.
I apologize for the delay.
The reason for using a custom version was to avoid enabling
ARMV8_MULTIENTRYconfig option since the Exynos7 code was ready for it.Either way, since Samsung doesn't reply, I'm fine potentially breaking
their boards if that means that we can make progress for actively
maintained ones:
Reviewed-by Alexander Graf <[email protected]>This patch without the
ARMV8_MULTIENTRYandARMV8_SWITCH_TO_EL1config options does not switch the boot CPU from EL3 to EL1. So it would be preferable to not merge this patch untilARMV8_MULTIENTRYis enabled for Exynos7.
Quoted 7 lines
Quoted 2 lines
Why do you want to switch it to EL1 in the first place? Linux is very happy to live in EL2 - which is what we call it in by default.
Okay, there is no particular requirement to be in EL1 for Exynos7. EL2 would also be fine. But Exynos7 support in u-boot is not yet ready for enabling
ARMV8_MULTIENTRYconfig option. Is there anything be blocked due to Exynos7 using a customlowlevel_initfunction?
Yes, we're changing the semantics of armv8_switch_to_el2 and armv8_switch_to_el1:
http://lists.denx.de/pipermail/u-boot/2016-September/266217.html
which is a prerequisite for AArch32 kernel boot on AArch64 systems.
How quickly do you think you could make Exynos7 work with MULTIENTRY?
Alex
PATCH 1/1 arm: exynos: Use the generic lowlevel_init instead of the specific one
Quoted 61 lines · Alexander Graf
Quoted 50 lines · Thomas Abraham
Quoted 49 lines · Alexander Graf
Am 20.09.2016 um 07:51 schrieb Thomas Abraham <[email protected]>:
Hi Alison,
On Mon, Sep 19, 2016 at 7:38 PM, Alexander Graf <[email protected]> wrote:
On 09.09.16 10:48, Alison Wang wrote:
This patch is to use the the generic
lowlevel_initinstead of thespecific one.
Signed-off-by Alison Wang <[email protected]>If I had to guess, I'd think they only had their own version because the
old one required a GIC.
I apologize for the delay.
The reason for using a custom version was to avoid enabling
ARMV8_MULTIENTRYconfig option since the Exynos7 code was ready for it.Either way, since Samsung doesn't reply, I'm fine potentially breaking
their boards if that means that we can make progress for actively
maintained ones:
Reviewed-by Alexander Graf <[email protected]>This patch without the
ARMV8_MULTIENTRYandARMV8_SWITCH_TO_EL1config options does not switch the boot CPU from EL3 to EL1. So it would be preferable to not merge this patch untilARMV8_MULTIENTRYis enabled for Exynos7.Quoted 7 lines
Quoted 2 lines
Why do you want to switch it to EL1 in the first place? Linux is very happy to live in EL2 - which is what we call it in by default.
Okay, there is no particular requirement to be in EL1 for Exynos7. EL2 would also be fine. But Exynos7 support in u-boot is not yet ready for enabling
ARMV8_MULTIENTRYconfig option. Is there anything be blocked due to Exynos7 using a customlowlevel_initfunction?
Quoted 6 lines
Yes, we're changing the semantics of
armv8_switch_to_el2andarmv8_switch_to_el1:http://lists.denx.de/pipermail/u-boot/2016-September/266217.html
which is a prerequisite for AArch32 kernel boot on AArch64 systems.
Okay.
Quoted 3 lines
How quickly do you think you could make Exynos7 work with MULTIENTRY?
Exynos7420 uses CPU 0 of Cluster 1 as boot CPU (master CPU). The macro 'branch_if_master' requires all affinity values to be zero for a CPU to be identified as a master CPU. And so the boot CPU is incorrectly detected as a slave CPU. I have tested with the following temporary workaround to enable ARMV8_MULTIENTRY on Exynos7420. If it looks fine, this can be merged along with Alison's patch.
Thomas.
arch/arm/mach-exynos/Kconfig +2 -0
@@ -126,6 +126,8 @@ choice config TARGET_ESPRESSO7420 bool "ESPRESSO7420 board" select ARM64 + select ARMV8_MULTIENTRY + select ARMV8_SWITCH_TO_EL1 select SUPPORT_SPL select OF_CONTROL select SPL_DISABLE_OF_CONTROL
arch/arm/mach-exynos/soc.c +10 -0
@@ -9,6 +9,16 @@#include <asm/io.h> #include <asm/system.h> +#ifdef CONFIG_TARGET_ESPRESSO7420 +/* +* Exynos7420 uses CPU0 of Cluster-1 as boot CPU. Due to this branch_if_master +* fails to identify as the master CPU. As temporary workaround, setup the +* slave CPU boot address as "_main". +*/ +extern void _main (void ); +void *secondary_boot_addr = (void *)_main; +#endif /* CONFIG_TARGET_ESPRESSO7420 */ +void reset_cpu (ulong addr) {#ifdef CONFIG_CPU_V7
(quoted diff) +0 -0
b/include/configs/exynos7420-common.h
index 9e03962..6f58aef 100644
include/configs/exynos7420-common.h +0 -0
@@ -48,6 +48,7 @@#define CONFIG_IRAM_BASE 0x02100000#define CONFIG_IRAM_SIZE 0x58000#define CONFIG_IRAM_END (CONFIG_IRAM_BASE +
CONFIG_IRAM_SIZE)
+#define CPU_RELEASE_ADDR secondary_boot_addr
/* Number of CPUs available */
#define CONFIG_CORE_COUNT 0x8
Quoted 2 lines
Alex
PATCH 1/1 arm: exynos: Use the generic lowlevel_init instead of the specific one
Quoted 75 lines · Thomas Abraham
Quoted 61 lines · Alexander Graf
Quoted 50 lines · Thomas Abraham
Quoted 49 lines · Alexander Graf
Am 20.09.2016 um 07:51 schrieb Thomas Abraham <[email protected]>:
Hi Alison,
On Mon, Sep 19, 2016 at 7:38 PM, Alexander Graf <[email protected]> wrote:
On 09.09.16 10:48, Alison Wang wrote:
This patch is to use the the generic
lowlevel_initinstead of thespecific one.
Signed-off-by Alison Wang <[email protected]>If I had to guess, I'd think they only had their own version because the
old one required a GIC.
I apologize for the delay.
The reason for using a custom version was to avoid enabling
ARMV8_MULTIENTRYconfig option since the Exynos7 code was ready for it.Either way, since Samsung doesn't reply, I'm fine potentially breaking
their boards if that means that we can make progress for actively
maintained ones:
Reviewed-by Alexander Graf <[email protected]>This patch without the
ARMV8_MULTIENTRYandARMV8_SWITCH_TO_EL1config options does not switch the boot CPU from EL3 to EL1. So it would be preferable to not merge this patch untilARMV8_MULTIENTRYis enabled for Exynos7.Quoted 7 lines
Quoted 2 lines
Why do you want to switch it to EL1 in the first place? Linux is very happy to live in EL2 - which is what we call it in by default.
Okay, there is no particular requirement to be in EL1 for Exynos7. EL2 would also be fine. But Exynos7 support in u-boot is not yet ready for enabling
ARMV8_MULTIENTRYconfig option. Is there anything be blocked due to Exynos7 using a customlowlevel_initfunction?Quoted 6 lines
Yes, we're changing the semantics of
armv8_switch_to_el2andarmv8_switch_to_el1:http://lists.denx.de/pipermail/u-boot/2016-September/266217.html
which is a prerequisite for AArch32 kernel boot on AArch64 systems.
Okay.
Quoted 3 lines
How quickly do you think you could make Exynos7 work with MULTIENTRY?
Quoted 6 lines
Exynos7420 uses CPU 0 of Cluster 1 as boot CPU (master CPU). The macro '
branch_if_master' requires all affinity values to be zero for a CPU to be identified as a master CPU. And so the boot CPU is incorrectly detected as a slave CPU. I have tested with the following temporary workaround to enableARMV8_MULTIENTRYon Exynos7420. If it looks fine, this can be merged along with Alison's patch.
That certainly works for me. Is there a particular reason why you want to do the EL1 switch? I would strongly prefer if we could just enter OSs in EL2 always.
Alex
PATCH 1/1 arm: exynos: Use the generic lowlevel_init instead of the specific one
Quoted 85 lines · Alexander Graf
Quoted 75 lines · Thomas Abraham
Quoted 61 lines · Alexander Graf
Quoted 50 lines · Thomas Abraham
Quoted 49 lines · Alexander Graf
Am 20.09.2016 um 07:51 schrieb Thomas Abraham <[email protected]>:
Hi Alison,
On Mon, Sep 19, 2016 at 7:38 PM, Alexander Graf <[email protected]> wrote:
On 09.09.16 10:48, Alison Wang wrote:
This patch is to use the the generic
lowlevel_initinstead of thespecific one.
Signed-off-by Alison Wang <[email protected]>If I had to guess, I'd think they only had their own version because the
old one required a GIC.
I apologize for the delay.
The reason for using a custom version was to avoid enabling
ARMV8_MULTIENTRYconfig option since the Exynos7 code was ready for it.Either way, since Samsung doesn't reply, I'm fine potentially breaking
their boards if that means that we can make progress for actively
maintained ones:
Reviewed-by Alexander Graf <[email protected]>This patch without the
ARMV8_MULTIENTRYandARMV8_SWITCH_TO_EL1config options does not switch the boot CPU from EL3 to EL1. So it would be preferable to not merge this patch untilARMV8_MULTIENTRYis enabled for Exynos7.Quoted 7 lines
Quoted 2 lines
Why do you want to switch it to EL1 in the first place? Linux is very happy to live in EL2 - which is what we call it in by default.
Okay, there is no particular requirement to be in EL1 for Exynos7. EL2 would also be fine. But Exynos7 support in u-boot is not yet ready for enabling
ARMV8_MULTIENTRYconfig option. Is there anything be blocked due to Exynos7 using a customlowlevel_initfunction?Quoted 6 lines
Yes, we're changing the semantics of
armv8_switch_to_el2andarmv8_switch_to_el1:http://lists.denx.de/pipermail/u-boot/2016-September/266217.html
which is a prerequisite for AArch32 kernel boot on AArch64 systems.
Okay.
Quoted 3 lines
How quickly do you think you could make Exynos7 work with MULTIENTRY?
Quoted 6 lines
Exynos7420 uses CPU 0 of Cluster 1 as boot CPU (master CPU). The macro '
branch_if_master' requires all affinity values to be zero for a CPU to be identified as a master CPU. And so the boot CPU is incorrectly detected as a slave CPU. I have tested with the following temporary workaround to enableARMV8_MULTIENTRYon Exynos7420. If it looks fine, this can be merged along with Alison's patch.
Quoted 3 lines
That certainly works for me. Is there a particular reason why you want to do the EL1 switch? I would strongly prefer if we could just enter OSs in EL2 always.
There is no particular reason for EL1 switch for Exynos7420. The ARMV8_SWITCH_TO_EL1 config option can be removed, that sneaked in accidentally into the diff.
Thomas.
PATCH 1/1 arm: exynos: Use the generic lowlevel_init instead of the specific one
In reply to Thomas AbrahamHi, Thomas, Alex and York,
Before there are some discussions about this patch, could we make a solution now? Or else, the patches about [PATCH v8 0/3] armv8: Support loading 32-bit OS in AArch32 execution state can't be merged, as the compiling will fail without this patch.
Thomas, is ARMV8_MULTIENTRY enabled on Exynos7420 now? If not, is there a good way to enable ARMV8_MULTIENTRY on Exynos7420 now?
Thanks.
Best Regards,
Alison Wang
Quoted 159 lines
-----Original Message-----
From: Thomas Abraham [mailto:ta.omasab at gmail.com]
Sent: Tuesday, September 20, 2016 4:45 PM
To: Alexander Graf <[email protected]>
Cc: Alison Wang <[email protected]>; thomas.ab at samsung.com; Minkyu Kang <[email protected]>; york sun <[email protected]>; U-Boot Mailing List <[email protected]>; Jason Jin <[email protected]>
Subject: Re: [U-Boot] [PATCH] arm: exynos: Use the genericlowlevel_initinstead of the specific oneQuoted 4 lines · Alexander Graf
Quoted 1 line · Thomas Abraham
On Tue, Sep 20, 2016 at 11:35 AM, Alexander Graf <[email protected]>
Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 8 lines
Am 20.09.2016 um 07:51 schrieb Thomas Abraham <[email protected]>:
Hi Alison,
On Mon, Sep 19, 2016 at 7:38 PM, Alexander Graf <[email protected]>
Quoted 7 lines · wrote:
Quoted 7 lines
Quoted 7 lines · Alison Wang
This patch is to use the the generic
lowlevel_initinstead of theQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
specific one.
Signed-off-by Alison Wang <[email protected]>If I had to guess, I'd think they only had their own version
because the
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
old one required a GIC.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
I apologize for the delay.
The reason for using a custom version was to avoid enabling
ARMV8_MULTIENTRYconfig option since the Exynos7 code was ready for it.Either way, since Samsung doesn't reply, I'm fine potentially
breaking
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
their boards if that means that we can make progress for actively
maintained ones:
Reviewed-by Alexander Graf <[email protected]>This patch without the
ARMV8_MULTIENTRYandARMV8_SWITCH_TO_EL1config
Quoted 1 line
Quoted 1 line
Quoted 1 line
options does not switch the boot CPU from EL3 to EL1. So it would
be
Quoted 1 line
Quoted 1 line
Quoted 1 line
preferable to not merge this patch until
ARMV8_MULTIENTRYisenabled
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
for Exynos7.
Why do you want to switch it to EL1 in the first place? Linux is
very happy
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
to live in EL2 - which is what we call it in by default.
Okay, there is no particular requirement to be in EL1 for Exynos7.
EL2
Quoted 1 line
Quoted 1 line
would also be fine. But Exynos7 support in u-boot is not yet ready
for
Quoted 1 line
Quoted 1 line
enabling
ARMV8_MULTIENTRYconfig option. Is there anything beblocked
Quoted 8 lines
Quoted 1 line
due to Exynos7 using a custom
lowlevel_initfunction?Yes, we're changing the semantics of
armv8_switch_to_el2andarmv8_switch_to_el1:http://lists.denx.de/pipermail/u-boot/2016-September/266217.html
which is a prerequisite for AArch32 kernel boot on AArch64 systems.
Okay.
Quoted 3 lines
How quickly do you think you could make Exynos7 work with MULTIENTRY?
Exynos7420 uses CPU 0 of Cluster 1 as boot CPU (master CPU). The macro '
branch_if_master' requires all affinity values to be zero for a CPU to be identified as a master CPU. And so the boot CPU is incorrectly detected as a slave CPU. I have tested with the following temporary workaround to enableARMV8_MULTIENTRYon Exynos7420. If it looks fine, this can be merged along with Alison's patch.Thomas.
arch/arm/mach- renamed from arch/arm/mach-exynos/Kconfig +0
-0exynos/Kconfig
index ce2a16f..45c5eeb 100644arch/arm/mach-exynos/Kconfig +2
-0@@ -126,6 +126,8 @@ choice config TARGET_ESPRESSO7420 bool "ESPRESSO7420 board" select ARM64 + select ARMV8_MULTIENTRY + select ARMV8_SWITCH_TO_EL1 select SUPPORT_SPL select OF_CONTROL select SPL_DISABLE_OF_CONTROLarch/arm/mach-exynos/soc.c +3
-0@@ -9,6 +9,16 @@#include <asm/io.h> #include <asm/system.h> +#ifdef CONFIG_TARGET_ESPRESSO7420 +/* +* Exynos7420 uses CPU0 of Cluster-1 as boot CPU. Due to this
branch_if_master
+ * fails to identify as the master CPU. As temporary workaround, setup the
+ * slave CPU boot address as "_main".
+ */arch/arm/mach-exynos/soc.c +4
-0+extern void _main (void ); +void *secondary_boot_addr = (void *)_main; +#endif /* CONFIG_TARGET_ESPRESSO7420 */ +void reset_cpu (ulong addr) {#ifdef CONFIG_CPU_V7 include/configs/exynos7420-common.h +1
-0@@ -48,6 +48,7 @@#define CONFIG_IRAM_BASE 0x02100000#define CONFIG_IRAM_SIZE 0x58000#define CONFIG_IRAM_END (CONFIG_IRAM_BASE + CONFIG_IRAM_SIZE) +#define CPU_RELEASE_ADDR secondary_boot_addr/* Number of CPUs available */ #define
CONFIG_CORE_COUNT0x8Quoted 2 lines
Alex
PATCH 1/1 arm: exynos: Use the generic lowlevel_init instead of the specific one
Hi Alison,
Quoted 5 lines · Alison Wang
Hi, Thomas, Alex and York,
Before there are some discussions about this patch, could we make a solution now? Or else, the patches about [PATCH v8 0/3] armv8: Support loading 32-bit OS in AArch32 execution state can't be merged, as the compiling will fail without this patch.
Thomas, is
ARMV8_MULTIENTRYenabled on Exynos7420 now? If not, is there a good way to enableARMV8_MULTIENTRYon Exynos7420 now?
It is not yet enabled. I will post the ARMV8_MULTIENTRY enable patch for Exynos7420 later today. Alternatively, you could include the patch listed in the previous email in your series.
Thanks,
Thomas.
Quoted 165 lines
Thanks.
Best Regards,
Alison WangQuoted 159 lines
-----Original Message-----
From: Thomas Abraham [mailto:ta.omasab at gmail.com]
Sent: Tuesday, September 20, 2016 4:45 PM
To: Alexander Graf <[email protected]>
Cc: Alison Wang <[email protected]>; thomas.ab at samsung.com; Minkyu Kang <[email protected]>; york sun <[email protected]>; U-Boot Mailing List <[email protected]>; Jason Jin <[email protected]>
Subject: Re: [U-Boot] [PATCH] arm: exynos: Use the genericlowlevel_initinstead of the specific oneQuoted 4 lines · Alexander Graf
Quoted 1 line · Thomas Abraham
On Tue, Sep 20, 2016 at 11:35 AM, Alexander Graf <[email protected]>
Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 8 lines
Am 20.09.2016 um 07:51 schrieb Thomas Abraham <[email protected]>:
Hi Alison,
On Mon, Sep 19, 2016 at 7:38 PM, Alexander Graf <[email protected]>
Quoted 7 lines · wrote:
Quoted 7 lines
Quoted 7 lines · Alison Wang
This patch is to use the the generic
lowlevel_initinstead of theQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
specific one.
Signed-off-by Alison Wang <[email protected]>If I had to guess, I'd think they only had their own version
because the
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
old one required a GIC.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
I apologize for the delay.
The reason for using a custom version was to avoid enabling
ARMV8_MULTIENTRYconfig option since the Exynos7 code was ready for it.Either way, since Samsung doesn't reply, I'm fine potentially
breaking
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
their boards if that means that we can make progress for actively
maintained ones:
Reviewed-by Alexander Graf <[email protected]>This patch without the
ARMV8_MULTIENTRYandARMV8_SWITCH_TO_EL1config
Quoted 1 line
Quoted 1 line
Quoted 1 line
options does not switch the boot CPU from EL3 to EL1. So it would
be
Quoted 1 line
Quoted 1 line
Quoted 1 line
preferable to not merge this patch until
ARMV8_MULTIENTRYisenabled
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
for Exynos7.
Why do you want to switch it to EL1 in the first place? Linux is
very happy
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
to live in EL2 - which is what we call it in by default.
Okay, there is no particular requirement to be in EL1 for Exynos7.
EL2
Quoted 1 line
Quoted 1 line
would also be fine. But Exynos7 support in u-boot is not yet ready
for
Quoted 1 line
Quoted 1 line
enabling
ARMV8_MULTIENTRYconfig option. Is there anything beblocked
Quoted 8 lines
Quoted 1 line
due to Exynos7 using a custom
lowlevel_initfunction?Yes, we're changing the semantics of
armv8_switch_to_el2andarmv8_switch_to_el1:http://lists.denx.de/pipermail/u-boot/2016-September/266217.html
which is a prerequisite for AArch32 kernel boot on AArch64 systems.
Okay.
Quoted 3 lines
How quickly do you think you could make Exynos7 work with MULTIENTRY?
Exynos7420 uses CPU 0 of Cluster 1 as boot CPU (master CPU). The macro '
branch_if_master' requires all affinity values to be zero for a CPU to be identified as a master CPU. And so the boot CPU is incorrectly detected as a slave CPU. I have tested with the following temporary workaround to enableARMV8_MULTIENTRYon Exynos7420. If it looks fine, this can be merged along with Alison's patch.Thomas.
arch/arm/mach- renamed from arch/arm/mach-exynos/Kconfig +0
-0exynos/Kconfig
index ce2a16f..45c5eeb 100644arch/arm/mach-exynos/Kconfig +2
-0@@ -126,6 +126,8 @@ choice config TARGET_ESPRESSO7420 bool "ESPRESSO7420 board" select ARM64 + select ARMV8_MULTIENTRY + select ARMV8_SWITCH_TO_EL1 select SUPPORT_SPL select OF_CONTROL select SPL_DISABLE_OF_CONTROLarch/arm/mach-exynos/soc.c +3
-0@@ -9,6 +9,16 @@#include <asm/io.h> #include <asm/system.h> +#ifdef CONFIG_TARGET_ESPRESSO7420 +/* +* Exynos7420 uses CPU0 of Cluster-1 as boot CPU. Due to this
branch_if_master
+ * fails to identify as the master CPU. As temporary workaround, setup the
+ * slave CPU boot address as "_main".
+ */arch/arm/mach-exynos/soc.c +4
-0+extern void _main (void ); +void *secondary_boot_addr = (void *)_main; +#endif /* CONFIG_TARGET_ESPRESSO7420 */ +void reset_cpu (ulong addr) {#ifdef CONFIG_CPU_V7 include/configs/exynos7420-common.h +1
-0@@ -48,6 +48,7 @@#define CONFIG_IRAM_BASE 0x02100000#define CONFIG_IRAM_SIZE 0x58000#define CONFIG_IRAM_END (CONFIG_IRAM_BASE + CONFIG_IRAM_SIZE) +#define CPU_RELEASE_ADDR secondary_boot_addr/* Number of CPUs available */ #define
CONFIG_CORE_COUNT0x8Quoted 2 lines
Alex
PATCH 1/1 arm: exynos: Use the generic lowlevel_init instead of the specific one
Hi, Thomas,
Quoted 9 lines
Quoted 3 lines · Alison Wang
Hi, Thomas, Alex and York,
Before there are some discussions about this patch, could we make a
solution now? Or else, the patches about [PATCH v8 0/3] armv8: Support loading 32-bit OS in AArch32 execution state can't be merged, as the compiling will fail without this patch.
Quoted 1 line
Quoted 7 lines
Quoted 1 line
Thomas, is
ARMV8_MULTIENTRYenabled on Exynos7420 now? If not, isthere a good way to enable
ARMV8_MULTIENTRYon Exynos7420 now?It is not yet enabled. I will post the
ARMV8_MULTIENTRYenable patch for Exynos7420 later today. Alternatively, you could include the patch listed in the previous email in your series.
[Alison Wang] Thanks for your reply. I think it's better to send the patch by you (the maintainer). Please send it later today. :)
Best Regards,
Alison Wang
Quoted 178 lines
Quoted 12 lines
Thanks.
Best Regards,
Alison WangQuoted 5 lines
-----Original Message-----
From: Thomas Abraham [mailto:ta.omasab at gmail.com]
Sent: Tuesday, September 20, 2016 4:45 PM
To: Alexander Graf <[email protected]>
Cc: Alison Wang <[email protected]>; thomas.ab at samsung.com;Minkyu
Quoted 6 lines
Quoted 6 lines
Kang <[email protected]>; york sun <[email protected]>; U-Boot Mailing List <[email protected]>; Jason Jin <[email protected]>
Subject: Re: [U-Boot] [PATCH] arm: exynos: Use the genericlowlevel_initinstead of the specific oneOn Tue, Sep 20, 2016 at 12:03 PM, Alexander Graf <[email protected]>
Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 4 lines · Thomas Abraham
Quoted 1 line
On Tue, Sep 20, 2016 at 11:35 AM, Alexander Graf <[email protected]>
Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines
Am 20.09.2016 um 07:51 schrieb Thomas Abraham
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Hi Alison,
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
On Mon, Sep 19, 2016 at 7:38 PM, Alexander Graf <[email protected]>
Quoted 6 lines · wrote:
Quoted 6 lines
Quoted 6 lines · Alison Wang
This patch is to use the the generic
lowlevel_initinstead ofthe
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
specific one.
Signed-off-by Alison Wang <[email protected]>If I had to guess, I'd think they only had their own version
because the
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
old one required a GIC.
I apologize for the delay.
The reason for using a custom version was to avoid enabling
ARMV8_MULTIENTRYconfig option since the Exynos7 code was readyfor
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
it.
Either way, since Samsung doesn't reply, I'm fine potentially
breaking
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
their boards if that means that we can make progress for
actively
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
maintained ones:
Reviewed-by Alexander Graf <[email protected]>This patch without the
ARMV8_MULTIENTRYandARMV8_SWITCH_TO_EL1config
Quoted 1 line
Quoted 1 line
Quoted 1 line
options does not switch the boot CPU from EL3 to EL1. So it
would
Quoted 6 lines
Quoted 6 lines
be
Quoted 1 line
Quoted 1 line
Quoted 1 line
preferable to not merge this patch until
ARMV8_MULTIENTRYisenabled
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
for Exynos7.
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Why do you want to switch it to EL1 in the first place? Linux is
very happy
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
to live in EL2 - which is what we call it in by default.
Okay, there is no particular requirement to be in EL1 for Exynos7.
EL2
Quoted 1 line
Quoted 1 line
would also be fine. But Exynos7 support in u-boot is not yet
ready
Quoted 8 lines
Quoted 8 lines
for
Quoted 1 line
Quoted 1 line
enabling
ARMV8_MULTIENTRYconfig option. Is there anything beblocked
Quoted 5 lines
Quoted 1 line
due to Exynos7 using a custom
lowlevel_initfunction?Yes, we're changing the semantics of
armv8_switch_to_el2andarmv8_switch_to_el1:Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
http://lists.denx.de/pipermail/u-boot/2016-September/266217.html
which is a prerequisite for AArch32 kernel boot on AArch64 systems.
Okay.
Quoted 2 lines
How quickly do you think you could make Exynos7 work with
MULTIENTRY?
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Exynos7420 uses CPU 0 of Cluster 1 as boot CPU (master CPU). The
macro
Quoted 4 lines
Quoted 4 lines
'
branch_if_master' requires all affinity values to be zero for a CPU to be identified as a master CPU. And so the boot CPU is incorrectly detected as a slave CPU. I have tested with the following temporary workaround to enableARMV8_MULTIENTRYon Exynos7420. If it looksfine,
Quoted 26 lines
Quoted 26 lines
this can be merged along with Alison's patch.
Thomas.
arch/arm/mach- renamed from arch/arm/mach-exynos/Kconfig +0
-0exynos/Kconfig
index ce2a16f..45c5eeb 100644arch/arm/mach-exynos/Kconfig +2
-0@@ -126,6 +126,8 @@ choice config TARGET_ESPRESSO7420 bool "ESPRESSO7420 board" select ARM64 + select ARMV8_MULTIENTRY + select ARMV8_SWITCH_TO_EL1 select SUPPORT_SPL select OF_CONTROL select SPL_DISABLE_OF_CONTROLarch/arm/mach-exynos/soc.c +0
-0@@ -9,6 +9,16 @@#include <asm/io.h> #include <asm/system.h> Quoted 5 lines
Quoted 5 lines
arch/arm/mach-exynos/soc.c +3
-0+#ifdef CONFIG_TARGET_ESPRESSO7420 +/* +* Exynos7420 uses CPU0 of Cluster-1 as boot CPU. Due to this
branch_if_master
+ * fails to identify as the master CPU. As temporary workaround,setup
Quoted 27 lines
Quoted 27 lines
the
+ * slave CPU boot address as "_main".
+ */arch/arm/mach-exynos/soc.c +4
-0+extern void _main (void ); +void *secondary_boot_addr = (void *)_main; +#endif /* CONFIG_TARGET_ESPRESSO7420 */ +void reset_cpu (ulong addr) {#ifdef CONFIG_CPU_V7 include/configs/exynos7420-common.h +1
-0@@ -48,6 +48,7 @@#define CONFIG_IRAM_BASE 0x02100000#define CONFIG_IRAM_SIZE 0x58000#define CONFIG_IRAM_END (CONFIG_IRAM_BASE + CONFIG_IRAM_SIZE) +#define CPU_RELEASE_ADDR secondary_boot_addr/* Number of CPUs available */ #define
CONFIG_CORE_COUNT0x8Quoted 2 lines
Alex
PATCH 1/1 arm: exynos: Use the generic lowlevel_init instead of the specific one
In reply to Thomas AbrahamHi, Thomas,
I didn't see your patch. Maybe it isn't CC'ing me. Could you send me and york the link?
Minkyu Kang,
Could you add review-by and assign this patch http://patchwork.ozlabs.org/patch/667948/ to York? So he can merge this patch and Thomas's patch together.
Thanks.
Best Regards,
Alison Wang
Quoted 205 lines
Quoted 6 lines
Quoted 3 lines · Alison Wang
Hi, Thomas, Alex and York,
Before there are some discussions about this patch, could we make a
solution now? Or else, the patches about [PATCH v8 0/3] armv8:
Support
Quoted 8 lines
loading 32-bit OS in AArch32 execution state can't be merged, as the compiling will fail without this patch.
Quoted 2 lines
Thomas, is
ARMV8_MULTIENTRYenabled on Exynos7420 now? If not, isthere a good way to enable
ARMV8_MULTIENTRYon Exynos7420 now?It is not yet enabled. I will post the
ARMV8_MULTIENTRYenable patch for Exynos7420 later today. Alternatively, you could include thepatch
Quoted 2 lines
listed in the previous email in your series.
[Alison Wang] Thanks for your reply. I think it's better to send the patch by you (the maintainer). Please send it later today. :)
Quoted 33 lines
Quoted 11 lines
Thanks.
Best Regards,
Alison WangQuoted 5 lines
-----Original Message-----
From: Thomas Abraham [mailto:ta.omasab at gmail.com]
Sent: Tuesday, September 20, 2016 4:45 PM
To: Alexander Graf <[email protected]>
Cc: Alison Wang <[email protected]>; thomas.ab at samsung.com;Minkyu
Quoted 6 lines
Quoted 6 lines
Kang <[email protected]>; york sun <[email protected]>; U-Boot Mailing List <[email protected]>; Jason Jin <[email protected]>
Subject: Re: [U-Boot] [PATCH] arm: exynos: Use the genericlowlevel_initinstead of the specific oneOn Tue, Sep 20, 2016 at 12:03 PM, Alexander Graf <[email protected]>
Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 4 lines · Thomas Abraham
Quoted 1 line
On Tue, Sep 20, 2016 at 11:35 AM, Alexander Graf <[email protected]>
Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines
Am 20.09.2016 um 07:51 schrieb Thomas Abraham
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Hi Alison,
On Mon, Sep 19, 2016 at 7:38 PM, Alexander Graf <[email protected]>
Quoted 25 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines · wrote:
Quoted 6 lines
Quoted 6 lines · Alison Wang
This patch is to use the the generic
lowlevel_initinstead ofthe
Quoted 17 lines
Quoted 17 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
specific one.
Signed-off-by Alison Wang <[email protected]>If I had to guess, I'd think they only had their own version
because the
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
old one required a GIC.
I apologize for the delay.
The reason for using a custom version was to avoid enabling
ARMV8_MULTIENTRYconfig option since the Exynos7 code wasready
Quoted 17 lines
for
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
it.
Either way, since Samsung doesn't reply, I'm fine potentially
breaking
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
their boards if that means that we can make progress for
actively
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
maintained ones:
Reviewed-by Alexander Graf <[email protected]>This patch without the
ARMV8_MULTIENTRYand
ARMV8_SWITCH_TO_EL1Quoted 15 lines
Quoted 2 lines
Quoted 2 lines
config
Quoted 1 line
Quoted 1 line
Quoted 1 line
options does not switch the boot CPU from EL3 to EL1. So it
would
Quoted 12 lines
Quoted 12 lines
be
Quoted 1 line
Quoted 1 line
Quoted 1 line
preferable to not merge this patch until
ARMV8_MULTIENTRYisenabled
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
for Exynos7.
Why do you want to switch it to EL1 in the first place? Linux is
very happy
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
to live in EL2 - which is what we call it in by default.
Okay, there is no particular requirement to be in EL1 for
Exynos7.
Quoted 15 lines
Quoted 2 lines
Quoted 2 lines
EL2
Quoted 1 line
Quoted 1 line
would also be fine. But Exynos7 support in u-boot is not yet
ready
Quoted 12 lines
Quoted 12 lines
for
Quoted 1 line
Quoted 1 line
enabling
ARMV8_MULTIENTRYconfig option. Is there anything beblocked
Quoted 9 lines
Quoted 1 line
due to Exynos7 using a custom
lowlevel_initfunction?Yes, we're changing the semantics of
armv8_switch_to_el2andarmv8_switch_to_el1:http://lists.denx.de/pipermail/u-boot/2016-September/266217.html
which is a prerequisite for AArch32 kernel boot on AArch64
systems.
Quoted 58 lines
Quoted 5 lines
Quoted 5 lines
Okay.
Quoted 2 lines
How quickly do you think you could make Exynos7 work with
MULTIENTRY?
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Exynos7420 uses CPU 0 of Cluster 1 as boot CPU (master CPU). The
macro
Quoted 5 lines
Quoted 5 lines
'
branch_if_master' requires all affinity values to be zero for a CPU to be identified as a master CPU. And so the boot CPU is incorrectly detected as a slave CPU. I have tested with the following temporary workaround to enableARMV8_MULTIENTRYon Exynos7420. If it looksfine,
Quoted 25 lines
Quoted 25 lines
this can be merged along with Alison's patch.
Thomas.
arch/arm/mach- renamed from arch/arm/mach-exynos/Kconfig +0
-0exynos/Kconfig index ce2a16f..45c5eeb 100644
arch/arm/mach-exynos/Kconfig +2
-0@@ -126,6 +126,8 @@ choice config TARGET_ESPRESSO7420 bool "ESPRESSO7420 board" select ARM64 + select ARMV8_MULTIENTRY + select ARMV8_SWITCH_TO_EL1 select SUPPORT_SPL select OF_CONTROL select SPL_DISABLE_OF_CONTROL diff --git
a/arch/arm/mach-exynos/soc.cb/arch/arm/mach-exynos/soc.cindex f9c7468..6c3ebb0 100644arch/arm/mach-exynos/soc.c +0
-0@@ -9,6 +9,16 @@#include <asm/io.h> #include <asm/system.h> Quoted 5 lines
Quoted 5 lines
arch/arm/mach-exynos/soc.c +3
-0+#ifdef CONFIG_TARGET_ESPRESSO7420 +/* +* Exynos7420 uses CPU0 of Cluster-1 as boot CPU. Due to this
branch_if_master
+ * fails to identify as the master CPU. As temporary workaround,setup
Quoted 11 lines
Quoted 11 lines
the
+ * slave CPU boot address as "_main".
+ */arch/arm/mach-exynos/soc.c +4
-0+extern void _main (void ); +void *secondary_boot_addr = (void *)_main;#endif /* +CONFIG_TARGET_ESPRESSO7420 */ +void reset_cpu (ulong addr) {#ifdef CONFIG_CPU_V7 (quoted diff) +0
-0Quoted 8 lines
Quoted 8 lines
include/configs/exynos7420-common.h line 50
Quoted 8 lines
b/include/configs/exynos7420-common.h
index 9e03962..6f58aef 100644include/configs/exynos7420-common.h +0
-0@@ -48,6 +48,7 @@#define CONFIG_IRAM_BASE 0x02100000#define CONFIG_IRAM_SIZE 0x58000#define CONFIG_IRAM_END (CONFIG_IRAM_BASE+
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
include/configs/exynos7420-common.h +1
-0CONFIG_IRAM_SIZE) +#define CPU_RELEASE_ADDR secondary_boot_addr/* Number of CPUs available */ #define
CONFIG_CORE_COUNT0x8Quoted 2 lines
Alex
PATCH 1/1 arm: exynos: Use the generic lowlevel_init instead of the specific one
Hi,
2016? 11? 16? (?) 19:44, Alison Wang <[email protected]>?? ??:
Quoted 12 lines
Hi, Thomas,
I didn't see your patch. Maybe it isn't CC'ing me. Could you send me and york the link?
Minkyu Kang,
Could you add review-by and assign this patch http://patchwork.ozlabs.org/
patch/667948/ to York? So he can merge this patch and Thomas's patch together.
It's OK.
York means yorksun?
Thanks,
Minkyu Kang.
Quoted 217 lines
Thanks.
Best Regards,
Alison WangQuoted 189 lines
Quoted 6 lines
Quoted 3 lines · Alison Wang
Hi, Thomas, Alex and York,
Before there are some discussions about this patch, could we make a
solution now? Or else, the patches about [PATCH v8 0/3] armv8:
Support
Quoted 8 lines
loading 32-bit OS in AArch32 execution state can't be merged, as the compiling will fail without this patch.
Quoted 2 lines
Thomas, is
ARMV8_MULTIENTRYenabled on Exynos7420 now? If not, isthere a good way to enable
ARMV8_MULTIENTRYon Exynos7420 now?It is not yet enabled. I will post the
ARMV8_MULTIENTRYenable patch for Exynos7420 later today. Alternatively, you could include thepatch
Quoted 2 lines
listed in the previous email in your series.
[Alison Wang] Thanks for your reply. I think it's better to send the patch by you (the maintainer). Please send it later today. :)
Quoted 33 lines
Quoted 11 lines
Thanks.
Best Regards,
Alison WangQuoted 5 lines
-----Original Message-----
From: Thomas Abraham [mailto:ta.omasab at gmail.com]
Sent: Tuesday, September 20, 2016 4:45 PM
To: Alexander Graf <[email protected]>
Cc: Alison Wang <[email protected]>; thomas.ab at samsung.com;Minkyu
Quoted 6 lines
Quoted 6 lines
Kang <[email protected]>; york sun <[email protected]>; U-Boot Mailing List <[email protected]>; Jason Jin <[email protected]>
Subject: Re: [U-Boot] [PATCH] arm: exynos: Use the genericlowlevel_initinstead of the specific oneOn Tue, Sep 20, 2016 at 12:03 PM, Alexander Graf <[email protected]>
Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 4 lines · Thomas Abraham
Quoted 1 line
On Tue, Sep 20, 2016 at 11:35 AM, Alexander Graf <[email protected]>
Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines
Am 20.09.2016 um 07:51 schrieb Thomas Abraham
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Hi Alison,
On Mon, Sep 19, 2016 at 7:38 PM, Alexander Graf <[email protected]>
Quoted 25 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines · wrote:
Quoted 6 lines
Quoted 6 lines · Alison Wang
This patch is to use the the generic
lowlevel_initinstead ofthe
Quoted 17 lines
Quoted 17 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
specific one.
Signed-off-by Alison Wang <[email protected]>If I had to guess, I'd think they only had their own version
because the
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
old one required a GIC.
I apologize for the delay.
The reason for using a custom version was to avoid enabling
ARMV8_MULTIENTRYconfig option since the Exynos7 code wasready
Quoted 17 lines
for
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
it.
Either way, since Samsung doesn't reply, I'm fine potentially
breaking
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
their boards if that means that we can make progress for
actively
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
maintained ones:
Reviewed-by Alexander Graf <[email protected]>This patch without the
ARMV8_MULTIENTRYand
ARMV8_SWITCH_TO_EL1Quoted 15 lines
Quoted 2 lines
Quoted 2 lines
config
Quoted 1 line
Quoted 1 line
Quoted 1 line
options does not switch the boot CPU from EL3 to EL1. So it
would
Quoted 12 lines
Quoted 12 lines
be
Quoted 1 line
Quoted 1 line
Quoted 1 line
preferable to not merge this patch until
ARMV8_MULTIENTRYisenabled
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
for Exynos7.
Why do you want to switch it to EL1 in the first place? Linux is
very happy
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
to live in EL2 - which is what we call it in by default.
Okay, there is no particular requirement to be in EL1 for
Exynos7.
Quoted 15 lines
Quoted 2 lines
Quoted 2 lines
EL2
Quoted 1 line
Quoted 1 line
would also be fine. But Exynos7 support in u-boot is not yet
ready
Quoted 12 lines
Quoted 12 lines
for
Quoted 1 line
Quoted 1 line
enabling
ARMV8_MULTIENTRYconfig option. Is there anything beblocked
Quoted 9 lines
Quoted 1 line
due to Exynos7 using a custom
lowlevel_initfunction?Yes, we're changing the semantics of
armv8_switch_to_el2andarmv8_switch_to_el1:http://lists.denx.de/pipermail/u-boot/2016-September/266217.html
which is a prerequisite for AArch32 kernel boot on AArch64
systems.
Quoted 59 lines
Quoted 5 lines
Quoted 5 lines
Okay.
Quoted 2 lines
How quickly do you think you could make Exynos7 work with
MULTIENTRY?
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Exynos7420 uses CPU 0 of Cluster 1 as boot CPU (master CPU). The
macro
Quoted 5 lines
Quoted 5 lines
'
branch_if_master' requires all affinity values to be zero for a CPU to be identified as a master CPU. And so the boot CPU is incorrectly detected as a slave CPU. I have tested with the following temporary workaround to enableARMV8_MULTIENTRYon Exynos7420. If it looksfine,
Quoted 25 lines
Quoted 25 lines
this can be merged along with Alison's patch.
Thomas.
arch/arm/mach- renamed from arch/arm/mach-exynos/Kconfig +0
-0exynos/Kconfig index ce2a16f..45c5eeb 100644
arch/arm/mach-exynos/Kconfig +2
-0@@ -126,6 +126,8 @@ choice config TARGET_ESPRESSO7420 bool "ESPRESSO7420 board" select ARM64 + select ARMV8_MULTIENTRY + select ARMV8_SWITCH_TO_EL1 select SUPPORT_SPL select OF_CONTROL select SPL_DISABLE_OF_CONTROL diff --git
a/arch/arm/mach-exynos/soc.cb/arch/arm/mach-exynos/soc.cindex f9c7468..6c3ebb0 100644arch/arm/mach-exynos/soc.c +0
-0@@ -9,6 +9,16 @@#include <asm/io.h> #include <asm/system.h> Quoted 5 lines
Quoted 5 lines
arch/arm/mach-exynos/soc.c +3
-0+#ifdef CONFIG_TARGET_ESPRESSO7420 +/* +* Exynos7420 uses CPU0 of Cluster-1 as boot CPU. Due to this
branch_if_master
+ * fails to identify as the master CPU. As temporary workaround,setup
Quoted 12 lines
Quoted 12 lines
the
+ * slave CPU boot address as "_main".
+ */arch/arm/mach-exynos/soc.c +4
-0+extern void _main (void ); +void *secondary_boot_addr = (void *)_main;#endif /* +CONFIG_TARGET_ESPRESSO7420 */ +void reset_cpu (ulong addr) {#ifdef CONFIG_CPU_V7 include/configs/exynos7420-common.h +0
-0Quoted 16 lines
Quoted 7 lines
Quoted 7 lines
include/configs/exynos7420-common.h line 50
Quoted 7 lines
index 9e03962..6f58aef 100644
include/configs/exynos7420-common.h +0
-0@@ -48,6 +48,7 @@#define CONFIG_IRAM_BASE 0x02100000#define CONFIG_IRAM_SIZE 0x58000#define CONFIG_IRAM_END (CONFIG_IRAM_BASE+
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
include/configs/exynos7420-common.h +1
-0CONFIG_IRAM_SIZE) +#define CPU_RELEASE_ADDR secondary_boot_addr/* Number of CPUs available */ #define
CONFIG_CORE_COUNT0x8Quoted 2 lines
Alex
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot