* [PATCH] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
@ 2014-03-26 10:27 ` Heiko Stübner
0 siblings, 0 replies; 20+ messages in thread
From: Heiko Stübner @ 2014-03-26 10:27 UTC (permalink / raw)
To: arm-DgEjT+Ai2ygdnm+yROfE0A
Cc: Linux ARM Kernel, devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring,
Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala
With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
to reference the relevant smp_ops in the board file, but instead it can
simply be set by the enable-method property of the cpu nodes.
Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
---
Documentation/devicetree/bindings/arm/cpus.txt | 1 +
arch/arm/boot/dts/rk3066a.dtsi | 1 +
arch/arm/boot/dts/rk3188.dtsi | 1 +
arch/arm/mach-rockchip/core.h | 2 --
arch/arm/mach-rockchip/platsmp.c | 3 ++-
arch/arm/mach-rockchip/rockchip.c | 1 -
6 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt
index 333f4ae..2501d5d 100644
--- a/Documentation/devicetree/bindings/arm/cpus.txt
+++ b/Documentation/devicetree/bindings/arm/cpus.txt
@@ -185,6 +185,7 @@ nodes to be present and contain the properties described below.
"qcom,gcc-msm8660"
"qcom,kpss-acc-v1"
"qcom,kpss-acc-v2"
+ "rockchip,rk3066-smp"
- cpu-release-addr
Usage: required for systems that have an "enable-method"
diff --git a/arch/arm/boot/dts/rk3066a.dtsi b/arch/arm/boot/dts/rk3066a.dtsi
index 4d4dfbb..90b354d 100644
--- a/arch/arm/boot/dts/rk3066a.dtsi
+++ b/arch/arm/boot/dts/rk3066a.dtsi
@@ -24,6 +24,7 @@
cpus {
#address-cells = <1>;
#size-cells = <0>;
+ enable-method = "rockchip,rk3066-smp";
cpu@0 {
device_type = "cpu";
diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi
index bb36596..7ad5103 100644
--- a/arch/arm/boot/dts/rk3188.dtsi
+++ b/arch/arm/boot/dts/rk3188.dtsi
@@ -24,6 +24,7 @@
cpus {
#address-cells = <1>;
#size-cells = <0>;
+ enable-method = "rockchip,rk3066-smp";
cpu@0 {
device_type = "cpu";
diff --git a/arch/arm/mach-rockchip/core.h b/arch/arm/mach-rockchip/core.h
index e2e7c9d..39bca96 100644
--- a/arch/arm/mach-rockchip/core.h
+++ b/arch/arm/mach-rockchip/core.h
@@ -18,5 +18,3 @@ extern char rockchip_secondary_trampoline_end;
extern unsigned long rockchip_boot_fn;
extern void rockchip_secondary_startup(void);
-
-extern struct smp_operations rockchip_smp_ops;
diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c
index dbfa5a2..a18b7f2 100644
--- a/arch/arm/mach-rockchip/platsmp.c
+++ b/arch/arm/mach-rockchip/platsmp.c
@@ -178,7 +178,8 @@ static void __init rockchip_smp_prepare_cpus(unsigned int max_cpus)
pmu_set_power_domain(0 + i, false);
}
-struct smp_operations rockchip_smp_ops __initdata = {
+static struct smp_operations rockchip_smp_ops __initdata = {
.smp_prepare_cpus = rockchip_smp_prepare_cpus,
.smp_boot_secondary = rockchip_boot_secondary,
};
+CPU_METHOD_OF_DECLARE(rk3066_smp, "rockchip,rk3066-smp", &rockchip_smp_ops);
diff --git a/arch/arm/mach-rockchip/rockchip.c b/arch/arm/mach-rockchip/rockchip.c
index d211d6f..4499b0a 100644
--- a/arch/arm/mach-rockchip/rockchip.c
+++ b/arch/arm/mach-rockchip/rockchip.c
@@ -39,7 +39,6 @@ static const char * const rockchip_board_dt_compat[] = {
};
DT_MACHINE_START(ROCKCHIP_DT, "Rockchip Cortex-A9 (Device Tree)")
- .smp = smp_ops(rockchip_smp_ops),
.init_machine = rockchip_dt_init,
.dt_compat = rockchip_board_dt_compat,
MACHINE_END
--
1.9.0
--
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] 20+ messages in thread
* [PATCH] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
@ 2014-03-26 10:27 ` Heiko Stübner
0 siblings, 0 replies; 20+ messages in thread
From: Heiko Stübner @ 2014-03-26 10:27 UTC (permalink / raw)
To: linux-arm-kernel
With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
to reference the relevant smp_ops in the board file, but instead it can
simply be set by the enable-method property of the cpu nodes.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
Documentation/devicetree/bindings/arm/cpus.txt | 1 +
arch/arm/boot/dts/rk3066a.dtsi | 1 +
arch/arm/boot/dts/rk3188.dtsi | 1 +
arch/arm/mach-rockchip/core.h | 2 --
arch/arm/mach-rockchip/platsmp.c | 3 ++-
arch/arm/mach-rockchip/rockchip.c | 1 -
6 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt
index 333f4ae..2501d5d 100644
--- a/Documentation/devicetree/bindings/arm/cpus.txt
+++ b/Documentation/devicetree/bindings/arm/cpus.txt
@@ -185,6 +185,7 @@ nodes to be present and contain the properties described below.
"qcom,gcc-msm8660"
"qcom,kpss-acc-v1"
"qcom,kpss-acc-v2"
+ "rockchip,rk3066-smp"
- cpu-release-addr
Usage: required for systems that have an "enable-method"
diff --git a/arch/arm/boot/dts/rk3066a.dtsi b/arch/arm/boot/dts/rk3066a.dtsi
index 4d4dfbb..90b354d 100644
--- a/arch/arm/boot/dts/rk3066a.dtsi
+++ b/arch/arm/boot/dts/rk3066a.dtsi
@@ -24,6 +24,7 @@
cpus {
#address-cells = <1>;
#size-cells = <0>;
+ enable-method = "rockchip,rk3066-smp";
cpu at 0 {
device_type = "cpu";
diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi
index bb36596..7ad5103 100644
--- a/arch/arm/boot/dts/rk3188.dtsi
+++ b/arch/arm/boot/dts/rk3188.dtsi
@@ -24,6 +24,7 @@
cpus {
#address-cells = <1>;
#size-cells = <0>;
+ enable-method = "rockchip,rk3066-smp";
cpu at 0 {
device_type = "cpu";
diff --git a/arch/arm/mach-rockchip/core.h b/arch/arm/mach-rockchip/core.h
index e2e7c9d..39bca96 100644
--- a/arch/arm/mach-rockchip/core.h
+++ b/arch/arm/mach-rockchip/core.h
@@ -18,5 +18,3 @@ extern char rockchip_secondary_trampoline_end;
extern unsigned long rockchip_boot_fn;
extern void rockchip_secondary_startup(void);
-
-extern struct smp_operations rockchip_smp_ops;
diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c
index dbfa5a2..a18b7f2 100644
--- a/arch/arm/mach-rockchip/platsmp.c
+++ b/arch/arm/mach-rockchip/platsmp.c
@@ -178,7 +178,8 @@ static void __init rockchip_smp_prepare_cpus(unsigned int max_cpus)
pmu_set_power_domain(0 + i, false);
}
-struct smp_operations rockchip_smp_ops __initdata = {
+static struct smp_operations rockchip_smp_ops __initdata = {
.smp_prepare_cpus = rockchip_smp_prepare_cpus,
.smp_boot_secondary = rockchip_boot_secondary,
};
+CPU_METHOD_OF_DECLARE(rk3066_smp, "rockchip,rk3066-smp", &rockchip_smp_ops);
diff --git a/arch/arm/mach-rockchip/rockchip.c b/arch/arm/mach-rockchip/rockchip.c
index d211d6f..4499b0a 100644
--- a/arch/arm/mach-rockchip/rockchip.c
+++ b/arch/arm/mach-rockchip/rockchip.c
@@ -39,7 +39,6 @@ static const char * const rockchip_board_dt_compat[] = {
};
DT_MACHINE_START(ROCKCHIP_DT, "Rockchip Cortex-A9 (Device Tree)")
- .smp = smp_ops(rockchip_smp_ops),
.init_machine = rockchip_dt_init,
.dt_compat = rockchip_board_dt_compat,
MACHINE_END
--
1.9.0
^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: [PATCH] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
2014-03-26 10:27 ` Heiko Stübner
@ 2014-03-26 11:00 ` Mark Rutland
-1 siblings, 0 replies; 20+ messages in thread
From: Mark Rutland @ 2014-03-26 11:00 UTC (permalink / raw)
To: Heiko Stübner
Cc: arm-DgEjT+Ai2ygdnm+yROfE0A, Linux ARM Kernel,
devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
Ian Campbell, Kumar Gala
On Wed, Mar 26, 2014 at 10:27:35AM +0000, Heiko Stübner wrote:
> With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
> to reference the relevant smp_ops in the board file, but instead it can
> simply be set by the enable-method property of the cpu nodes.
>
> Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
> ---
> Documentation/devicetree/bindings/arm/cpus.txt | 1 +
> arch/arm/boot/dts/rk3066a.dtsi | 1 +
> arch/arm/boot/dts/rk3188.dtsi | 1 +
> arch/arm/mach-rockchip/core.h | 2 --
> arch/arm/mach-rockchip/platsmp.c | 3 ++-
> arch/arm/mach-rockchip/rockchip.c | 1 -
> 6 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt
> index 333f4ae..2501d5d 100644
> --- a/Documentation/devicetree/bindings/arm/cpus.txt
> +++ b/Documentation/devicetree/bindings/arm/cpus.txt
> @@ -185,6 +185,7 @@ nodes to be present and contain the properties described below.
> "qcom,gcc-msm8660"
> "qcom,kpss-acc-v1"
> "qcom,kpss-acc-v2"
> + "rockchip,rk3066-smp"
We should document what what these actually mean, so as to be a hardware
description and not a Linux internals description.
Mark.
>
> - cpu-release-addr
> Usage: required for systems that have an "enable-method"
> diff --git a/arch/arm/boot/dts/rk3066a.dtsi b/arch/arm/boot/dts/rk3066a.dtsi
> index 4d4dfbb..90b354d 100644
> --- a/arch/arm/boot/dts/rk3066a.dtsi
> +++ b/arch/arm/boot/dts/rk3066a.dtsi
> @@ -24,6 +24,7 @@
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;
> + enable-method = "rockchip,rk3066-smp";
>
> cpu@0 {
> device_type = "cpu";
> diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi
> index bb36596..7ad5103 100644
> --- a/arch/arm/boot/dts/rk3188.dtsi
> +++ b/arch/arm/boot/dts/rk3188.dtsi
> @@ -24,6 +24,7 @@
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;
> + enable-method = "rockchip,rk3066-smp";
>
> cpu@0 {
> device_type = "cpu";
> diff --git a/arch/arm/mach-rockchip/core.h b/arch/arm/mach-rockchip/core.h
> index e2e7c9d..39bca96 100644
> --- a/arch/arm/mach-rockchip/core.h
> +++ b/arch/arm/mach-rockchip/core.h
> @@ -18,5 +18,3 @@ extern char rockchip_secondary_trampoline_end;
>
> extern unsigned long rockchip_boot_fn;
> extern void rockchip_secondary_startup(void);
> -
> -extern struct smp_operations rockchip_smp_ops;
> diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c
> index dbfa5a2..a18b7f2 100644
> --- a/arch/arm/mach-rockchip/platsmp.c
> +++ b/arch/arm/mach-rockchip/platsmp.c
> @@ -178,7 +178,8 @@ static void __init rockchip_smp_prepare_cpus(unsigned int max_cpus)
> pmu_set_power_domain(0 + i, false);
> }
>
> -struct smp_operations rockchip_smp_ops __initdata = {
> +static struct smp_operations rockchip_smp_ops __initdata = {
> .smp_prepare_cpus = rockchip_smp_prepare_cpus,
> .smp_boot_secondary = rockchip_boot_secondary,
> };
> +CPU_METHOD_OF_DECLARE(rk3066_smp, "rockchip,rk3066-smp", &rockchip_smp_ops);
> diff --git a/arch/arm/mach-rockchip/rockchip.c b/arch/arm/mach-rockchip/rockchip.c
> index d211d6f..4499b0a 100644
> --- a/arch/arm/mach-rockchip/rockchip.c
> +++ b/arch/arm/mach-rockchip/rockchip.c
> @@ -39,7 +39,6 @@ static const char * const rockchip_board_dt_compat[] = {
> };
>
> DT_MACHINE_START(ROCKCHIP_DT, "Rockchip Cortex-A9 (Device Tree)")
> - .smp = smp_ops(rockchip_smp_ops),
> .init_machine = rockchip_dt_init,
> .dt_compat = rockchip_board_dt_compat,
> MACHINE_END
> --
> 1.9.0
>
>
> --
> 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
>
>
--
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] 20+ messages in thread
* [PATCH] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
@ 2014-03-26 11:00 ` Mark Rutland
0 siblings, 0 replies; 20+ messages in thread
From: Mark Rutland @ 2014-03-26 11:00 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Mar 26, 2014 at 10:27:35AM +0000, Heiko St?bner wrote:
> With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
> to reference the relevant smp_ops in the board file, but instead it can
> simply be set by the enable-method property of the cpu nodes.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---
> Documentation/devicetree/bindings/arm/cpus.txt | 1 +
> arch/arm/boot/dts/rk3066a.dtsi | 1 +
> arch/arm/boot/dts/rk3188.dtsi | 1 +
> arch/arm/mach-rockchip/core.h | 2 --
> arch/arm/mach-rockchip/platsmp.c | 3 ++-
> arch/arm/mach-rockchip/rockchip.c | 1 -
> 6 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt
> index 333f4ae..2501d5d 100644
> --- a/Documentation/devicetree/bindings/arm/cpus.txt
> +++ b/Documentation/devicetree/bindings/arm/cpus.txt
> @@ -185,6 +185,7 @@ nodes to be present and contain the properties described below.
> "qcom,gcc-msm8660"
> "qcom,kpss-acc-v1"
> "qcom,kpss-acc-v2"
> + "rockchip,rk3066-smp"
We should document what what these actually mean, so as to be a hardware
description and not a Linux internals description.
Mark.
>
> - cpu-release-addr
> Usage: required for systems that have an "enable-method"
> diff --git a/arch/arm/boot/dts/rk3066a.dtsi b/arch/arm/boot/dts/rk3066a.dtsi
> index 4d4dfbb..90b354d 100644
> --- a/arch/arm/boot/dts/rk3066a.dtsi
> +++ b/arch/arm/boot/dts/rk3066a.dtsi
> @@ -24,6 +24,7 @@
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;
> + enable-method = "rockchip,rk3066-smp";
>
> cpu at 0 {
> device_type = "cpu";
> diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi
> index bb36596..7ad5103 100644
> --- a/arch/arm/boot/dts/rk3188.dtsi
> +++ b/arch/arm/boot/dts/rk3188.dtsi
> @@ -24,6 +24,7 @@
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;
> + enable-method = "rockchip,rk3066-smp";
>
> cpu at 0 {
> device_type = "cpu";
> diff --git a/arch/arm/mach-rockchip/core.h b/arch/arm/mach-rockchip/core.h
> index e2e7c9d..39bca96 100644
> --- a/arch/arm/mach-rockchip/core.h
> +++ b/arch/arm/mach-rockchip/core.h
> @@ -18,5 +18,3 @@ extern char rockchip_secondary_trampoline_end;
>
> extern unsigned long rockchip_boot_fn;
> extern void rockchip_secondary_startup(void);
> -
> -extern struct smp_operations rockchip_smp_ops;
> diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c
> index dbfa5a2..a18b7f2 100644
> --- a/arch/arm/mach-rockchip/platsmp.c
> +++ b/arch/arm/mach-rockchip/platsmp.c
> @@ -178,7 +178,8 @@ static void __init rockchip_smp_prepare_cpus(unsigned int max_cpus)
> pmu_set_power_domain(0 + i, false);
> }
>
> -struct smp_operations rockchip_smp_ops __initdata = {
> +static struct smp_operations rockchip_smp_ops __initdata = {
> .smp_prepare_cpus = rockchip_smp_prepare_cpus,
> .smp_boot_secondary = rockchip_boot_secondary,
> };
> +CPU_METHOD_OF_DECLARE(rk3066_smp, "rockchip,rk3066-smp", &rockchip_smp_ops);
> diff --git a/arch/arm/mach-rockchip/rockchip.c b/arch/arm/mach-rockchip/rockchip.c
> index d211d6f..4499b0a 100644
> --- a/arch/arm/mach-rockchip/rockchip.c
> +++ b/arch/arm/mach-rockchip/rockchip.c
> @@ -39,7 +39,6 @@ static const char * const rockchip_board_dt_compat[] = {
> };
>
> DT_MACHINE_START(ROCKCHIP_DT, "Rockchip Cortex-A9 (Device Tree)")
> - .smp = smp_ops(rockchip_smp_ops),
> .init_machine = rockchip_dt_init,
> .dt_compat = rockchip_board_dt_compat,
> MACHINE_END
> --
> 1.9.0
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
2014-03-26 11:00 ` Mark Rutland
@ 2014-03-26 12:03 ` Heiko Stübner
-1 siblings, 0 replies; 20+ messages in thread
From: Heiko Stübner @ 2014-03-26 12:03 UTC (permalink / raw)
To: Mark Rutland
Cc: arm-DgEjT+Ai2ygdnm+yROfE0A, Linux ARM Kernel,
devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
Ian Campbell, Kumar Gala
Am Mittwoch, 26. März 2014, 11:00:24 schrieb Mark Rutland:
> On Wed, Mar 26, 2014 at 10:27:35AM +0000, Heiko Stübner wrote:
> > With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
> > to reference the relevant smp_ops in the board file, but instead it can
> > simply be set by the enable-method property of the cpu nodes.
> >
> > Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
> > ---
> >
> > Documentation/devicetree/bindings/arm/cpus.txt | 1 +
> > arch/arm/boot/dts/rk3066a.dtsi | 1 +
> > arch/arm/boot/dts/rk3188.dtsi | 1 +
> > arch/arm/mach-rockchip/core.h | 2 --
> > arch/arm/mach-rockchip/platsmp.c | 3 ++-
> > arch/arm/mach-rockchip/rockchip.c | 1 -
> > 6 files changed, 5 insertions(+), 4 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/arm/cpus.txt
> > b/Documentation/devicetree/bindings/arm/cpus.txt index 333f4ae..2501d5d
> > 100644
> > --- a/Documentation/devicetree/bindings/arm/cpus.txt
> > +++ b/Documentation/devicetree/bindings/arm/cpus.txt
> > @@ -185,6 +185,7 @@ nodes to be present and contain the properties
> > described below.>
> > "qcom,gcc-msm8660"
> > "qcom,kpss-acc-v1"
> > "qcom,kpss-acc-v2"
> >
> > + "rockchip,rk3066-smp"
>
> We should document what what these actually mean, so as to be a hardware
> description and not a Linux internals description.
is something like
"rockchip,rk3066-smp" - cpu-core handling used by SoCs
from Rockchip starting with rk3066
enough, or should it contain more data?
Thanks
Heiko
--
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] 20+ messages in thread
* [PATCH] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
@ 2014-03-26 12:03 ` Heiko Stübner
0 siblings, 0 replies; 20+ messages in thread
From: Heiko Stübner @ 2014-03-26 12:03 UTC (permalink / raw)
To: linux-arm-kernel
Am Mittwoch, 26. M?rz 2014, 11:00:24 schrieb Mark Rutland:
> On Wed, Mar 26, 2014 at 10:27:35AM +0000, Heiko St?bner wrote:
> > With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
> > to reference the relevant smp_ops in the board file, but instead it can
> > simply be set by the enable-method property of the cpu nodes.
> >
> > Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> > ---
> >
> > Documentation/devicetree/bindings/arm/cpus.txt | 1 +
> > arch/arm/boot/dts/rk3066a.dtsi | 1 +
> > arch/arm/boot/dts/rk3188.dtsi | 1 +
> > arch/arm/mach-rockchip/core.h | 2 --
> > arch/arm/mach-rockchip/platsmp.c | 3 ++-
> > arch/arm/mach-rockchip/rockchip.c | 1 -
> > 6 files changed, 5 insertions(+), 4 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/arm/cpus.txt
> > b/Documentation/devicetree/bindings/arm/cpus.txt index 333f4ae..2501d5d
> > 100644
> > --- a/Documentation/devicetree/bindings/arm/cpus.txt
> > +++ b/Documentation/devicetree/bindings/arm/cpus.txt
> > @@ -185,6 +185,7 @@ nodes to be present and contain the properties
> > described below.>
> > "qcom,gcc-msm8660"
> > "qcom,kpss-acc-v1"
> > "qcom,kpss-acc-v2"
> >
> > + "rockchip,rk3066-smp"
>
> We should document what what these actually mean, so as to be a hardware
> description and not a Linux internals description.
is something like
"rockchip,rk3066-smp" - cpu-core handling used by SoCs
from Rockchip starting with rk3066
enough, or should it contain more data?
Thanks
Heiko
^ permalink raw reply [flat|nested] 20+ messages in thread
* [PATCH v2] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
2014-03-26 12:03 ` Heiko Stübner
@ 2014-03-27 0:06 ` Heiko Stübner
-1 siblings, 0 replies; 20+ messages in thread
From: Heiko Stübner @ 2014-03-27 0:06 UTC (permalink / raw)
To: Mark Rutland, arm-DgEjT+Ai2ygdnm+yROfE0A
Cc: Linux ARM Kernel, devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring,
Pawel Moll, Ian Campbell, Kumar Gala
With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
to reference the relevant smp_ops in the board file, but instead it can
simply be set by the enable-method property of the cpu nodes.
Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
---
changes since v1:
- add a short description to the enable-method binding
Documentation/devicetree/bindings/arm/cpus.txt | 2 ++
arch/arm/boot/dts/rk3066a.dtsi | 1 +
arch/arm/boot/dts/rk3188.dtsi | 1 +
arch/arm/mach-rockchip/core.h | 2 --
arch/arm/mach-rockchip/platsmp.c | 3 ++-
arch/arm/mach-rockchip/rockchip.c | 1 -
6 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt
index 333f4ae..f52a9ac 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"
+ "rockchip,rk3066-smp" - cpu-core handling of Socs
+ from Rockchip starting with rk3066
- cpu-release-addr
Usage: required for systems that have an "enable-method"
diff --git a/arch/arm/boot/dts/rk3066a.dtsi b/arch/arm/boot/dts/rk3066a.dtsi
index 4d4dfbb..90b354d 100644
--- a/arch/arm/boot/dts/rk3066a.dtsi
+++ b/arch/arm/boot/dts/rk3066a.dtsi
@@ -24,6 +24,7 @@
cpus {
#address-cells = <1>;
#size-cells = <0>;
+ enable-method = "rockchip,rk3066-smp";
cpu@0 {
device_type = "cpu";
diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi
index bb36596..7ad5103 100644
--- a/arch/arm/boot/dts/rk3188.dtsi
+++ b/arch/arm/boot/dts/rk3188.dtsi
@@ -24,6 +24,7 @@
cpus {
#address-cells = <1>;
#size-cells = <0>;
+ enable-method = "rockchip,rk3066-smp";
cpu@0 {
device_type = "cpu";
diff --git a/arch/arm/mach-rockchip/core.h b/arch/arm/mach-rockchip/core.h
index e2e7c9d..39bca96 100644
--- a/arch/arm/mach-rockchip/core.h
+++ b/arch/arm/mach-rockchip/core.h
@@ -18,5 +18,3 @@ extern char rockchip_secondary_trampoline_end;
extern unsigned long rockchip_boot_fn;
extern void rockchip_secondary_startup(void);
-
-extern struct smp_operations rockchip_smp_ops;
diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c
index dbfa5a2..a18b7f2 100644
--- a/arch/arm/mach-rockchip/platsmp.c
+++ b/arch/arm/mach-rockchip/platsmp.c
@@ -178,7 +178,8 @@ static void __init rockchip_smp_prepare_cpus(unsigned int max_cpus)
pmu_set_power_domain(0 + i, false);
}
-struct smp_operations rockchip_smp_ops __initdata = {
+static struct smp_operations rockchip_smp_ops __initdata = {
.smp_prepare_cpus = rockchip_smp_prepare_cpus,
.smp_boot_secondary = rockchip_boot_secondary,
};
+CPU_METHOD_OF_DECLARE(rk3066_smp, "rockchip,rk3066-smp", &rockchip_smp_ops);
diff --git a/arch/arm/mach-rockchip/rockchip.c b/arch/arm/mach-rockchip/rockchip.c
index d211d6f..4499b0a 100644
--- a/arch/arm/mach-rockchip/rockchip.c
+++ b/arch/arm/mach-rockchip/rockchip.c
@@ -39,7 +39,6 @@ static const char * const rockchip_board_dt_compat[] = {
};
DT_MACHINE_START(ROCKCHIP_DT, "Rockchip Cortex-A9 (Device Tree)")
- .smp = smp_ops(rockchip_smp_ops),
.init_machine = rockchip_dt_init,
.dt_compat = rockchip_board_dt_compat,
MACHINE_END
--
1.9.0
--
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] 20+ messages in thread
* [PATCH v2] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
@ 2014-03-27 0:06 ` Heiko Stübner
0 siblings, 0 replies; 20+ messages in thread
From: Heiko Stübner @ 2014-03-27 0:06 UTC (permalink / raw)
To: linux-arm-kernel
With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
to reference the relevant smp_ops in the board file, but instead it can
simply be set by the enable-method property of the cpu nodes.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
changes since v1:
- add a short description to the enable-method binding
Documentation/devicetree/bindings/arm/cpus.txt | 2 ++
arch/arm/boot/dts/rk3066a.dtsi | 1 +
arch/arm/boot/dts/rk3188.dtsi | 1 +
arch/arm/mach-rockchip/core.h | 2 --
arch/arm/mach-rockchip/platsmp.c | 3 ++-
arch/arm/mach-rockchip/rockchip.c | 1 -
6 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt
index 333f4ae..f52a9ac 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"
+ "rockchip,rk3066-smp" - cpu-core handling of Socs
+ from Rockchip starting with rk3066
- cpu-release-addr
Usage: required for systems that have an "enable-method"
diff --git a/arch/arm/boot/dts/rk3066a.dtsi b/arch/arm/boot/dts/rk3066a.dtsi
index 4d4dfbb..90b354d 100644
--- a/arch/arm/boot/dts/rk3066a.dtsi
+++ b/arch/arm/boot/dts/rk3066a.dtsi
@@ -24,6 +24,7 @@
cpus {
#address-cells = <1>;
#size-cells = <0>;
+ enable-method = "rockchip,rk3066-smp";
cpu at 0 {
device_type = "cpu";
diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi
index bb36596..7ad5103 100644
--- a/arch/arm/boot/dts/rk3188.dtsi
+++ b/arch/arm/boot/dts/rk3188.dtsi
@@ -24,6 +24,7 @@
cpus {
#address-cells = <1>;
#size-cells = <0>;
+ enable-method = "rockchip,rk3066-smp";
cpu at 0 {
device_type = "cpu";
diff --git a/arch/arm/mach-rockchip/core.h b/arch/arm/mach-rockchip/core.h
index e2e7c9d..39bca96 100644
--- a/arch/arm/mach-rockchip/core.h
+++ b/arch/arm/mach-rockchip/core.h
@@ -18,5 +18,3 @@ extern char rockchip_secondary_trampoline_end;
extern unsigned long rockchip_boot_fn;
extern void rockchip_secondary_startup(void);
-
-extern struct smp_operations rockchip_smp_ops;
diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c
index dbfa5a2..a18b7f2 100644
--- a/arch/arm/mach-rockchip/platsmp.c
+++ b/arch/arm/mach-rockchip/platsmp.c
@@ -178,7 +178,8 @@ static void __init rockchip_smp_prepare_cpus(unsigned int max_cpus)
pmu_set_power_domain(0 + i, false);
}
-struct smp_operations rockchip_smp_ops __initdata = {
+static struct smp_operations rockchip_smp_ops __initdata = {
.smp_prepare_cpus = rockchip_smp_prepare_cpus,
.smp_boot_secondary = rockchip_boot_secondary,
};
+CPU_METHOD_OF_DECLARE(rk3066_smp, "rockchip,rk3066-smp", &rockchip_smp_ops);
diff --git a/arch/arm/mach-rockchip/rockchip.c b/arch/arm/mach-rockchip/rockchip.c
index d211d6f..4499b0a 100644
--- a/arch/arm/mach-rockchip/rockchip.c
+++ b/arch/arm/mach-rockchip/rockchip.c
@@ -39,7 +39,6 @@ static const char * const rockchip_board_dt_compat[] = {
};
DT_MACHINE_START(ROCKCHIP_DT, "Rockchip Cortex-A9 (Device Tree)")
- .smp = smp_ops(rockchip_smp_ops),
.init_machine = rockchip_dt_init,
.dt_compat = rockchip_board_dt_compat,
MACHINE_END
--
1.9.0
^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: [PATCH v2] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
2014-03-27 0:06 ` Heiko Stübner
@ 2014-05-12 17:17 ` Heiko Stübner
-1 siblings, 0 replies; 20+ messages in thread
From: Heiko Stübner @ 2014-05-12 17:17 UTC (permalink / raw)
To: Mark Rutland, arm-DgEjT+Ai2ygdnm+yROfE0A, Rob Herring,
Pawel Moll, Ian Campbell, Kumar Gala
Cc: Linux ARM Kernel, devicetree-u79uwXL29TY76Z2rM5mHXA
Am Donnerstag, 27. März 2014, 01:06:32 schrieb Heiko Stübner:
> With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
> to reference the relevant smp_ops in the board file, but instead it can
> simply be set by the enable-method property of the cpu nodes.
>
> Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
more responses to this? [or maybe even an ack :-) ? ]
Thanks
Heiko
> ---
> changes since v1:
> - add a short description to the enable-method binding
>
> Documentation/devicetree/bindings/arm/cpus.txt | 2 ++
> arch/arm/boot/dts/rk3066a.dtsi | 1 +
> arch/arm/boot/dts/rk3188.dtsi | 1 +
> arch/arm/mach-rockchip/core.h | 2 --
> arch/arm/mach-rockchip/platsmp.c | 3 ++-
> arch/arm/mach-rockchip/rockchip.c | 1 -
> 6 files changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/arm/cpus.txt
> b/Documentation/devicetree/bindings/arm/cpus.txt index 333f4ae..f52a9ac
> 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"
> + "rockchip,rk3066-smp" - cpu-core handling of Socs
> + from Rockchip starting with rk3066
>
> - cpu-release-addr
> Usage: required for systems that have an "enable-method"
> diff --git a/arch/arm/boot/dts/rk3066a.dtsi b/arch/arm/boot/dts/rk3066a.dtsi
> index 4d4dfbb..90b354d 100644
> --- a/arch/arm/boot/dts/rk3066a.dtsi
> +++ b/arch/arm/boot/dts/rk3066a.dtsi
> @@ -24,6 +24,7 @@
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;
> + enable-method = "rockchip,rk3066-smp";
>
> cpu@0 {
> device_type = "cpu";
> diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi
> index bb36596..7ad5103 100644
> --- a/arch/arm/boot/dts/rk3188.dtsi
> +++ b/arch/arm/boot/dts/rk3188.dtsi
> @@ -24,6 +24,7 @@
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;
> + enable-method = "rockchip,rk3066-smp";
>
> cpu@0 {
> device_type = "cpu";
> diff --git a/arch/arm/mach-rockchip/core.h b/arch/arm/mach-rockchip/core.h
> index e2e7c9d..39bca96 100644
> --- a/arch/arm/mach-rockchip/core.h
> +++ b/arch/arm/mach-rockchip/core.h
> @@ -18,5 +18,3 @@ extern char rockchip_secondary_trampoline_end;
>
> extern unsigned long rockchip_boot_fn;
> extern void rockchip_secondary_startup(void);
> -
> -extern struct smp_operations rockchip_smp_ops;
> diff --git a/arch/arm/mach-rockchip/platsmp.c
> b/arch/arm/mach-rockchip/platsmp.c index dbfa5a2..a18b7f2 100644
> --- a/arch/arm/mach-rockchip/platsmp.c
> +++ b/arch/arm/mach-rockchip/platsmp.c
> @@ -178,7 +178,8 @@ static void __init rockchip_smp_prepare_cpus(unsigned
> int max_cpus) pmu_set_power_domain(0 + i, false);
> }
>
> -struct smp_operations rockchip_smp_ops __initdata = {
> +static struct smp_operations rockchip_smp_ops __initdata = {
> .smp_prepare_cpus = rockchip_smp_prepare_cpus,
> .smp_boot_secondary = rockchip_boot_secondary,
> };
> +CPU_METHOD_OF_DECLARE(rk3066_smp, "rockchip,rk3066-smp",
> &rockchip_smp_ops); diff --git a/arch/arm/mach-rockchip/rockchip.c
> b/arch/arm/mach-rockchip/rockchip.c index d211d6f..4499b0a 100644
> --- a/arch/arm/mach-rockchip/rockchip.c
> +++ b/arch/arm/mach-rockchip/rockchip.c
> @@ -39,7 +39,6 @@ static const char * const rockchip_board_dt_compat[] = {
> };
>
> DT_MACHINE_START(ROCKCHIP_DT, "Rockchip Cortex-A9 (Device Tree)")
> - .smp = smp_ops(rockchip_smp_ops),
> .init_machine = rockchip_dt_init,
> .dt_compat = rockchip_board_dt_compat,
> MACHINE_END
--
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] 20+ messages in thread
* [PATCH v2] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
@ 2014-05-12 17:17 ` Heiko Stübner
0 siblings, 0 replies; 20+ messages in thread
From: Heiko Stübner @ 2014-05-12 17:17 UTC (permalink / raw)
To: linux-arm-kernel
Am Donnerstag, 27. M?rz 2014, 01:06:32 schrieb Heiko St?bner:
> With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
> to reference the relevant smp_ops in the board file, but instead it can
> simply be set by the enable-method property of the cpu nodes.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
more responses to this? [or maybe even an ack :-) ? ]
Thanks
Heiko
> ---
> changes since v1:
> - add a short description to the enable-method binding
>
> Documentation/devicetree/bindings/arm/cpus.txt | 2 ++
> arch/arm/boot/dts/rk3066a.dtsi | 1 +
> arch/arm/boot/dts/rk3188.dtsi | 1 +
> arch/arm/mach-rockchip/core.h | 2 --
> arch/arm/mach-rockchip/platsmp.c | 3 ++-
> arch/arm/mach-rockchip/rockchip.c | 1 -
> 6 files changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/arm/cpus.txt
> b/Documentation/devicetree/bindings/arm/cpus.txt index 333f4ae..f52a9ac
> 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"
> + "rockchip,rk3066-smp" - cpu-core handling of Socs
> + from Rockchip starting with rk3066
>
> - cpu-release-addr
> Usage: required for systems that have an "enable-method"
> diff --git a/arch/arm/boot/dts/rk3066a.dtsi b/arch/arm/boot/dts/rk3066a.dtsi
> index 4d4dfbb..90b354d 100644
> --- a/arch/arm/boot/dts/rk3066a.dtsi
> +++ b/arch/arm/boot/dts/rk3066a.dtsi
> @@ -24,6 +24,7 @@
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;
> + enable-method = "rockchip,rk3066-smp";
>
> cpu at 0 {
> device_type = "cpu";
> diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi
> index bb36596..7ad5103 100644
> --- a/arch/arm/boot/dts/rk3188.dtsi
> +++ b/arch/arm/boot/dts/rk3188.dtsi
> @@ -24,6 +24,7 @@
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;
> + enable-method = "rockchip,rk3066-smp";
>
> cpu at 0 {
> device_type = "cpu";
> diff --git a/arch/arm/mach-rockchip/core.h b/arch/arm/mach-rockchip/core.h
> index e2e7c9d..39bca96 100644
> --- a/arch/arm/mach-rockchip/core.h
> +++ b/arch/arm/mach-rockchip/core.h
> @@ -18,5 +18,3 @@ extern char rockchip_secondary_trampoline_end;
>
> extern unsigned long rockchip_boot_fn;
> extern void rockchip_secondary_startup(void);
> -
> -extern struct smp_operations rockchip_smp_ops;
> diff --git a/arch/arm/mach-rockchip/platsmp.c
> b/arch/arm/mach-rockchip/platsmp.c index dbfa5a2..a18b7f2 100644
> --- a/arch/arm/mach-rockchip/platsmp.c
> +++ b/arch/arm/mach-rockchip/platsmp.c
> @@ -178,7 +178,8 @@ static void __init rockchip_smp_prepare_cpus(unsigned
> int max_cpus) pmu_set_power_domain(0 + i, false);
> }
>
> -struct smp_operations rockchip_smp_ops __initdata = {
> +static struct smp_operations rockchip_smp_ops __initdata = {
> .smp_prepare_cpus = rockchip_smp_prepare_cpus,
> .smp_boot_secondary = rockchip_boot_secondary,
> };
> +CPU_METHOD_OF_DECLARE(rk3066_smp, "rockchip,rk3066-smp",
> &rockchip_smp_ops); diff --git a/arch/arm/mach-rockchip/rockchip.c
> b/arch/arm/mach-rockchip/rockchip.c index d211d6f..4499b0a 100644
> --- a/arch/arm/mach-rockchip/rockchip.c
> +++ b/arch/arm/mach-rockchip/rockchip.c
> @@ -39,7 +39,6 @@ static const char * const rockchip_board_dt_compat[] = {
> };
>
> DT_MACHINE_START(ROCKCHIP_DT, "Rockchip Cortex-A9 (Device Tree)")
> - .smp = smp_ops(rockchip_smp_ops),
> .init_machine = rockchip_dt_init,
> .dt_compat = rockchip_board_dt_compat,
> MACHINE_END
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH v2] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
2014-05-12 17:17 ` Heiko Stübner
@ 2014-05-16 22:54 ` Olof Johansson
-1 siblings, 0 replies; 20+ messages in thread
From: Olof Johansson @ 2014-05-16 22:54 UTC (permalink / raw)
To: Heiko Stübner
Cc: Mark Rutland, arm-DgEjT+Ai2ygdnm+yROfE0A, Rob Herring,
Pawel Moll, Ian Campbell, Kumar Gala, Linux ARM Kernel,
devicetree-u79uwXL29TY76Z2rM5mHXA
On Mon, May 12, 2014 at 07:17:46PM +0200, Heiko Stübner wrote:
> Am Donnerstag, 27. März 2014, 01:06:32 schrieb Heiko Stübner:
> > With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
> > to reference the relevant smp_ops in the board file, but instead it can
> > simply be set by the enable-method property of the cpu nodes.
> >
> > Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
>
> more responses to this? [or maybe even an ack :-) ? ]
Looks reasonable to me:
Acked-by: Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>
--
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] 20+ messages in thread
* [PATCH v2] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
@ 2014-05-16 22:54 ` Olof Johansson
0 siblings, 0 replies; 20+ messages in thread
From: Olof Johansson @ 2014-05-16 22:54 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, May 12, 2014 at 07:17:46PM +0200, Heiko St?bner wrote:
> Am Donnerstag, 27. M?rz 2014, 01:06:32 schrieb Heiko St?bner:
> > With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
> > to reference the relevant smp_ops in the board file, but instead it can
> > simply be set by the enable-method property of the cpu nodes.
> >
> > Signed-off-by: Heiko Stuebner <heiko@sntech.de>
>
> more responses to this? [or maybe even an ack :-) ? ]
Looks reasonable to me:
Acked-by: Olof Johansson <olof@lixom.net>
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH v2] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
2014-05-16 22:54 ` Olof Johansson
@ 2014-05-17 0:16 ` Heiko Stübner
-1 siblings, 0 replies; 20+ messages in thread
From: Heiko Stübner @ 2014-05-17 0:16 UTC (permalink / raw)
To: Olof Johansson
Cc: Mark Rutland, arm-DgEjT+Ai2ygdnm+yROfE0A, Rob Herring,
Pawel Moll, Ian Campbell, Kumar Gala, Linux ARM Kernel,
devicetree-u79uwXL29TY76Z2rM5mHXA
Hi Olof,
Am Freitag, 16. Mai 2014, 15:54:22 schrieb Olof Johansson:
> On Mon, May 12, 2014 at 07:17:46PM +0200, Heiko Stübner wrote:
> > Am Donnerstag, 27. März 2014, 01:06:32 schrieb Heiko Stübner:
> > > With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
> > > to reference the relevant smp_ops in the board file, but instead it can
> > > simply be set by the enable-method property of the cpu nodes.
> > >
> > > Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
> >
> > more responses to this? [or maybe even an ack :-) ? ]
>
> Looks reasonable to me:
>
> Acked-by: Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>
or you could simply apply it to arm-soc directly :-)
Because apart from the pull request I sent two days ago, this patch looks like
the last one for 3.16 ... everything else needs to marture a bit longer.
Otherwise I'll send a pull-request for this one patch in the next days.
Heiko
--
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] 20+ messages in thread
* [PATCH v2] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
@ 2014-05-17 0:16 ` Heiko Stübner
0 siblings, 0 replies; 20+ messages in thread
From: Heiko Stübner @ 2014-05-17 0:16 UTC (permalink / raw)
To: linux-arm-kernel
Hi Olof,
Am Freitag, 16. Mai 2014, 15:54:22 schrieb Olof Johansson:
> On Mon, May 12, 2014 at 07:17:46PM +0200, Heiko St?bner wrote:
> > Am Donnerstag, 27. M?rz 2014, 01:06:32 schrieb Heiko St?bner:
> > > With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
> > > to reference the relevant smp_ops in the board file, but instead it can
> > > simply be set by the enable-method property of the cpu nodes.
> > >
> > > Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> >
> > more responses to this? [or maybe even an ack :-) ? ]
>
> Looks reasonable to me:
>
> Acked-by: Olof Johansson <olof@lixom.net>
or you could simply apply it to arm-soc directly :-)
Because apart from the pull request I sent two days ago, this patch looks like
the last one for 3.16 ... everything else needs to marture a bit longer.
Otherwise I'll send a pull-request for this one patch in the next days.
Heiko
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH v2] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
2014-03-27 0:06 ` Heiko Stübner
@ 2014-05-26 18:13 ` Olof Johansson
-1 siblings, 0 replies; 20+ messages in thread
From: Olof Johansson @ 2014-05-26 18:13 UTC (permalink / raw)
To: Heiko Stübner
Cc: Mark Rutland, arm-DgEjT+Ai2ygdnm+yROfE0A, Linux ARM Kernel,
devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
Ian Campbell, Kumar Gala
On Thu, Mar 27, 2014 at 01:06:32AM +0100, Heiko Stübner wrote:
> With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
> to reference the relevant smp_ops in the board file, but instead it can
> simply be set by the enable-method property of the cpu nodes.
>
> Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
Applied, however:
> ---
> changes since v1:
> - add a short description to the enable-method binding
>
> Documentation/devicetree/bindings/arm/cpus.txt | 2 ++
> arch/arm/boot/dts/rk3066a.dtsi | 1 +
> arch/arm/boot/dts/rk3188.dtsi | 1 +
> arch/arm/mach-rockchip/core.h | 2 --
> arch/arm/mach-rockchip/platsmp.c | 3 ++-
> arch/arm/mach-rockchip/rockchip.c | 1 -
> 6 files changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt
> index 333f4ae..f52a9ac 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"
> + "rockchip,rk3066-smp" - cpu-core handling of Socs
> + from Rockchip starting with rk3066
Nobody else has a comment here, so I removed this one.
I noticed that the list is unsorted, in particular the new marvell entries were
appended instead of inserted at the right location, which caused a merge
conflict. Sigh. I'll do a separate commit on top to sort the list, since
we seem to have the new out-of-order additions in our tree.
-Olof
--
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] 20+ messages in thread
* [PATCH v2] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
@ 2014-05-26 18:13 ` Olof Johansson
0 siblings, 0 replies; 20+ messages in thread
From: Olof Johansson @ 2014-05-26 18:13 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Mar 27, 2014 at 01:06:32AM +0100, Heiko St?bner wrote:
> With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
> to reference the relevant smp_ops in the board file, but instead it can
> simply be set by the enable-method property of the cpu nodes.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Applied, however:
> ---
> changes since v1:
> - add a short description to the enable-method binding
>
> Documentation/devicetree/bindings/arm/cpus.txt | 2 ++
> arch/arm/boot/dts/rk3066a.dtsi | 1 +
> arch/arm/boot/dts/rk3188.dtsi | 1 +
> arch/arm/mach-rockchip/core.h | 2 --
> arch/arm/mach-rockchip/platsmp.c | 3 ++-
> arch/arm/mach-rockchip/rockchip.c | 1 -
> 6 files changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt
> index 333f4ae..f52a9ac 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"
> + "rockchip,rk3066-smp" - cpu-core handling of Socs
> + from Rockchip starting with rk3066
Nobody else has a comment here, so I removed this one.
I noticed that the list is unsorted, in particular the new marvell entries were
appended instead of inserted at the right location, which caused a merge
conflict. Sigh. I'll do a separate commit on top to sort the list, since
we seem to have the new out-of-order additions in our tree.
-Olof
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH v2] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
2014-05-26 18:13 ` Olof Johansson
@ 2014-05-26 19:20 ` Heiko Stübner
-1 siblings, 0 replies; 20+ messages in thread
From: Heiko Stübner @ 2014-05-26 19:20 UTC (permalink / raw)
To: Olof Johansson
Cc: Mark Rutland, arm-DgEjT+Ai2ygdnm+yROfE0A, Linux ARM Kernel,
devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
Ian Campbell, Kumar Gala
Am Montag, 26. Mai 2014, 11:13:15 schrieb Olof Johansson:
> On Thu, Mar 27, 2014 at 01:06:32AM +0100, Heiko Stübner wrote:
> > With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
> > to reference the relevant smp_ops in the board file, but instead it can
> > simply be set by the enable-method property of the cpu nodes.
> >
> > Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
>
> Applied, however:
> > ---
> >
> > changes since v1:
> > - add a short description to the enable-method binding
> >
> > Documentation/devicetree/bindings/arm/cpus.txt | 2 ++
> > arch/arm/boot/dts/rk3066a.dtsi | 1 +
> > arch/arm/boot/dts/rk3188.dtsi | 1 +
> > arch/arm/mach-rockchip/core.h | 2 --
> > arch/arm/mach-rockchip/platsmp.c | 3 ++-
> > arch/arm/mach-rockchip/rockchip.c | 1 -
> > 6 files changed, 6 insertions(+), 4 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/arm/cpus.txt
> > b/Documentation/devicetree/bindings/arm/cpus.txt index 333f4ae..f52a9ac
> > 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"
> >
> > + "rockchip,rk3066-smp" - cpu-core handling of Socs
> > + from Rockchip starting with rk3066
>
> Nobody else has a comment here, so I removed this one.
>
> I noticed that the list is unsorted, in particular the new marvell entries
> were appended instead of inserted at the right location, which caused a
> merge conflict. Sigh. I'll do a separate commit on top to sort the list,
> since we seem to have the new out-of-order additions in our tree.
I added the comment after Mark Rutland noted:
"We should document what what these actually mean, so as to be a hardware
description and not a Linux internals description."
But I'm fine with it either way :-)
Heiko
--
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] 20+ messages in thread
* [PATCH v2] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
@ 2014-05-26 19:20 ` Heiko Stübner
0 siblings, 0 replies; 20+ messages in thread
From: Heiko Stübner @ 2014-05-26 19:20 UTC (permalink / raw)
To: linux-arm-kernel
Am Montag, 26. Mai 2014, 11:13:15 schrieb Olof Johansson:
> On Thu, Mar 27, 2014 at 01:06:32AM +0100, Heiko St?bner wrote:
> > With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
> > to reference the relevant smp_ops in the board file, but instead it can
> > simply be set by the enable-method property of the cpu nodes.
> >
> > Signed-off-by: Heiko Stuebner <heiko@sntech.de>
>
> Applied, however:
> > ---
> >
> > changes since v1:
> > - add a short description to the enable-method binding
> >
> > Documentation/devicetree/bindings/arm/cpus.txt | 2 ++
> > arch/arm/boot/dts/rk3066a.dtsi | 1 +
> > arch/arm/boot/dts/rk3188.dtsi | 1 +
> > arch/arm/mach-rockchip/core.h | 2 --
> > arch/arm/mach-rockchip/platsmp.c | 3 ++-
> > arch/arm/mach-rockchip/rockchip.c | 1 -
> > 6 files changed, 6 insertions(+), 4 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/arm/cpus.txt
> > b/Documentation/devicetree/bindings/arm/cpus.txt index 333f4ae..f52a9ac
> > 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"
> >
> > + "rockchip,rk3066-smp" - cpu-core handling of Socs
> > + from Rockchip starting with rk3066
>
> Nobody else has a comment here, so I removed this one.
>
> I noticed that the list is unsorted, in particular the new marvell entries
> were appended instead of inserted at the right location, which caused a
> merge conflict. Sigh. I'll do a separate commit on top to sort the list,
> since we seem to have the new out-of-order additions in our tree.
I added the comment after Mark Rutland noted:
"We should document what what these actually mean, so as to be a hardware
description and not a Linux internals description."
But I'm fine with it either way :-)
Heiko
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH v2] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
2014-05-26 19:20 ` Heiko Stübner
@ 2014-05-26 19:21 ` Olof Johansson
-1 siblings, 0 replies; 20+ messages in thread
From: Olof Johansson @ 2014-05-26 19:21 UTC (permalink / raw)
To: Heiko Stübner
Cc: Mark Rutland, arm-DgEjT+Ai2ygdnm+yROfE0A, Linux ARM Kernel,
devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
Ian Campbell, Kumar Gala
On Mon, May 26, 2014 at 12:20 PM, Heiko Stübner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org> wrote:
> Am Montag, 26. Mai 2014, 11:13:15 schrieb Olof Johansson:
>> On Thu, Mar 27, 2014 at 01:06:32AM +0100, Heiko Stübner wrote:
>> > With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
>> > to reference the relevant smp_ops in the board file, but instead it can
>> > simply be set by the enable-method property of the cpu nodes.
>> >
>> > Signed-off-by: Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>
>>
>> Applied, however:
>> > ---
>> >
>> > changes since v1:
>> > - add a short description to the enable-method binding
>> >
>> > Documentation/devicetree/bindings/arm/cpus.txt | 2 ++
>> > arch/arm/boot/dts/rk3066a.dtsi | 1 +
>> > arch/arm/boot/dts/rk3188.dtsi | 1 +
>> > arch/arm/mach-rockchip/core.h | 2 --
>> > arch/arm/mach-rockchip/platsmp.c | 3 ++-
>> > arch/arm/mach-rockchip/rockchip.c | 1 -
>> > 6 files changed, 6 insertions(+), 4 deletions(-)
>> >
>> > diff --git a/Documentation/devicetree/bindings/arm/cpus.txt
>> > b/Documentation/devicetree/bindings/arm/cpus.txt index 333f4ae..f52a9ac
>> > 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"
>> >
>> > + "rockchip,rk3066-smp" - cpu-core handling of Socs
>> > + from Rockchip starting with rk3066
>>
>> Nobody else has a comment here, so I removed this one.
>>
>> I noticed that the list is unsorted, in particular the new marvell entries
>> were appended instead of inserted at the right location, which caused a
>> merge conflict. Sigh. I'll do a separate commit on top to sort the list,
>> since we seem to have the new out-of-order additions in our tree.
>
> I added the comment after Mark Rutland noted:
>
> "We should document what what these actually mean, so as to be a hardware
> description and not a Linux internals description."
>
> But I'm fine with it either way :-)
Ah! Well, I suggest a pass through to document all of them then :)
However, the compatible strings should be documented elsewhere in the
tree so they should just be possible to reference.
-Olof
--
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] 20+ messages in thread
* [PATCH v2] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE
@ 2014-05-26 19:21 ` Olof Johansson
0 siblings, 0 replies; 20+ messages in thread
From: Olof Johansson @ 2014-05-26 19:21 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, May 26, 2014 at 12:20 PM, Heiko St?bner <heiko@sntech.de> wrote:
> Am Montag, 26. Mai 2014, 11:13:15 schrieb Olof Johansson:
>> On Thu, Mar 27, 2014 at 01:06:32AM +0100, Heiko St?bner wrote:
>> > With the newly introduced CPU_METHOD_OF_DECLARE is not necessary anymore
>> > to reference the relevant smp_ops in the board file, but instead it can
>> > simply be set by the enable-method property of the cpu nodes.
>> >
>> > Signed-off-by: Heiko Stuebner <heiko@sntech.de>
>>
>> Applied, however:
>> > ---
>> >
>> > changes since v1:
>> > - add a short description to the enable-method binding
>> >
>> > Documentation/devicetree/bindings/arm/cpus.txt | 2 ++
>> > arch/arm/boot/dts/rk3066a.dtsi | 1 +
>> > arch/arm/boot/dts/rk3188.dtsi | 1 +
>> > arch/arm/mach-rockchip/core.h | 2 --
>> > arch/arm/mach-rockchip/platsmp.c | 3 ++-
>> > arch/arm/mach-rockchip/rockchip.c | 1 -
>> > 6 files changed, 6 insertions(+), 4 deletions(-)
>> >
>> > diff --git a/Documentation/devicetree/bindings/arm/cpus.txt
>> > b/Documentation/devicetree/bindings/arm/cpus.txt index 333f4ae..f52a9ac
>> > 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"
>> >
>> > + "rockchip,rk3066-smp" - cpu-core handling of Socs
>> > + from Rockchip starting with rk3066
>>
>> Nobody else has a comment here, so I removed this one.
>>
>> I noticed that the list is unsorted, in particular the new marvell entries
>> were appended instead of inserted at the right location, which caused a
>> merge conflict. Sigh. I'll do a separate commit on top to sort the list,
>> since we seem to have the new out-of-order additions in our tree.
>
> I added the comment after Mark Rutland noted:
>
> "We should document what what these actually mean, so as to be a hardware
> description and not a Linux internals description."
>
> But I'm fine with it either way :-)
Ah! Well, I suggest a pass through to document all of them then :)
However, the compatible strings should be documented elsewhere in the
tree so they should just be possible to reference.
-Olof
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2014-05-26 19:21 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-26 10:27 [PATCH] ARM: rockchip: convert smp bringup to CPU_METHOD_OF_DECLARE Heiko Stübner
2014-03-26 10:27 ` Heiko Stübner
2014-03-26 11:00 ` Mark Rutland
2014-03-26 11:00 ` Mark Rutland
[not found] ` <20140326110024.GR10341-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2014-03-26 12:03 ` Heiko Stübner
2014-03-26 12:03 ` Heiko Stübner
2014-03-27 0:06 ` [PATCH v2] " Heiko Stübner
2014-03-27 0:06 ` Heiko Stübner
2014-05-12 17:17 ` Heiko Stübner
2014-05-12 17:17 ` Heiko Stübner
2014-05-16 22:54 ` Olof Johansson
2014-05-16 22:54 ` Olof Johansson
[not found] ` <20140516225422.GA6028-O5ziIzlqnXUVNXGz7ipsyg@public.gmane.org>
2014-05-17 0:16 ` Heiko Stübner
2014-05-17 0:16 ` Heiko Stübner
2014-05-26 18:13 ` Olof Johansson
2014-05-26 18:13 ` Olof Johansson
[not found] ` <20140526181315.GA27093-O5ziIzlqnXUVNXGz7ipsyg@public.gmane.org>
2014-05-26 19:20 ` Heiko Stübner
2014-05-26 19:20 ` Heiko Stübner
2014-05-26 19:21 ` Olof Johansson
2014-05-26 19:21 ` Olof Johansson
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.