* [PATCH 1/3] arm64: dts: r8a7795: Add PSCI node @ 2015-12-04 13:38 Dirk Behme 2015-12-04 13:38 ` [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores Dirk Behme ` (2 more replies) 0 siblings, 3 replies; 18+ messages in thread From: Dirk Behme @ 2015-12-04 13:38 UTC (permalink / raw) To: linux-sh, horms, geert+renesas Cc: devicetree, linux-arm-kernel, Gaku Inami, Takeshi Kihara From: Gaku Inami <gaku.inami.xw@bp.renesas.com> Add PSCI node for r8a7795 SoC, and cpu node enable-method property is set to "psci". Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> --- Note: This patch picked from https://git.kernel.org/cgit/linux/kernel/git/horms/renesas-bsp.git/log/?h=v4.2/rcar-3.0.x and rebased against https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/gen3-latest renesas-drivers-2015-12-01-v4.4-rc3 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index 816400c..5611597 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -26,6 +26,11 @@ i2c6 = &i2c6; }; + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -35,6 +40,7 @@ compatible = "arm,cortex-a57", "arm,armv8"; reg = <0x0>; device_type = "cpu"; + enable-method = "psci"; }; }; -- 2.6.3 ^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores 2015-12-04 13:38 [PATCH 1/3] arm64: dts: r8a7795: Add PSCI node Dirk Behme @ 2015-12-04 13:38 ` Dirk Behme 2015-12-11 23:07 ` Simon Horman 2015-12-04 13:38 ` [PATCH 3/3] arm64: dts: r8a7795: Add pmu device nodes Dirk Behme 2015-12-11 23:07 ` [PATCH 1/3] arm64: dts: r8a7795: Add PSCI node Simon Horman 2 siblings, 1 reply; 18+ messages in thread From: Dirk Behme @ 2015-12-04 13:38 UTC (permalink / raw) To: linux-sh, horms, geert+renesas Cc: devicetree, linux-arm-kernel, Gaku Inami, Takeshi Kihara From: Gaku Inami <gaku.inami.xw@bp.renesas.com> Add Cortex-A57 CPU cores to r8a7795 SoC for a total of 4 x Cortex-A57. Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> --- Note: This patch picked from https://git.kernel.org/cgit/linux/kernel/git/horms/renesas-bsp.git/log/?h=v4.2/rcar-3.0.x and rebased against https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/gen3-latest renesas-drivers-2015-12-01-v4.4-rc3 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index 5611597..946a5bb 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -35,13 +35,31 @@ #address-cells = <1>; #size-cells = <0>; - /* 1 core only at this point */ a57_0: cpu@0 { compatible = "arm,cortex-a57", "arm,armv8"; reg = <0x0>; device_type = "cpu"; enable-method = "psci"; }; + + a57_1: cpu@1 { + compatible = "arm,cortex-a57","arm,armv8"; + reg = <0x1>; + device_type = "cpu"; + enable-method = "psci"; + }; + a57_2: cpu@2 { + compatible = "arm,cortex-a57","arm,armv8"; + reg = <0x2>; + device_type = "cpu"; + enable-method = "psci"; + }; + a57_3: cpu@3 { + compatible = "arm,cortex-a57","arm,armv8"; + reg = <0x3>; + device_type = "cpu"; + enable-method = "psci"; + }; }; extal_clk: extal { @@ -101,6 +119,7 @@ soc { compatible = "simple-bus"; interrupt-parent = <&gic>; + #address-cells = <2>; #size-cells = <2>; ranges; @@ -113,7 +132,7 @@ reg = <0x0 0xf1010000 0 0x1000>, <0x0 0xf1020000 0 0x2000>; interrupts = <GIC_PPI 9 - (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>; + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; }; gpio0: gpio@e6050000 { @@ -231,13 +250,13 @@ timer { compatible = "arm,armv8-timer"; interrupts = <GIC_PPI 13 - (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>, + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 14 - (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>, + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 11 - (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>, + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 10 - (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>; + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; cpg: clock-controller@e6150000 { -- 2.6.3 ^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores 2015-12-04 13:38 ` [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores Dirk Behme @ 2015-12-11 23:07 ` Simon Horman 2015-12-15 5:12 ` Simon Horman 2015-12-15 8:38 ` Magnus Damm 0 siblings, 2 replies; 18+ messages in thread From: Simon Horman @ 2015-12-11 23:07 UTC (permalink / raw) To: Dirk Behme Cc: linux-sh, geert+renesas, devicetree, linux-arm-kernel, Gaku Inami, Takeshi Kihara On Fri, Dec 04, 2015 at 02:38:52PM +0100, Dirk Behme wrote: > From: Gaku Inami <gaku.inami.xw@bp.renesas.com> > > Add Cortex-A57 CPU cores to r8a7795 SoC for a total of 4 x Cortex-A57. > > Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> > Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> > Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> Thanks, I have queued this up for v4.5. ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores 2015-12-11 23:07 ` Simon Horman @ 2015-12-15 5:12 ` Simon Horman 2015-12-15 6:31 ` Dirk Behme 2015-12-15 8:23 ` Geert Uytterhoeven 2015-12-15 8:38 ` Magnus Damm 1 sibling, 2 replies; 18+ messages in thread From: Simon Horman @ 2015-12-15 5:12 UTC (permalink / raw) To: Dirk Behme Cc: linux-sh, geert+renesas, devicetree, linux-arm-kernel, Gaku Inami, Takeshi Kihara On Sat, Dec 12, 2015 at 08:07:51AM +0900, Simon Horman wrote: > On Fri, Dec 04, 2015 at 02:38:52PM +0100, Dirk Behme wrote: > > From: Gaku Inami <gaku.inami.xw@bp.renesas.com> > > > > Add Cortex-A57 CPU cores to r8a7795 SoC for a total of 4 x Cortex-A57. > > > > Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> > > Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> > > Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> > > Thanks, I have queued this up for v4.5. I meant to test this earlier but somehow it slopped my mind. With this patch applied I still only see one CPU brought up whereas I was expecting 4. Are more patches needed in order to get more CPUs operating? I am using renesas-devel-20151214-v4.4-rc5 + the cpg-mmsr driver (v6). I built the kernel using the defconfig. ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores 2015-12-15 5:12 ` Simon Horman @ 2015-12-15 6:31 ` Dirk Behme 2015-12-15 8:23 ` Geert Uytterhoeven 1 sibling, 0 replies; 18+ messages in thread From: Dirk Behme @ 2015-12-15 6:31 UTC (permalink / raw) To: Simon Horman Cc: linux-sh, geert+renesas, devicetree, linux-arm-kernel, Gaku Inami, Takeshi Kihara On 15.12.2015 06:12, Simon Horman wrote: > On Sat, Dec 12, 2015 at 08:07:51AM +0900, Simon Horman wrote: >> On Fri, Dec 04, 2015 at 02:38:52PM +0100, Dirk Behme wrote: >>> From: Gaku Inami <gaku.inami.xw@bp.renesas.com> >>> >>> Add Cortex-A57 CPU cores to r8a7795 SoC for a total of 4 x Cortex-A57. >>> >>> Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> >>> Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> >>> Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> >> >> Thanks, I have queued this up for v4.5. > > I meant to test this earlier but somehow it slopped my mind. > > With this patch applied I still only see one CPU brought up > whereas I was expecting 4. Are more patches needed in order to > get more CPUs operating? Hmm, I don't think so (?). I tested this with https://github.com/dirkbehme/linux-renesas-rcar-gen3/commits/dirk/gen3-latest-update and got (including the A53 patch) ... ASID allocator initialised with 65536 entries Detected PIPT I-cache on CPU1 CPU1: Booted secondary processor [411fd073] Detected PIPT I-cache on CPU2 CPU2: Booted secondary processor [411fd073] Detected PIPT I-cache on CPU3 CPU3: Booted secondary processor [411fd073] Detected VIPT I-cache on CPU4 CPU features: enabling workaround for ARM erratum 845719 CPU4: Booted secondary processor [410fd034] Detected VIPT I-cache on CPU5 CPU5: Booted secondary processor [410fd034] Detected VIPT I-cache on CPU6 CPU6: Booted secondary processor [410fd034] Detected VIPT I-cache on CPU7 CPU7: Booted secondary processor [410fd034] Brought up 8 CPUs SMP: Total of 8 processors activated. CPU: All CPU(s) started at EL1 ... This is based on last weeks renesas-drivers-2015-12-08-v4.4-rc4 and besides the patches for SDHI/eMMC I don't think it contains anything additional regarding the number of CPU cores. Best regards Dirk ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores 2015-12-15 5:12 ` Simon Horman 2015-12-15 6:31 ` Dirk Behme @ 2015-12-15 8:23 ` Geert Uytterhoeven 1 sibling, 0 replies; 18+ messages in thread From: Geert Uytterhoeven @ 2015-12-15 8:23 UTC (permalink / raw) To: Simon Horman Cc: Dirk Behme, Linux-sh list, Geert Uytterhoeven, devicetree, linux-arm-kernel, Gaku Inami, Takeshi Kihara Hi Simon, On Tue, Dec 15, 2015 at 6:12 AM, Simon Horman <horms@verge.net.au> wrote: > On Sat, Dec 12, 2015 at 08:07:51AM +0900, Simon Horman wrote: >> On Fri, Dec 04, 2015 at 02:38:52PM +0100, Dirk Behme wrote: >> > From: Gaku Inami <gaku.inami.xw@bp.renesas.com> >> > >> > Add Cortex-A57 CPU cores to r8a7795 SoC for a total of 4 x Cortex-A57. >> > >> > Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> >> > Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> >> > Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> >> >> Thanks, I have queued this up for v4.5. > > I meant to test this earlier but somehow it slopped my mind. > > With this patch applied I still only see one CPU brought up > whereas I was expecting 4. Are more patches needed in order to > get more CPUs operating? > > I am using renesas-devel-20151214-v4.4-rc5 + the cpg-mmsr driver (v6). > I built the kernel using the defconfig. I can confirm I saw 4 CPUs online as soon as I had merged renesas-devel containing the above change into my tree (which was based on renesas-drivers-2015-12-08-v4.4-rc4 at that time). I was surprised to see it was that simple to enable the 3 other cores ;-) 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] 18+ messages in thread
* Re: [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores 2015-12-11 23:07 ` Simon Horman 2015-12-15 5:12 ` Simon Horman @ 2015-12-15 8:38 ` Magnus Damm 2015-12-15 8:48 ` Dirk Behme 1 sibling, 1 reply; 18+ messages in thread From: Magnus Damm @ 2015-12-15 8:38 UTC (permalink / raw) To: Simon Horman Cc: Dirk Behme, SH-Linux, Geert Uytterhoeven, devicetree, linux-arm-kernel, Gaku Inami, Takeshi Kihara Hi Simon, On Sat, Dec 12, 2015 at 8:07 AM, Simon Horman <horms@verge.net.au> wrote: > On Fri, Dec 04, 2015 at 02:38:52PM +0100, Dirk Behme wrote: >> From: Gaku Inami <gaku.inami.xw@bp.renesas.com> >> >> Add Cortex-A57 CPU cores to r8a7795 SoC for a total of 4 x Cortex-A57. >> >> Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> >> Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> >> Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> > > Thanks, I have queued this up for v4.5. Thanks. May I ask if CPU hotplug is known to work? Also, which version of the boot loader stack is required? Best, / magnus ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores 2015-12-15 8:38 ` Magnus Damm @ 2015-12-15 8:48 ` Dirk Behme 2015-12-15 8:55 ` Magnus Damm 2016-03-16 1:19 ` Simon Horman 0 siblings, 2 replies; 18+ messages in thread From: Dirk Behme @ 2015-12-15 8:48 UTC (permalink / raw) To: Magnus Damm, Simon Horman Cc: SH-Linux, Geert Uytterhoeven, devicetree, linux-arm-kernel, Gaku Inami, Takeshi Kihara On 15.12.2015 09:38, Magnus Damm wrote: > Hi Simon, > > On Sat, Dec 12, 2015 at 8:07 AM, Simon Horman <horms@verge.net.au> wrote: >> On Fri, Dec 04, 2015 at 02:38:52PM +0100, Dirk Behme wrote: >>> From: Gaku Inami <gaku.inami.xw@bp.renesas.com> >>> >>> Add Cortex-A57 CPU cores to r8a7795 SoC for a total of 4 x Cortex-A57. >>> >>> Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> >>> Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> >>> Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> >> >> Thanks, I have queued this up for v4.5. > > Thanks. May I ask if CPU hotplug is known to work? I didn't test that. > Also, which version > of the boot loader stack is required? I've the U-Boot / boot loader stack from BSP v3.0.2 on the board. I haven't tested v3.0.3, yet. Best regards Dirk ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores 2015-12-15 8:48 ` Dirk Behme @ 2015-12-15 8:55 ` Magnus Damm 2016-03-16 1:19 ` Simon Horman 1 sibling, 0 replies; 18+ messages in thread From: Magnus Damm @ 2015-12-15 8:55 UTC (permalink / raw) To: Dirk Behme Cc: Simon Horman, SH-Linux, Geert Uytterhoeven, devicetree, linux-arm-kernel, Gaku Inami, Takeshi Kihara Hi Dirk, On Tue, Dec 15, 2015 at 5:48 PM, Dirk Behme <dirk.behme@gmail.com> wrote: > On 15.12.2015 09:38, Magnus Damm wrote: >> >> Hi Simon, >> >> On Sat, Dec 12, 2015 at 8:07 AM, Simon Horman <horms@verge.net.au> wrote: >>> >>> On Fri, Dec 04, 2015 at 02:38:52PM +0100, Dirk Behme wrote: >>>> >>>> From: Gaku Inami <gaku.inami.xw@bp.renesas.com> >>>> >>>> Add Cortex-A57 CPU cores to r8a7795 SoC for a total of 4 x Cortex-A57. >>>> >>>> Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> >>>> Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> >>>> Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> >>> >>> >>> Thanks, I have queued this up for v4.5. >> >> >> Thanks. May I ask if CPU hotplug is known to work? > > > > I didn't test that. Ok, no worries. I feel that there are various CPU related features that need a bit of testing to make sure support is stable enough to enable without causing issues for other on-going development. CPU Hotplug is one of those, another is kernel command line options like maxcpus, and kexec would be good to have working as well. To make things a bit more complicated, there is a rather complicated software stack with trusted code installed by the boot loader, so there is a dependency on that as well. On earlier SoCs from previous generations there were issues with shared reset vectors and a watchdog, so SMP support may affect watchdog too... >> Also, which version >> of the boot loader stack is required? > > I've the U-Boot / boot loader stack from BSP v3.0.2 on the board. I haven't > tested v3.0.3, yet. Thanks for sharing! Cheers, / magnus ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores 2015-12-15 8:48 ` Dirk Behme 2015-12-15 8:55 ` Magnus Damm @ 2016-03-16 1:19 ` Simon Horman 2016-03-16 3:45 ` Khiem Nguyen 1 sibling, 1 reply; 18+ messages in thread From: Simon Horman @ 2016-03-16 1:19 UTC (permalink / raw) To: Dirk Behme Cc: Magnus Damm, SH-Linux, Geert Uytterhoeven, devicetree, linux-arm-kernel, Gaku Inami, Takeshi Kihara Hi Dirk, On Tue, Dec 15, 2015 at 09:48:46AM +0100, Dirk Behme wrote: > On 15.12.2015 09:38, Magnus Damm wrote: > >Hi Simon, > > > >On Sat, Dec 12, 2015 at 8:07 AM, Simon Horman <horms@verge.net.au> wrote: > >>On Fri, Dec 04, 2015 at 02:38:52PM +0100, Dirk Behme wrote: > >>>From: Gaku Inami <gaku.inami.xw@bp.renesas.com> > >>> > >>>Add Cortex-A57 CPU cores to r8a7795 SoC for a total of 4 x Cortex-A57. > >>> > >>>Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> > >>>Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> > >>>Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> > >> > >>Thanks, I have queued this up for v4.5. > > > >Thanks. May I ask if CPU hotplug is known to work? > > > I didn't test that. As a follow-up I am wondering if you subsequently observed CPU hotplug working. My recent testing on v4.5 indicates that it isn't working in my environment. It would be quite valuable to know if it has ever been known to work. > >Also, which version > >of the boot loader stack is required? > > > I've the U-Boot / boot loader stack from BSP v3.0.2 on the board. I haven't > tested v3.0.3, yet. For reference my environment is as follows: NOTICE: BL2: R-Car H3 Loader Rev.1.0.1 NOTICE: BL2: DDR1600(rev.0.10) NOTICE: BL2: DRAM Split is 4ch NOTICE: BL2: QoS is Gfx Oriented(rev.0.24A) NOTICE: BL2: v1.1(release):41099f4 NOTICE: BL2: Built : 11:47:26, Nov 19 2015 NOTICE: BL2: Normal boot NOTICE: BL2: memdrv_block_read dst=0xe630e0b0 src=0x8180000 len=36(0x24) NOTICE: BL2: memdrv_block_read dst=0x43f00000 src=0x8180400 len=3072(0xc00) NOTICE: BL2: memdrv_block_read dst=0x44000000 src=0x81c0000 len=65536(0x10000) NOTICE: BL2: memdrv_block_read dst=0x44100000 src=0x8200000 len=524288(0x80000) NOTICE: BL2: memdrv_block_read dst=0x49000000 src=0x8640000 len=1048576(0x100000) U-Boot 2015.04 (Nov 19 2015 - 11:47:49) CPU: Renesas Electronics CPU rev 1.0 Board: Salvator-X DRAM: 896 MiB MMC: sh-sdhi: 0, sh-sdhi: 1, sh-sdhi: 2 In: serial Out: serial Err: serial Net: ravb ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores 2016-03-16 1:19 ` Simon Horman @ 2016-03-16 3:45 ` Khiem Nguyen 2016-03-16 5:36 ` Simon Horman 0 siblings, 1 reply; 18+ messages in thread From: Khiem Nguyen @ 2016-03-16 3:45 UTC (permalink / raw) To: Simon Horman, Dirk Behme, Magnus Damm Cc: SH-Linux, Geert Uytterhoeven, devicetree, linux-arm-kernel, Gaku Inami, Takeshi Kihara, Khiem Nguyen, Toru Oishi Hi Simon, Dirk, Magnus, On 3/16/2016 8:19 AM, Simon Horman wrote: > Hi Dirk, > > On Tue, Dec 15, 2015 at 09:48:46AM +0100, Dirk Behme wrote: >> On 15.12.2015 09:38, Magnus Damm wrote: >>> Hi Simon, >>> >>> On Sat, Dec 12, 2015 at 8:07 AM, Simon Horman <horms@verge.net.au> wrote: >>>> On Fri, Dec 04, 2015 at 02:38:52PM +0100, Dirk Behme wrote: >>>>> From: Gaku Inami <gaku.inami.xw@bp.renesas.com> >>>>> >>>>> Add Cortex-A57 CPU cores to r8a7795 SoC for a total of 4 x Cortex-A57. >>>>> >>>>> Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> >>>>> Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> >>>>> Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> >>>> >>>> Thanks, I have queued this up for v4.5. >>> >>> Thanks. May I ask if CPU hotplug is known to work? >> >> >> I didn't test that. > > As a follow-up I am wondering if you subsequently observed CPU hotplug > working. My recent testing on v4.5 indicates that it isn't working in my > environment. It would be quite valuable to know if it has ever been known > to work. > >>> Also, which version >>> of the boot loader stack is required? Yes. CPUHotplug will be supported in boot loader stack released by Dec 2015 and later. >> >> I've the U-Boot / boot loader stack from BSP v3.0.2 on the board. I haven't >> tested v3.0.3, yet. > > For reference my environment is as follows: > > > NOTICE: BL2: R-Car H3 Loader Rev.1.0.1 > NOTICE: BL2: DDR1600(rev.0.10) > NOTICE: BL2: DRAM Split is 4ch > NOTICE: BL2: QoS is Gfx Oriented(rev.0.24A) > NOTICE: BL2: v1.1(release):41099f4 > NOTICE: BL2: Built : 11:47:26, Nov 19 2015 > NOTICE: BL2: Normal boot > NOTICE: BL2: memdrv_block_read dst=0xe630e0b0 src=0x8180000 len=36(0x24) > NOTICE: BL2: memdrv_block_read dst=0x43f00000 src=0x8180400 len=3072(0xc00) > NOTICE: BL2: memdrv_block_read dst=0x44000000 src=0x81c0000 len=65536(0x10000) > NOTICE: BL2: memdrv_block_read dst=0x44100000 src=0x8200000 len=524288(0x80000) > NOTICE: BL2: memdrv_block_read dst=0x49000000 src=0x8640000 len=1048576(0x100000) > > U-Boot 2015.04 (Nov 19 2015 - 11:47:49) > > CPU: Renesas Electronics CPU rev 1.0 > Board: Salvator-X > DRAM: 896 MiB > MMC: sh-sdhi: 0, sh-sdhi: 1, sh-sdhi: 2 > In: serial > Out: serial > Err: serial > Net: ravb > -- > To unsubscribe from this list: send the line "unsubscribe linux-sh" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Best regards, KHIEM Nguyen ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores 2016-03-16 3:45 ` Khiem Nguyen @ 2016-03-16 5:36 ` Simon Horman 0 siblings, 0 replies; 18+ messages in thread From: Simon Horman @ 2016-03-16 5:36 UTC (permalink / raw) To: Khiem Nguyen Cc: Dirk Behme, Magnus Damm, SH-Linux, Geert Uytterhoeven, devicetree, linux-arm-kernel, Gaku Inami, Takeshi Kihara, Toru Oishi On Wed, Mar 16, 2016 at 10:45:10AM +0700, Khiem Nguyen wrote: > Hi Simon, Dirk, Magnus, > > On 3/16/2016 8:19 AM, Simon Horman wrote: > >Hi Dirk, > > > >On Tue, Dec 15, 2015 at 09:48:46AM +0100, Dirk Behme wrote: > >>On 15.12.2015 09:38, Magnus Damm wrote: > >>>Hi Simon, > >>> > >>>On Sat, Dec 12, 2015 at 8:07 AM, Simon Horman <horms@verge.net.au> wrote: > >>>>On Fri, Dec 04, 2015 at 02:38:52PM +0100, Dirk Behme wrote: > >>>>>From: Gaku Inami <gaku.inami.xw@bp.renesas.com> > >>>>> > >>>>>Add Cortex-A57 CPU cores to r8a7795 SoC for a total of 4 x Cortex-A57. > >>>>> > >>>>>Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> > >>>>>Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> > >>>>>Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> > >>>> > >>>>Thanks, I have queued this up for v4.5. > >>> > >>>Thanks. May I ask if CPU hotplug is known to work? > >> > >> > >>I didn't test that. > > > >As a follow-up I am wondering if you subsequently observed CPU hotplug > >working. My recent testing on v4.5 indicates that it isn't working in my > >environment. It would be quite valuable to know if it has ever been known > >to work. > > > >>>Also, which version > >>>of the boot loader stack is required? > > Yes. CPUHotplug will be supported in boot loader stack released by Dec 2015 > and later. Thanks, that sounds positive. As Dec 2015 has already passed I wonder if a boot loader stack that supports CPU Hotplug is currently available. Perhaps internally? If so I think it would be good to verify v4.5. > >>I've the U-Boot / boot loader stack from BSP v3.0.2 on the board. I haven't > >>tested v3.0.3, yet. > > > >For reference my environment is as follows: > > > > > > NOTICE: BL2: R-Car H3 Loader Rev.1.0.1 > > NOTICE: BL2: DDR1600(rev.0.10) > > NOTICE: BL2: DRAM Split is 4ch > > NOTICE: BL2: QoS is Gfx Oriented(rev.0.24A) > > NOTICE: BL2: v1.1(release):41099f4 > > NOTICE: BL2: Built : 11:47:26, Nov 19 2015 > > NOTICE: BL2: Normal boot > > NOTICE: BL2: memdrv_block_read dst=0xe630e0b0 src=0x8180000 len=36(0x24) > > NOTICE: BL2: memdrv_block_read dst=0x43f00000 src=0x8180400 len=3072(0xc00) > > NOTICE: BL2: memdrv_block_read dst=0x44000000 src=0x81c0000 len=65536(0x10000) > > NOTICE: BL2: memdrv_block_read dst=0x44100000 src=0x8200000 len=524288(0x80000) > > NOTICE: BL2: memdrv_block_read dst=0x49000000 src=0x8640000 len=1048576(0x100000) > > > > U-Boot 2015.04 (Nov 19 2015 - 11:47:49) > > > > CPU: Renesas Electronics CPU rev 1.0 > > Board: Salvator-X > > DRAM: 896 MiB > > MMC: sh-sdhi: 0, sh-sdhi: 1, sh-sdhi: 2 > > In: serial > > Out: serial > > Err: serial > > Net: ravb > >-- > >To unsubscribe from this list: send the line "unsubscribe linux-sh" in > >the body of a message to majordomo@vger.kernel.org > >More majordomo info at http://vger.kernel.org/majordomo-info.html > > > > > -- > Best regards, > KHIEM Nguyen > ^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH 3/3] arm64: dts: r8a7795: Add pmu device nodes 2015-12-04 13:38 [PATCH 1/3] arm64: dts: r8a7795: Add PSCI node Dirk Behme 2015-12-04 13:38 ` [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores Dirk Behme @ 2015-12-04 13:38 ` Dirk Behme 2015-12-11 23:07 ` Simon Horman [not found] ` <1449236333-4410-3-git-send-email-dirk.behme-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2015-12-11 23:07 ` [PATCH 1/3] arm64: dts: r8a7795: Add PSCI node Simon Horman 2 siblings, 2 replies; 18+ messages in thread From: Dirk Behme @ 2015-12-04 13:38 UTC (permalink / raw) To: linux-sh, horms, geert+renesas Cc: devicetree, linux-arm-kernel, Yoshifumi Hosoya, Masaru Nagai From: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com> Enabling the performance monitor unit on r8a7795. Signed-off-by: Masaru Nagai <masaru.nagai.vx@renesas.com> Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com> Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> --- Note: This patch picked from https://git.kernel.org/cgit/linux/kernel/git/horms/renesas-bsp.git/log/?h=v4.2/rcar-3.0.x and rebased against https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/gen3-latest renesas-drivers-2015-12-01-v4.4-rc3 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index 946a5bb..8113b71 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -247,6 +247,18 @@ power-domains = <&cpg>; }; + pmu { + compatible = "arm,armv8-pmuv3"; + interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; + interrupt-affinity = <&a57_0>, + <&a57_1>, + <&a57_2>, + <&a57_3>; + }; + timer { compatible = "arm,armv8-timer"; interrupts = <GIC_PPI 13 -- 2.6.3 ^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: [PATCH 3/3] arm64: dts: r8a7795: Add pmu device nodes 2015-12-04 13:38 ` [PATCH 3/3] arm64: dts: r8a7795: Add pmu device nodes Dirk Behme @ 2015-12-11 23:07 ` Simon Horman [not found] ` <1449236333-4410-3-git-send-email-dirk.behme-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 1 sibling, 0 replies; 18+ messages in thread From: Simon Horman @ 2015-12-11 23:07 UTC (permalink / raw) To: Dirk Behme Cc: linux-sh, geert+renesas, devicetree, linux-arm-kernel, Yoshifumi Hosoya, Masaru Nagai On Fri, Dec 04, 2015 at 02:38:53PM +0100, Dirk Behme wrote: > From: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com> > > Enabling the performance monitor unit on r8a7795. > > Signed-off-by: Masaru Nagai <masaru.nagai.vx@renesas.com> > Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com> > Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> I took the liberty of correcting the spelling of "Signed" when queuing up this patch for v4.5. ^ permalink raw reply [flat|nested] 18+ messages in thread
[parent not found: <1449236333-4410-3-git-send-email-dirk.behme-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH 3/3] arm64: dts: r8a7795: Add pmu device nodes [not found] ` <1449236333-4410-3-git-send-email-dirk.behme-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2015-12-14 14:36 ` Sudeep Holla 2015-12-15 8:33 ` Geert Uytterhoeven 0 siblings, 1 reply; 18+ messages in thread From: Sudeep Holla @ 2015-12-14 14:36 UTC (permalink / raw) To: Dirk Behme, linux-sh-u79uwXL29TY76Z2rM5mHXA, horms-/R6kz+dDXgpPR4JQBCEnsQ, geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ Cc: Sudeep Holla, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Yoshifumi Hosoya, Masaru Nagai On 04/12/15 13:38, Dirk Behme wrote: > From: Yoshifumi Hosoya <yoshifumi.hosoya.wj-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> > > Enabling the performance monitor unit on r8a7795. > > Signed-off-by: Masaru Nagai <masaru.nagai.vx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> > Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org> > Sigend-off-by: Dirk Behme <dirk.behme-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > --- > Note: This patch picked from > > https://git.kernel.org/cgit/linux/kernel/git/horms/renesas-bsp.git/log/?h=v4.2/rcar-3.0.x > > and rebased against > > https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/gen3-latest renesas-drivers-2015-12-01-v4.4-rc3 > > arch/arm64/boot/dts/renesas/r8a7795.dtsi | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi > index 946a5bb..8113b71 100644 > --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi > +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi > @@ -247,6 +247,18 @@ > power-domains = <&cpg>; > }; > > + pmu { > + compatible = "arm,armv8-pmuv3"; You can add more specific compatible "arm,cortex-a57-pmu" if it's Cortex A57. -- Regards, Sudeep -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 3/3] arm64: dts: r8a7795: Add pmu device nodes 2015-12-14 14:36 ` Sudeep Holla @ 2015-12-15 8:33 ` Geert Uytterhoeven 2015-12-15 9:50 ` Sudeep Holla 0 siblings, 1 reply; 18+ messages in thread From: Geert Uytterhoeven @ 2015-12-15 8:33 UTC (permalink / raw) To: Sudeep Holla Cc: Dirk Behme, Linux-sh list, Simon Horman, Geert Uytterhoeven, devicetree, linux-arm-kernel, Yoshifumi Hosoya, Masaru Nagai On Mon, Dec 14, 2015 at 3:36 PM, Sudeep Holla <sudeep.holla@arm.com> wrote: > On 04/12/15 13:38, Dirk Behme wrote: >> >> From: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com> >> >> Enabling the performance monitor unit on r8a7795. >> >> Signed-off-by: Masaru Nagai <masaru.nagai.vx@renesas.com> >> Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com> >> Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> >> --- >> Note: This patch picked from >> >> >> https://git.kernel.org/cgit/linux/kernel/git/horms/renesas-bsp.git/log/?h=v4.2/rcar-3.0.x >> >> and rebased against >> >> >> https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/gen3-latest >> renesas-drivers-2015-12-01-v4.4-rc3 >> >> arch/arm64/boot/dts/renesas/r8a7795.dtsi | 12 ++++++++++++ >> 1 file changed, 12 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi >> b/arch/arm64/boot/dts/renesas/r8a7795.dtsi >> index 946a5bb..8113b71 100644 >> --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi >> +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi >> @@ -247,6 +247,18 @@ >> power-domains = <&cpg>; >> }; >> >> + pmu { >> + compatible = "arm,armv8-pmuv3"; > > > You can add more specific compatible "arm,cortex-a57-pmu" if it's Cortex > A57. Except that one is not documented. Oh, it is. Someone mistyped the commas. Patch sent. 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] 18+ messages in thread
* Re: [PATCH 3/3] arm64: dts: r8a7795: Add pmu device nodes 2015-12-15 8:33 ` Geert Uytterhoeven @ 2015-12-15 9:50 ` Sudeep Holla 0 siblings, 0 replies; 18+ messages in thread From: Sudeep Holla @ 2015-12-15 9:50 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Sudeep Holla, Dirk Behme, Linux-sh list, Simon Horman, Geert Uytterhoeven, devicetree, linux-arm-kernel, Yoshifumi Hosoya, Masaru Nagai On 15/12/15 08:33, Geert Uytterhoeven wrote: > On Mon, Dec 14, 2015 at 3:36 PM, Sudeep Holla <sudeep.holla@arm.com> wrote: >> On 04/12/15 13:38, Dirk Behme wrote: >>> >>> From: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com> >>> >>> Enabling the performance monitor unit on r8a7795. >>> >>> Signed-off-by: Masaru Nagai <masaru.nagai.vx@renesas.com> >>> Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com> >>> Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> >>> --- >>> Note: This patch picked from >>> >>> >>> https://git.kernel.org/cgit/linux/kernel/git/horms/renesas-bsp.git/log/?h=v4.2/rcar-3.0.x >>> >>> and rebased against >>> >>> >>> https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/gen3-latest >>> renesas-drivers-2015-12-01-v4.4-rc3 >>> >>> arch/arm64/boot/dts/renesas/r8a7795.dtsi | 12 ++++++++++++ >>> 1 file changed, 12 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi >>> b/arch/arm64/boot/dts/renesas/r8a7795.dtsi >>> index 946a5bb..8113b71 100644 >>> --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi >>> +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi >>> @@ -247,6 +247,18 @@ >>> power-domains = <&cpg>; >>> }; >>> >>> + pmu { >>> + compatible = "arm,armv8-pmuv3"; >> >> >> You can add more specific compatible "arm,cortex-a57-pmu" if it's Cortex >> A57. > > Except that one is not documented. > > Oh, it is. Someone mistyped the commas. Patch sent. > Ah right, nice catch. Thanks for the patch. -- Regards, Sudeep ^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/3] arm64: dts: r8a7795: Add PSCI node 2015-12-04 13:38 [PATCH 1/3] arm64: dts: r8a7795: Add PSCI node Dirk Behme 2015-12-04 13:38 ` [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores Dirk Behme 2015-12-04 13:38 ` [PATCH 3/3] arm64: dts: r8a7795: Add pmu device nodes Dirk Behme @ 2015-12-11 23:07 ` Simon Horman 2 siblings, 0 replies; 18+ messages in thread From: Simon Horman @ 2015-12-11 23:07 UTC (permalink / raw) To: Dirk Behme Cc: linux-sh, geert+renesas, devicetree, linux-arm-kernel, Gaku Inami, Takeshi Kihara On Fri, Dec 04, 2015 at 02:38:51PM +0100, Dirk Behme wrote: > From: Gaku Inami <gaku.inami.xw@bp.renesas.com> > > Add PSCI node for r8a7795 SoC, and cpu node enable-method property is > set to "psci". > > Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com> > Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com> > Sigend-off-by: Dirk Behme <dirk.behme@gmail.com> I took the liberty of correcting the spelling of "Sigend" when queueing this patch up for v4.5. ^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2016-03-16 5:36 UTC | newest] Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-12-04 13:38 [PATCH 1/3] arm64: dts: r8a7795: Add PSCI node Dirk Behme 2015-12-04 13:38 ` [PATCH 2/3] arm64: dts: r8a7795: Add Cortex-A57 CPU cores Dirk Behme 2015-12-11 23:07 ` Simon Horman 2015-12-15 5:12 ` Simon Horman 2015-12-15 6:31 ` Dirk Behme 2015-12-15 8:23 ` Geert Uytterhoeven 2015-12-15 8:38 ` Magnus Damm 2015-12-15 8:48 ` Dirk Behme 2015-12-15 8:55 ` Magnus Damm 2016-03-16 1:19 ` Simon Horman 2016-03-16 3:45 ` Khiem Nguyen 2016-03-16 5:36 ` Simon Horman 2015-12-04 13:38 ` [PATCH 3/3] arm64: dts: r8a7795: Add pmu device nodes Dirk Behme 2015-12-11 23:07 ` Simon Horman [not found] ` <1449236333-4410-3-git-send-email-dirk.behme-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2015-12-14 14:36 ` Sudeep Holla 2015-12-15 8:33 ` Geert Uytterhoeven 2015-12-15 9:50 ` Sudeep Holla 2015-12-11 23:07 ` [PATCH 1/3] arm64: dts: r8a7795: Add PSCI node Simon Horman
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).