* [PATCH 0/2] ARM: shmobile: Restrict SCU/TWD support to SoCs that have it
@ 2018-11-15 9:56 ` Geert Uytterhoeven
0 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2018-11-15 9:56 UTC (permalink / raw)
To: Simon Horman, Magnus Damm
Cc: linux-renesas-soc, linux-arm-kernel, Geert Uytterhoeven
Hi Simon, Magnus,
When Renesas ARM multi-platform support was conceived in commit
efacfce5f8a52345 ("ARM: shmobile: Introduce ARCH_SHMOBILE_MULTI"),
support for the ARM Cortex-A9 Snoop Control Unit and the Timer and
Watchdog Unit was enabled unconditionally.
However, only some Renesas multicore Cortex-A9 SoCs have these units,
and in the modern world, the share of Cortex-A9 SoCs is decreasing.
Hence only enable support for the SCU and TWD when building a kernel
that includes support for SoCs that have these units.
Thanks!
Geert Uytterhoeven (2):
ARM: shmobile: Restrict SCU support to SoCs that have it
ARM: shmobile: Restrict TWD support to SoCs that have it
arch/arm/mach-shmobile/Kconfig | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
--
2.17.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 0/2] ARM: shmobile: Restrict SCU/TWD support to SoCs that have it
@ 2018-11-15 9:56 ` Geert Uytterhoeven
0 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2018-11-15 9:56 UTC (permalink / raw)
To: linux-arm-kernel
Hi Simon, Magnus,
When Renesas ARM multi-platform support was conceived in commit
efacfce5f8a52345 ("ARM: shmobile: Introduce ARCH_SHMOBILE_MULTI"),
support for the ARM Cortex-A9 Snoop Control Unit and the Timer and
Watchdog Unit was enabled unconditionally.
However, only some Renesas multicore Cortex-A9 SoCs have these units,
and in the modern world, the share of Cortex-A9 SoCs is decreasing.
Hence only enable support for the SCU and TWD when building a kernel
that includes support for SoCs that have these units.
Thanks!
Geert Uytterhoeven (2):
ARM: shmobile: Restrict SCU support to SoCs that have it
ARM: shmobile: Restrict TWD support to SoCs that have it
arch/arm/mach-shmobile/Kconfig | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
--
2.17.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] ARM: shmobile: Restrict SCU support to SoCs that have it
2018-11-15 9:56 ` Geert Uytterhoeven
@ 2018-11-15 9:56 ` Geert Uytterhoeven
-1 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2018-11-15 9:56 UTC (permalink / raw)
To: Simon Horman, Magnus Damm
Cc: linux-renesas-soc, linux-arm-kernel, Geert Uytterhoeven
Currently support for the ARM Cortex-A9 Snoop Control Unit is included
unconditionally, while only Renesas multicore Cortex-A9 SoCs have this
kind of SCU.
This decreases kernel image size by ca. 300 bytes on SoCs without such
an SCU.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm/mach-shmobile/Kconfig | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index b100c26a858f9015..32f8297d993ac10e 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -30,7 +30,6 @@ menuconfig ARCH_RENESAS
depends on ARCH_MULTI_V7 && MMU
select ARM_GIC
select GPIOLIB
- select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if SMP
select NO_IOPORT_MAP
select PINCTRL
@@ -43,6 +42,7 @@ if ARCH_RENESAS
config ARCH_EMEV2
bool "Emma Mobile EV2"
+ select HAVE_ARM_SCU if SMP
select SYS_SUPPORTS_EM_STI
config ARCH_R7S72100
@@ -94,6 +94,7 @@ config ARCH_R8A7778
config ARCH_R8A7779
bool "R-Car H1 (R8A77790)"
+ select HAVE_ARM_SCU if SMP
select ARCH_RCAR_GEN1
config ARCH_R8A7790
@@ -135,5 +136,6 @@ config ARCH_RZN1
config ARCH_SH73A0
bool "SH-Mobile AG5 (R8A73A00)"
select ARCH_RMOBILE
+ select HAVE_ARM_SCU if SMP
select RENESAS_INTC_IRQPIN
endif
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 1/2] ARM: shmobile: Restrict SCU support to SoCs that have it
@ 2018-11-15 9:56 ` Geert Uytterhoeven
0 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2018-11-15 9:56 UTC (permalink / raw)
To: linux-arm-kernel
Currently support for the ARM Cortex-A9 Snoop Control Unit is included
unconditionally, while only Renesas multicore Cortex-A9 SoCs have this
kind of SCU.
This decreases kernel image size by ca. 300 bytes on SoCs without such
an SCU.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm/mach-shmobile/Kconfig | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index b100c26a858f9015..32f8297d993ac10e 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -30,7 +30,6 @@ menuconfig ARCH_RENESAS
depends on ARCH_MULTI_V7 && MMU
select ARM_GIC
select GPIOLIB
- select HAVE_ARM_SCU if SMP
select HAVE_ARM_TWD if SMP
select NO_IOPORT_MAP
select PINCTRL
@@ -43,6 +42,7 @@ if ARCH_RENESAS
config ARCH_EMEV2
bool "Emma Mobile EV2"
+ select HAVE_ARM_SCU if SMP
select SYS_SUPPORTS_EM_STI
config ARCH_R7S72100
@@ -94,6 +94,7 @@ config ARCH_R8A7778
config ARCH_R8A7779
bool "R-Car H1 (R8A77790)"
+ select HAVE_ARM_SCU if SMP
select ARCH_RCAR_GEN1
config ARCH_R8A7790
@@ -135,5 +136,6 @@ config ARCH_RZN1
config ARCH_SH73A0
bool "SH-Mobile AG5 (R8A73A00)"
select ARCH_RMOBILE
+ select HAVE_ARM_SCU if SMP
select RENESAS_INTC_IRQPIN
endif
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/2] ARM: shmobile: Restrict TWD support to SoCs that have it
2018-11-15 9:56 ` Geert Uytterhoeven
@ 2018-11-15 9:56 ` Geert Uytterhoeven
-1 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2018-11-15 9:56 UTC (permalink / raw)
To: Simon Horman, Magnus Damm
Cc: linux-renesas-soc, linux-arm-kernel, Geert Uytterhoeven
Currently support for the ARM Timer and Watchdog Unit is included
unconditionally, while only some Renesas multicore Cortex-A9 SoCs have
a TWD.
This decreases kernel image size by ca. 2 KiB on SoCs without a TWD.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm/mach-shmobile/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index 32f8297d993ac10e..a35eb5913dfdf4ba 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -30,7 +30,6 @@ menuconfig ARCH_RENESAS
depends on ARCH_MULTI_V7 && MMU
select ARM_GIC
select GPIOLIB
- select HAVE_ARM_TWD if SMP
select NO_IOPORT_MAP
select PINCTRL
select SOC_BUS
@@ -95,6 +94,7 @@ config ARCH_R8A7778
config ARCH_R8A7779
bool "R-Car H1 (R8A77790)"
select HAVE_ARM_SCU if SMP
+ select HAVE_ARM_TWD if SMP
select ARCH_RCAR_GEN1
config ARCH_R8A7790
@@ -137,5 +137,6 @@ config ARCH_SH73A0
bool "SH-Mobile AG5 (R8A73A00)"
select ARCH_RMOBILE
select HAVE_ARM_SCU if SMP
+ select HAVE_ARM_TWD if SMP
select RENESAS_INTC_IRQPIN
endif
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/2] ARM: shmobile: Restrict TWD support to SoCs that have it
@ 2018-11-15 9:56 ` Geert Uytterhoeven
0 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2018-11-15 9:56 UTC (permalink / raw)
To: linux-arm-kernel
Currently support for the ARM Timer and Watchdog Unit is included
unconditionally, while only some Renesas multicore Cortex-A9 SoCs have
a TWD.
This decreases kernel image size by ca. 2 KiB on SoCs without a TWD.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm/mach-shmobile/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-shmobile/Kconfig b/arch/arm/mach-shmobile/Kconfig
index 32f8297d993ac10e..a35eb5913dfdf4ba 100644
--- a/arch/arm/mach-shmobile/Kconfig
+++ b/arch/arm/mach-shmobile/Kconfig
@@ -30,7 +30,6 @@ menuconfig ARCH_RENESAS
depends on ARCH_MULTI_V7 && MMU
select ARM_GIC
select GPIOLIB
- select HAVE_ARM_TWD if SMP
select NO_IOPORT_MAP
select PINCTRL
select SOC_BUS
@@ -95,6 +94,7 @@ config ARCH_R8A7778
config ARCH_R8A7779
bool "R-Car H1 (R8A77790)"
select HAVE_ARM_SCU if SMP
+ select HAVE_ARM_TWD if SMP
select ARCH_RCAR_GEN1
config ARCH_R8A7790
@@ -137,5 +137,6 @@ config ARCH_SH73A0
bool "SH-Mobile AG5 (R8A73A00)"
select ARCH_RMOBILE
select HAVE_ARM_SCU if SMP
+ select HAVE_ARM_TWD if SMP
select RENESAS_INTC_IRQPIN
endif
--
2.17.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 1/2] ARM: shmobile: Restrict SCU support to SoCs that have it
2018-11-15 9:56 ` Geert Uytterhoeven
@ 2018-11-15 14:24 ` Simon Horman
-1 siblings, 0 replies; 10+ messages in thread
From: Simon Horman @ 2018-11-15 14:24 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Magnus Damm, linux-renesas-soc, linux-arm-kernel
On Thu, Nov 15, 2018 at 10:56:38AM +0100, Geert Uytterhoeven wrote:
> Currently support for the ARM Cortex-A9 Snoop Control Unit is included
> unconditionally, while only Renesas multicore Cortex-A9 SoCs have this
> kind of SCU.
>
> This decreases kernel image size by ca. 300 bytes on SoCs without such
> an SCU.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Thanks Geert, applied for v4.21.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] ARM: shmobile: Restrict SCU support to SoCs that have it
@ 2018-11-15 14:24 ` Simon Horman
0 siblings, 0 replies; 10+ messages in thread
From: Simon Horman @ 2018-11-15 14:24 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 15, 2018 at 10:56:38AM +0100, Geert Uytterhoeven wrote:
> Currently support for the ARM Cortex-A9 Snoop Control Unit is included
> unconditionally, while only Renesas multicore Cortex-A9 SoCs have this
> kind of SCU.
>
> This decreases kernel image size by ca. 300 bytes on SoCs without such
> an SCU.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Thanks Geert, applied for v4.21.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 2/2] ARM: shmobile: Restrict TWD support to SoCs that have it
2018-11-15 9:56 ` Geert Uytterhoeven
@ 2018-11-15 14:24 ` Simon Horman
-1 siblings, 0 replies; 10+ messages in thread
From: Simon Horman @ 2018-11-15 14:24 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Magnus Damm, linux-renesas-soc, linux-arm-kernel
On Thu, Nov 15, 2018 at 10:56:39AM +0100, Geert Uytterhoeven wrote:
> Currently support for the ARM Timer and Watchdog Unit is included
> unconditionally, while only some Renesas multicore Cortex-A9 SoCs have
> a TWD.
>
> This decreases kernel image size by ca. 2 KiB on SoCs without a TWD.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Thanks Geert,
applied for v4.21.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] ARM: shmobile: Restrict TWD support to SoCs that have it
@ 2018-11-15 14:24 ` Simon Horman
0 siblings, 0 replies; 10+ messages in thread
From: Simon Horman @ 2018-11-15 14:24 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 15, 2018 at 10:56:39AM +0100, Geert Uytterhoeven wrote:
> Currently support for the ARM Timer and Watchdog Unit is included
> unconditionally, while only some Renesas multicore Cortex-A9 SoCs have
> a TWD.
>
> This decreases kernel image size by ca. 2 KiB on SoCs without a TWD.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Thanks Geert,
applied for v4.21.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2018-11-16 0:32 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-15 9:56 [PATCH 0/2] ARM: shmobile: Restrict SCU/TWD support to SoCs that have it Geert Uytterhoeven
2018-11-15 9:56 ` Geert Uytterhoeven
2018-11-15 9:56 ` [PATCH 1/2] ARM: shmobile: Restrict SCU " Geert Uytterhoeven
2018-11-15 9:56 ` Geert Uytterhoeven
2018-11-15 14:24 ` Simon Horman
2018-11-15 14:24 ` Simon Horman
2018-11-15 9:56 ` [PATCH 2/2] ARM: shmobile: Restrict TWD " Geert Uytterhoeven
2018-11-15 9:56 ` Geert Uytterhoeven
2018-11-15 14:24 ` Simon Horman
2018-11-15 14:24 ` Simon Horman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.