* [PATCH 0/3] ARM: berlin: convert smp to CPU_METHOD_OF_DECLARE @ 2014-04-03 8:08 Antoine Ténart [not found] ` <1396512496-8030-1-git-send-email-antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 11+ messages in thread From: Antoine Ténart @ 2014-04-03 8:08 UTC (permalink / raw) To: sebastian.hesselbarth Cc: Antoine Ténart, alexandre.belloni, zmxu, jszhang, linux-arm-kernel, devicetree, linux-kernel The newly introduced CPU_METHOD_OF_DECLARE (6c3ff8b11a16) [1] allows to get rid of the board file reference to smp ops. This serie converts the Berlin SoC smp to use this and allows to set the enable-method in the device tree. This serie applies on top of Sebastian's topic/smp-bg3-bg2q branch [2] rebased on top of linux-next. Tested on the Berlin BG2Q. [1] https://patchwork.kernel.org/patch/3399311/ [2] https://github.com/shesselba/linux-berlin/tree/topic/smp-bg2-bg2q Antoine Ténart (3): ARM: berlin: use CPU_METHOD_OF_DECLARE for smp ARM: dts: document the berlin enable-method property ARM: dts: berlin: add enable-method property in cpus node for smp Documentation/devicetree/bindings/arm/cpus.txt | 2 ++ arch/arm/boot/dts/berlin2.dtsi | 1 + arch/arm/boot/dts/berlin2q.dtsi | 1 + arch/arm/mach-berlin/berlin.c | 1 - arch/arm/mach-berlin/common.h | 2 -- arch/arm/mach-berlin/platsmp.c | 3 ++- 6 files changed, 6 insertions(+), 4 deletions(-) -- 1.8.3.2 ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <1396512496-8030-1-git-send-email-antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>]
* [PATCH 1/3] ARM: berlin: use CPU_METHOD_OF_DECLARE for smp [not found] ` <1396512496-8030-1-git-send-email-antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2014-04-03 8:08 ` Antoine Ténart 2014-04-03 8:08 ` [PATCH 2/3] ARM: dts: document the berlin enable-method property Antoine Ténart 2014-04-03 8:08 ` [PATCH 3/3] ARM: dts: berlin: add enable-method property in cpus node for smp Antoine Ténart 2 siblings, 0 replies; 11+ messages in thread From: Antoine Ténart @ 2014-04-03 8:08 UTC (permalink / raw) To: sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w Cc: Antoine Ténart, alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, zmxu-eYqpPyKDWXRBDgjK7y7TUQ, jszhang-eYqpPyKDWXRBDgjK7y7TUQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Get rid of the smp ops in the machine descriptor and select the cpu enable method in the device tree. Signed-off-by: Antoine Ténart <antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> --- arch/arm/mach-berlin/berlin.c | 1 - arch/arm/mach-berlin/common.h | 2 -- arch/arm/mach-berlin/platsmp.c | 3 ++- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-berlin/berlin.c b/arch/arm/mach-berlin/berlin.c index 1bbca793174d..3cc3e706719e 100644 --- a/arch/arm/mach-berlin/berlin.c +++ b/arch/arm/mach-berlin/berlin.c @@ -38,5 +38,4 @@ static const char * const berlin_dt_compat[] = { DT_MACHINE_START(BERLIN_DT, "Marvell Berlin") .dt_compat = berlin_dt_compat, .init_machine = berlin_init_machine, - .smp = smp_ops(berlin_smp_ops), MACHINE_END diff --git a/arch/arm/mach-berlin/common.h b/arch/arm/mach-berlin/common.h index 57c97669af0a..8d585e2481f9 100644 --- a/arch/arm/mach-berlin/common.h +++ b/arch/arm/mach-berlin/common.h @@ -13,6 +13,4 @@ extern void berlin_secondary_startup(void); -extern struct smp_operations berlin_smp_ops; - #endif diff --git a/arch/arm/mach-berlin/platsmp.c b/arch/arm/mach-berlin/platsmp.c index 5c83941b0918..86fe697577fd 100644 --- a/arch/arm/mach-berlin/platsmp.c +++ b/arch/arm/mach-berlin/platsmp.c @@ -132,8 +132,9 @@ static void __init berlin_smp_prepare_cpus(unsigned int max_cpus) iounmap(gpr_base); } -struct smp_operations berlin_smp_ops __initdata = { +static struct smp_operations berlin_smp_ops __initdata = { .smp_prepare_cpus = berlin_smp_prepare_cpus, .smp_secondary_init = berlin_secondary_init, .smp_boot_secondary = berlin_boot_secondary, }; +CPU_METHOD_OF_DECLARE(berlin_smp, "marvell,88de31-smp", &berlin_smp_ops); -- 1.8.3.2 -- 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 related [flat|nested] 11+ messages in thread
* [PATCH 2/3] ARM: dts: document the berlin enable-method property [not found] ` <1396512496-8030-1-git-send-email-antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2014-04-03 8:08 ` [PATCH 1/3] ARM: berlin: use CPU_METHOD_OF_DECLARE for smp Antoine Ténart @ 2014-04-03 8:08 ` Antoine Ténart [not found] ` <1396512496-8030-3-git-send-email-antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> ` (2 more replies) 2014-04-03 8:08 ` [PATCH 3/3] ARM: dts: berlin: add enable-method property in cpus node for smp Antoine Ténart 2 siblings, 3 replies; 11+ messages in thread From: Antoine Ténart @ 2014-04-03 8:08 UTC (permalink / raw) To: sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w Cc: Antoine Ténart, alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, zmxu-eYqpPyKDWXRBDgjK7y7TUQ, jszhang-eYqpPyKDWXRBDgjK7y7TUQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Signed-off-by: Antoine Ténart <antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> --- Documentation/devicetree/bindings/arm/cpus.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt index 333f4aea3029..a9e42a2dbc99 100644 --- a/Documentation/devicetree/bindings/arm/cpus.txt +++ b/Documentation/devicetree/bindings/arm/cpus.txt @@ -185,6 +185,8 @@ nodes to be present and contain the properties described below. "qcom,gcc-msm8660" "qcom,kpss-acc-v1" "qcom,kpss-acc-v2" + "marvell,88de31-smp" - cpu-core handling for Berlin + SoC from Marvell starting with 88de31 - cpu-release-addr Usage: required for systems that have an "enable-method" -- 1.8.3.2 -- 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 related [flat|nested] 11+ messages in thread
[parent not found: <1396512496-8030-3-git-send-email-antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 2/3] ARM: dts: document the berlin enable-method property [not found] ` <1396512496-8030-3-git-send-email-antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2014-04-03 8:22 ` Jisheng Zhang 2014-04-03 8:54 ` Antoine Ténart 0 siblings, 1 reply; 11+ messages in thread From: Jisheng Zhang @ 2014-04-03 8:22 UTC (permalink / raw) To: Antoine Ténart Cc: sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org, Jimmy Xu, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Hi, On Thu, 3 Apr 2014 01:08:15 -0700 Antoine Ténart <antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote: > Signed-off-by: Antoine Ténart <antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> > --- > Documentation/devicetree/bindings/arm/cpus.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/arm/cpus.txt > b/Documentation/devicetree/bindings/arm/cpus.txt index > 333f4aea3029..a9e42a2dbc99 100644 --- > a/Documentation/devicetree/bindings/arm/cpus.txt +++ > b/Documentation/devicetree/bindings/arm/cpus.txt @@ -185,6 +185,8 @@ nodes > to be present and contain the properties described below. "qcom,gcc-msm8660" > "qcom,kpss-acc-v1" > "qcom,kpss-acc-v2" > + "marvell,88de31-smp" - cpu-core handling for why not "marvell,berlin-smp"? Thanks -- 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] 11+ messages in thread
* Re: [PATCH 2/3] ARM: dts: document the berlin enable-method property 2014-04-03 8:22 ` Jisheng Zhang @ 2014-04-03 8:54 ` Antoine Ténart 2014-04-03 9:14 ` Jisheng Zhang [not found] ` <533D21AF.2070508-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 0 siblings, 2 replies; 11+ messages in thread From: Antoine Ténart @ 2014-04-03 8:54 UTC (permalink / raw) To: Jisheng Zhang Cc: sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org, Jimmy Xu, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Jisheng, On 03/04/2014 10:22, Jisheng Zhang wrote: > Hi, > > On Thu, 3 Apr 2014 01:08:15 -0700 > Antoine Ténart <antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote: > >> Signed-off-by: Antoine Ténart <antoine.tenart-wi1+55ScJUtKEb57/3fJTGGXanvQGlWp@public.gmane.orgm> >> --- >> Documentation/devicetree/bindings/arm/cpus.txt | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/arm/cpus.txt >> b/Documentation/devicetree/bindings/arm/cpus.txt index >> 333f4aea3029..a9e42a2dbc99 100644 --- >> a/Documentation/devicetree/bindings/arm/cpus.txt +++ >> b/Documentation/devicetree/bindings/arm/cpus.txt @@ -185,6 +185,8 @@ nodes >> to be present and contain the properties described below. "qcom,gcc-msm8660" >> "qcom,kpss-acc-v1" >> "qcom,kpss-acc-v2" >> + "marvell,88de31-smp" - cpu-core handling for > > why not "marvell,berlin-smp"? We have SMP on the BG2 and the BG2Q currently. Future boards may not be compatible with this method (BG3 ?), I think "marvell,berlin-smp" is too generic. We could use "marvell,88de31xx-smp" as Alexandre suggested. Antoine -- Antoine Ténart, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- 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] 11+ messages in thread
* Re: [PATCH 2/3] ARM: dts: document the berlin enable-method property 2014-04-03 8:54 ` Antoine Ténart @ 2014-04-03 9:14 ` Jisheng Zhang [not found] ` <533D21AF.2070508-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 1 sibling, 0 replies; 11+ messages in thread From: Jisheng Zhang @ 2014-04-03 9:14 UTC (permalink / raw) To: Antoine Ténart Cc: sebastian.hesselbarth@gmail.com, alexandre.belloni@free-electrons.com, Jimmy Xu, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Hi Antoine, On Thu, 3 Apr 2014 01:54:07 -0700 Antoine Ténart <antoine.tenart@free-electrons.com> wrote: > Jisheng, > > On 03/04/2014 10:22, Jisheng Zhang wrote: > > Hi, > > > > On Thu, 3 Apr 2014 01:08:15 -0700 > > Antoine Ténart <antoine.tenart@free-electrons.com> wrote: > > > >> Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com> > >> --- > >> Documentation/devicetree/bindings/arm/cpus.txt | 2 ++ > >> 1 file changed, 2 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/arm/cpus.txt > >> b/Documentation/devicetree/bindings/arm/cpus.txt index > >> 333f4aea3029..a9e42a2dbc99 100644 --- > >> a/Documentation/devicetree/bindings/arm/cpus.txt +++ > >> b/Documentation/devicetree/bindings/arm/cpus.txt @@ -185,6 +185,8 @@ > >> nodes to be present and contain the properties described below. > >> "qcom,gcc-msm8660" "qcom,kpss-acc-v1" > >> "qcom,kpss-acc-v2" > >> + "marvell,88de31-smp" - cpu-core handling for > > > > why not "marvell,berlin-smp"? > > We have SMP on the BG2 and the BG2Q currently. Future boards may not be > compatible with this method (BG3 ?), I think "marvell,berlin-smp" is too Yes. It's not compatible. But it will be PSCI. FWICT, current smp method would be only used for BG2/BG2CT. Thanks ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <533D21AF.2070508-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 2/3] ARM: dts: document the berlin enable-method property [not found] ` <533D21AF.2070508-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2014-04-03 9:14 ` Antoine Ténart [not found] ` <533D268E.7070502-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 0 siblings, 1 reply; 11+ messages in thread From: Antoine Ténart @ 2014-04-03 9:14 UTC (permalink / raw) To: Jisheng Zhang Cc: sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org, Jimmy Xu, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 03/04/2014 10:54, Antoine Ténart wrote: > Jisheng, > > On 03/04/2014 10:22, Jisheng Zhang wrote: >> Hi, >> >> On Thu, 3 Apr 2014 01:08:15 -0700 >> Antoine Ténart <antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote: >> >>> Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com> >>> --- >>> Documentation/devicetree/bindings/arm/cpus.txt | 2 ++ >>> 1 file changed, 2 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/arm/cpus.txt >>> b/Documentation/devicetree/bindings/arm/cpus.txt index >>> 333f4aea3029..a9e42a2dbc99 100644 --- >>> a/Documentation/devicetree/bindings/arm/cpus.txt +++ >>> b/Documentation/devicetree/bindings/arm/cpus.txt @@ -185,6 +185,8 @@ >>> nodes >>> to be present and contain the properties described below. >>> "qcom,gcc-msm8660" >>> "qcom,kpss-acc-v1" >>> "qcom,kpss-acc-v2" >>> + "marvell,88de31-smp" - cpu-core handling for >> >> why not "marvell,berlin-smp"? > > We have SMP on the BG2 and the BG2Q currently. Future boards may not be > compatible with this method (BG3 ?), I think "marvell,berlin-smp" is too > generic. > > We could use "marvell,88de31xx-smp" as Alexandre suggested. "marvell,88de31xx-smp" is not a good choice too, since futur SoC may match the "xx" and not use this method. A better way should be to use the first SoC implementing the feature, so "marvell,88de3100". Antoine -- Antoine Ténart, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- 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] 11+ messages in thread
[parent not found: <533D268E.7070502-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>]
* Re: [PATCH 2/3] ARM: dts: document the berlin enable-method property [not found] ` <533D268E.7070502-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2014-04-03 9:40 ` Sebastian Hesselbarth 0 siblings, 0 replies; 11+ messages in thread From: Sebastian Hesselbarth @ 2014-04-03 9:40 UTC (permalink / raw) To: Antoine Ténart, Jisheng Zhang Cc: alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org, Jimmy Xu, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 04/03/2014 09:14 AM, Antoine Ténart wrote: > On 03/04/2014 10:54, Antoine Ténart wrote: >> On 03/04/2014 10:22, Jisheng Zhang wrote: >>> On Thu, 3 Apr 2014 01:08:15 -0700 >>> Antoine Ténart <antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> wrote: >>> >>>> Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com> >>>> --- >>>> Documentation/devicetree/bindings/arm/cpus.txt | 2 ++ >>>> 1 file changed, 2 insertions(+) >>>> >>>> diff --git a/Documentation/devicetree/bindings/arm/cpus.txt >>>> b/Documentation/devicetree/bindings/arm/cpus.txt index >>>> 333f4aea3029..a9e42a2dbc99 100644 --- >>>> a/Documentation/devicetree/bindings/arm/cpus.txt +++ >>>> b/Documentation/devicetree/bindings/arm/cpus.txt @@ -185,6 +185,8 @@ >>>> nodes >>>> to be present and contain the properties described below. >>>> "qcom,gcc-msm8660" >>>> "qcom,kpss-acc-v1" >>>> "qcom,kpss-acc-v2" >>>> + "marvell,88de31-smp" - cpu-core handling for >>> >>> why not "marvell,berlin-smp"? >> >> We have SMP on the BG2 and the BG2Q currently. Future boards may not be >> compatible with this method (BG3 ?), I think "marvell,berlin-smp" is too >> generic. >> >> We could use "marvell,88de31xx-smp" as Alexandre suggested. > > "marvell,88de31xx-smp" is not a good choice too, since futur SoC may > match the "xx" and not use this method. A better way should be to use > the first SoC implementing the feature, so "marvell,88de3100". Never introduce the SoC numbers, we have chosen to stick with berlin2{,cd,q} so use that. Given the comment from Mark Rutland and Russell King here[1], I'd rather concentrate on a proper SMP implementation. Unfortunately, I haven't found a good documentation about the requirements nor call sequence - but I haven't looked hard. Having said that, can we postpone the DT enable method patches until we agreed on a better SMP implementation? Sebastian [1] http://www.spinics.net/lists/arm-kernel/msg318585.html -- 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] 11+ messages in thread
* Re: [PATCH 2/3] ARM: dts: document the berlin enable-method property 2014-04-03 8:08 ` [PATCH 2/3] ARM: dts: document the berlin enable-method property Antoine Ténart [not found] ` <1396512496-8030-3-git-send-email-antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> @ 2014-04-03 8:29 ` Alexandre Belloni 2014-04-03 9:02 ` Mark Rutland 2 siblings, 0 replies; 11+ messages in thread From: Alexandre Belloni @ 2014-04-03 8:29 UTC (permalink / raw) To: Antoine Ténart Cc: sebastian.hesselbarth, zmxu, jszhang, linux-arm-kernel, devicetree, linux-kernel On 03/04/2014 at 10:08:15 +0200, Antoine Ténart wrote : Please write a quick commit message. > Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com> > --- > Documentation/devicetree/bindings/arm/cpus.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt > index 333f4aea3029..a9e42a2dbc99 100644 > --- a/Documentation/devicetree/bindings/arm/cpus.txt > +++ b/Documentation/devicetree/bindings/arm/cpus.txt > @@ -185,6 +185,8 @@ nodes to be present and contain the properties described below. > "qcom,gcc-msm8660" > "qcom,kpss-acc-v1" > "qcom,kpss-acc-v2" > + "marvell,88de31-smp" - cpu-core handling for Berlin > + SoC from Marvell starting with 88de31 I would also go for something else, marvell,88de31xx-smp or marvell,berlin-smp. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/3] ARM: dts: document the berlin enable-method property 2014-04-03 8:08 ` [PATCH 2/3] ARM: dts: document the berlin enable-method property Antoine Ténart [not found] ` <1396512496-8030-3-git-send-email-antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2014-04-03 8:29 ` Alexandre Belloni @ 2014-04-03 9:02 ` Mark Rutland 2 siblings, 0 replies; 11+ messages in thread From: Mark Rutland @ 2014-04-03 9:02 UTC (permalink / raw) To: Antoine Ténart Cc: sebastian.hesselbarth@gmail.com, zmxu@marvell.com, jszhang@marvell.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alexandre.belloni@free-electrons.com, linux-arm-kernel@lists.infradead.org On Thu, Apr 03, 2014 at 09:08:15AM +0100, Antoine Ténart wrote: > Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com> > --- > Documentation/devicetree/bindings/arm/cpus.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt > index 333f4aea3029..a9e42a2dbc99 100644 > --- a/Documentation/devicetree/bindings/arm/cpus.txt > +++ b/Documentation/devicetree/bindings/arm/cpus.txt > @@ -185,6 +185,8 @@ nodes to be present and contain the properties described below. > "qcom,gcc-msm8660" > "qcom,kpss-acc-v1" > "qcom,kpss-acc-v2" > + "marvell,88de31-smp" - cpu-core handling for Berlin > + SoC from Marvell starting with 88de31 It would probably be best to add an enable-method directory and document what each of these mean (what's expected of the platform, what steps an OS should make to bring up and/or tear down CPUs). While it's nice to factor this out of the kernel, I'd like this to be better-defined such that it's clear what the expectations of each enable-method are. That ways it iss possible for OSs other than Linux to make use of the enable-method information (as it won't be an opaque reference to Linux internals), and we can have a clear definition of each enable-method independent of any implementation details. Going forward I would like to see fewer implementation-specific protocols for bringing up secondaries, and a move to fewer more standardised mechanisms like PSCI. I realise that might not be possible in all cases, but it would be nice to avoid a proliferation of enable-methods with single users. Cheers, Mark. ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 3/3] ARM: dts: berlin: add enable-method property in cpus node for smp [not found] ` <1396512496-8030-1-git-send-email-antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2014-04-03 8:08 ` [PATCH 1/3] ARM: berlin: use CPU_METHOD_OF_DECLARE for smp Antoine Ténart 2014-04-03 8:08 ` [PATCH 2/3] ARM: dts: document the berlin enable-method property Antoine Ténart @ 2014-04-03 8:08 ` Antoine Ténart 2 siblings, 0 replies; 11+ messages in thread From: Antoine Ténart @ 2014-04-03 8:08 UTC (permalink / raw) To: sebastian.hesselbarth-Re5JQEeQqe8AvxtiuMwx3w Cc: Antoine Ténart, alexandre.belloni-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8, zmxu-eYqpPyKDWXRBDgjK7y7TUQ, jszhang-eYqpPyKDWXRBDgjK7y7TUQ, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Signed-off-by: Antoine Ténart <antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> --- arch/arm/boot/dts/berlin2.dtsi | 1 + arch/arm/boot/dts/berlin2q.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/berlin2.dtsi b/arch/arm/boot/dts/berlin2.dtsi index 4d85312dc17a..596f6bd07677 100644 --- a/arch/arm/boot/dts/berlin2.dtsi +++ b/arch/arm/boot/dts/berlin2.dtsi @@ -21,6 +21,7 @@ cpus { #address-cells = <1>; #size-cells = <0>; + enable-method = "marvell,88de31-smp"; cpu@0 { compatible = "marvell,pj4b"; diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.dtsi index 86d8a2c49f38..5e8161aa21a3 100644 --- a/arch/arm/boot/dts/berlin2q.dtsi +++ b/arch/arm/boot/dts/berlin2q.dtsi @@ -17,6 +17,7 @@ cpus { #address-cells = <1>; #size-cells = <0>; + enable-method = "marvell,88de31-smp"; cpu@0 { compatible = "arm,cortex-a9"; -- 1.8.3.2 -- 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 related [flat|nested] 11+ messages in thread
end of thread, other threads:[~2014-04-03 9:40 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-04-03 8:08 [PATCH 0/3] ARM: berlin: convert smp to CPU_METHOD_OF_DECLARE Antoine Ténart [not found] ` <1396512496-8030-1-git-send-email-antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2014-04-03 8:08 ` [PATCH 1/3] ARM: berlin: use CPU_METHOD_OF_DECLARE for smp Antoine Ténart 2014-04-03 8:08 ` [PATCH 2/3] ARM: dts: document the berlin enable-method property Antoine Ténart [not found] ` <1396512496-8030-3-git-send-email-antoine.tenart-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2014-04-03 8:22 ` Jisheng Zhang 2014-04-03 8:54 ` Antoine Ténart 2014-04-03 9:14 ` Jisheng Zhang [not found] ` <533D21AF.2070508-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2014-04-03 9:14 ` Antoine Ténart [not found] ` <533D268E.7070502-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> 2014-04-03 9:40 ` Sebastian Hesselbarth 2014-04-03 8:29 ` Alexandre Belloni 2014-04-03 9:02 ` Mark Rutland 2014-04-03 8:08 ` [PATCH 3/3] ARM: dts: berlin: add enable-method property in cpus node for smp Antoine Ténart
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).