diff mbox series

[RFC,5/6] powerpc/microwatt: select POWER9_CPU

Message ID 20210827163410.1177154-6-npiggin@gmail.com (mailing list archive)
State Superseded
Headers show
Series powerpc: Make hash MMU code build configurable | expand

Commit Message

Nicholas Piggin Aug. 27, 2021, 4:34 p.m. UTC
Microwatt implements a subset of ISA v3.0 which is equivalent to
the POWER9_CPU selection.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 arch/powerpc/configs/microwatt_defconfig | 1 +
 arch/powerpc/platforms/microwatt/Kconfig | 1 +
 2 files changed, 2 insertions(+)

Comments

Christophe Leroy Aug. 28, 2021, 9:50 a.m. UTC | #1
Le 27/08/2021 à 18:34, Nicholas Piggin a écrit :
> Microwatt implements a subset of ISA v3.0 which is equivalent to
> the POWER9_CPU selection.
> 
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
> ---
>   arch/powerpc/configs/microwatt_defconfig | 1 +
>   arch/powerpc/platforms/microwatt/Kconfig | 1 +
>   2 files changed, 2 insertions(+)
> 
> diff --git a/arch/powerpc/configs/microwatt_defconfig b/arch/powerpc/configs/microwatt_defconfig
> index a08b739123da..bf5f2e5905eb 100644
> --- a/arch/powerpc/configs/microwatt_defconfig
> +++ b/arch/powerpc/configs/microwatt_defconfig
> @@ -14,6 +14,7 @@ CONFIG_EMBEDDED=y
>   # CONFIG_COMPAT_BRK is not set
>   # CONFIG_SLAB_MERGE_DEFAULT is not set
>   CONFIG_PPC64=y
> +CONFIG_POWER9_CPU=y

That shouldn't be needed in the defconfig because you select it below. You can use make 
savedefconfig to confirm.

>   # CONFIG_PPC_KUEP is not set
>   # CONFIG_PPC_KUAP is not set
>   CONFIG_CPU_LITTLE_ENDIAN=y
> diff --git a/arch/powerpc/platforms/microwatt/Kconfig b/arch/powerpc/platforms/microwatt/Kconfig
> index 823192e9d38a..e0ff2cfc1ca0 100644
> --- a/arch/powerpc/platforms/microwatt/Kconfig
> +++ b/arch/powerpc/platforms/microwatt/Kconfig
> @@ -2,6 +2,7 @@
>   config PPC_MICROWATT
>   	depends on PPC_BOOK3S_64 && !SMP
>   	bool "Microwatt SoC platform"
> +	select POWER9_CPU
>   	select PPC_XICS
>   	select PPC_ICS_NATIVE
>   	select PPC_ICP_NATIVE
>
Nicholas Piggin Aug. 30, 2021, 6:56 a.m. UTC | #2
Excerpts from Christophe Leroy's message of August 28, 2021 7:50 pm:
> 
> 
> Le 27/08/2021 à 18:34, Nicholas Piggin a écrit :
>> Microwatt implements a subset of ISA v3.0 which is equivalent to
>> the POWER9_CPU selection.
>> 
>> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
>> ---
>>   arch/powerpc/configs/microwatt_defconfig | 1 +
>>   arch/powerpc/platforms/microwatt/Kconfig | 1 +
>>   2 files changed, 2 insertions(+)
>> 
>> diff --git a/arch/powerpc/configs/microwatt_defconfig b/arch/powerpc/configs/microwatt_defconfig
>> index a08b739123da..bf5f2e5905eb 100644
>> --- a/arch/powerpc/configs/microwatt_defconfig
>> +++ b/arch/powerpc/configs/microwatt_defconfig
>> @@ -14,6 +14,7 @@ CONFIG_EMBEDDED=y
>>   # CONFIG_COMPAT_BRK is not set
>>   # CONFIG_SLAB_MERGE_DEFAULT is not set
>>   CONFIG_PPC64=y
>> +CONFIG_POWER9_CPU=y
> 
> That shouldn't be needed in the defconfig because you select it below. You can use make 
> savedefconfig to confirm.

Good point.

Thanks,
Nick
diff mbox series

Patch

diff --git a/arch/powerpc/configs/microwatt_defconfig b/arch/powerpc/configs/microwatt_defconfig
index a08b739123da..bf5f2e5905eb 100644
--- a/arch/powerpc/configs/microwatt_defconfig
+++ b/arch/powerpc/configs/microwatt_defconfig
@@ -14,6 +14,7 @@  CONFIG_EMBEDDED=y
 # CONFIG_COMPAT_BRK is not set
 # CONFIG_SLAB_MERGE_DEFAULT is not set
 CONFIG_PPC64=y
+CONFIG_POWER9_CPU=y
 # CONFIG_PPC_KUEP is not set
 # CONFIG_PPC_KUAP is not set
 CONFIG_CPU_LITTLE_ENDIAN=y
diff --git a/arch/powerpc/platforms/microwatt/Kconfig b/arch/powerpc/platforms/microwatt/Kconfig
index 823192e9d38a..e0ff2cfc1ca0 100644
--- a/arch/powerpc/platforms/microwatt/Kconfig
+++ b/arch/powerpc/platforms/microwatt/Kconfig
@@ -2,6 +2,7 @@ 
 config PPC_MICROWATT
 	depends on PPC_BOOK3S_64 && !SMP
 	bool "Microwatt SoC platform"
+	select POWER9_CPU
 	select PPC_XICS
 	select PPC_ICS_NATIVE
 	select PPC_ICP_NATIVE