diff mbox series

[v4,01/10] ARM: armv7: add non-SPL enable for Cortex SMPEN

Message ID 20230308202653.1926303-2-ralph.siemsen@linaro.org
State Superseded
Headers show
Series Renesas RZ/N1 SoC initial support | expand

Commit Message

Ralph Siemsen March 8, 2023, 8:26 p.m. UTC
Commit 2564fce7eea3 ("sunxi: move Cortex SMPEN setting into start.S")
added SPL_ARMV7_SET_CORTEX_SMPEN to enable setting SMP bit. For
platforms not using SPL boot, add the corresponding non-SPL config,
so that CONFIG_IS_ENABLED(ARMV7_SET_CORTEX_SMPEN) works as expected.

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
---
This will be used by the following commit that adds ARCH_RZN1.

(no changes since v1)

 arch/arm/cpu/armv7/Kconfig | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Marek Vasut April 17, 2023, 5:04 p.m. UTC | #1
On 3/8/23 21:26, Ralph Siemsen wrote:
> Commit 2564fce7eea3 ("sunxi: move Cortex SMPEN setting into start.S")
> added SPL_ARMV7_SET_CORTEX_SMPEN to enable setting SMP bit. For
> platforms not using SPL boot, add the corresponding non-SPL config,
> so that CONFIG_IS_ENABLED(ARMV7_SET_CORTEX_SMPEN) works as expected.
> 
> Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>

Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>

You could send this patch as a separate one.
Ralph Siemsen April 17, 2023, 6:26 p.m. UTC | #2
On Mon, Apr 17, 2023 at 07:04:15PM +0200, Marek Vasut wrote:
>On 3/8/23 21:26, Ralph Siemsen wrote:
>>Commit 2564fce7eea3 ("sunxi: move Cortex SMPEN setting into start.S")
>>added SPL_ARMV7_SET_CORTEX_SMPEN to enable setting SMP bit. For
>>platforms not using SPL boot, add the corresponding non-SPL config,
>>so that CONFIG_IS_ENABLED(ARMV7_SET_CORTEX_SMPEN) works as expected.
>>
>>Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
>
>Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
>
>You could send this patch as a separate one.

In fact I did that almost a year ago:
https://lore.kernel.org/u-boot/20220421175202.2614945-1-ralph.siemsen@linaro.org/T/#u

Ralph
Marek Vasut April 17, 2023, 8:21 p.m. UTC | #3
On 4/17/23 20:26, Ralph Siemsen wrote:
> On Mon, Apr 17, 2023 at 07:04:15PM +0200, Marek Vasut wrote:
>> On 3/8/23 21:26, Ralph Siemsen wrote:
>>> Commit 2564fce7eea3 ("sunxi: move Cortex SMPEN setting into start.S")
>>> added SPL_ARMV7_SET_CORTEX_SMPEN to enable setting SMP bit. For
>>> platforms not using SPL boot, add the corresponding non-SPL config,
>>> so that CONFIG_IS_ENABLED(ARMV7_SET_CORTEX_SMPEN) works as expected.
>>>
>>> Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
>>
>> Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
>>
>> You could send this patch as a separate one.
> 
> In fact I did that almost a year ago:
> https://lore.kernel.org/u-boot/20220421175202.2614945-1-ralph.siemsen@linaro.org/T/#u

Hmmm, Tom (+Cc) pointed out the patch does not do anything, but that is 
not correct, is it ? If I look at 2564fce7eea3 ("sunxi: move Cortex 
SMPEN setting into start.S") , this extra Kconfig symbol just makes that 
functionality available outside of SPL (i.e. in normal U-Boot), while 
before this change the functionality was only available in SPL. Right ?

(so yeah, I think this patch should go in, and could go in separately)

But please correct me if I'm wrong.
Ralph Siemsen April 18, 2023, 2:32 p.m. UTC | #4
On Mon, Apr 17, 2023 at 4:21 PM Marek Vasut <marek.vasut@mailbox.org> wrote:
>
> On 4/17/23 20:26, Ralph Siemsen wrote:
> > On Mon, Apr 17, 2023 at 07:04:15PM +0200, Marek Vasut wrote:
> >> You could send this patch as a separate one.
> >
> > In fact I did that almost a year ago:
> > https://lore.kernel.org/u-boot/20220421175202.2614945-1-ralph.siemsen@linaro.org/T/#u
>
> Hmmm, Tom (+Cc) pointed out the patch does not do anything, but that is
> not correct, is it ? If I look at 2564fce7eea3 ("sunxi: move Cortex
> SMPEN setting into start.S") , this extra Kconfig symbol just makes that
> functionality available outside of SPL (i.e. in normal U-Boot), while
> before this change the functionality was only available in SPL. Right ?

Correct, my patch makes the symbol available outside of SPL.

I think Tom's objection was to adding the symbol without any users.
This is rectified by patch 07 ("ARM: rzn1: basic support"),

Ralph
Marek Vasut April 18, 2023, 7:35 p.m. UTC | #5
On 4/18/23 16:32, Ralph Siemsen wrote:
> On Mon, Apr 17, 2023 at 4:21 PM Marek Vasut <marek.vasut@mailbox.org> wrote:
>>
>> On 4/17/23 20:26, Ralph Siemsen wrote:
>>> On Mon, Apr 17, 2023 at 07:04:15PM +0200, Marek Vasut wrote:
>>>> You could send this patch as a separate one.
>>>
>>> In fact I did that almost a year ago:
>>> https://lore.kernel.org/u-boot/20220421175202.2614945-1-ralph.siemsen@linaro.org/T/#u
>>
>> Hmmm, Tom (+Cc) pointed out the patch does not do anything, but that is
>> not correct, is it ? If I look at 2564fce7eea3 ("sunxi: move Cortex
>> SMPEN setting into start.S") , this extra Kconfig symbol just makes that
>> functionality available outside of SPL (i.e. in normal U-Boot), while
>> before this change the functionality was only available in SPL. Right ?
> 
> Correct, my patch makes the symbol available outside of SPL.
> 
> I think Tom's objection was to adding the symbol without any users.
> This is rectified by patch 07 ("ARM: rzn1: basic support"),

ACK
diff mbox series

Patch

diff --git a/arch/arm/cpu/armv7/Kconfig b/arch/arm/cpu/armv7/Kconfig
index f1e4e26b8f..e33e53636a 100644
--- a/arch/arm/cpu/armv7/Kconfig
+++ b/arch/arm/cpu/armv7/Kconfig
@@ -107,6 +107,11 @@  config ARMV7_LPAE
 	Say Y here to use the long descriptor page table format. This is
 	required if U-Boot runs in HYP mode.
 
+config ARMV7_SET_CORTEX_SMPEN
+	bool
+	help
+	  Enable the ARM Cortex ACTLR.SMP enable bit in U-boot.
+
 config SPL_ARMV7_SET_CORTEX_SMPEN
 	bool
 	help