* [PATCH v2 0/3] add basic rk3288 smp support
@ 2014-09-16 10:44 Kever Yang
2014-09-16 10:44 ` [PATCH v2 1/3] Documentation: dt-bindings: add dt binding info for rk3288-smp Kever Yang
2014-09-16 10:44 ` [PATCH v2 3/3] ARM: dts: add intmem node for rk3288 smp support Kever Yang
0 siblings, 2 replies; 6+ messages in thread
From: Kever Yang @ 2014-09-16 10:44 UTC (permalink / raw)
To: heiko-4mtYJXux2i+zQB+pC5nmwQ
Cc: dianders-F7+t8E8rja9g9hUCZPvPmw, sonnyrao-F7+t8E8rja9g9hUCZPvPmw,
addy.ke-TNX95d0MmH7DzftRWevZcw, cf-TNX95d0MmH7DzftRWevZcw,
xjq-TNX95d0MmH7DzftRWevZcw, hj-TNX95d0MmH7DzftRWevZcw,
huangtao-TNX95d0MmH7DzftRWevZcw, Kever Yang, Rohit Vaswani,
devicetree-u79uwXL29TY76Z2rM5mHXA, Gregory CLEMENT,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Kumar Gala, Jason Cooper,
Ian Campbell, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Rob Herring, Thomas Petazzoni, Pawel Moll, Lorenzo Pieralisi,
Mark Rutland, Russell King, Olof Johansson, Maxime Ripard,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
rk3288 is qual-core CPU Soc, we need to enable the smp.
This patchset works with either arch-timer use the phisical counter
in kernel or the firmware initialize the arch-timer virtual counter
offset and use virtual counter in kernel.
Changes in v2:
- add documentation
- use rk3288_boot_secondary instead ofsmp_boot_secondary
- discards the power domain operation
- handle the per cpu starup when actived by 'sev'
- adjust the alignment
Kever Yang (3):
Documentation: dt-bindings: add dt binding info for rk3288-smp
ARM: rockchip: add basic smp support for rk3288
ARM: dts: add intmem node for rk3288 smp support
Documentation/devicetree/bindings/arm/cpus.txt | 1 +
arch/arm/boot/dts/rk3288.dtsi | 18 ++++++++
arch/arm/mach-rockchip/core.h | 1 +
arch/arm/mach-rockchip/headsmp.S | 14 ++++++
arch/arm/mach-rockchip/platsmp.c | 63 +++++++++++++++++++++++---
5 files changed, 91 insertions(+), 6 deletions(-)
--
1.9.1
--
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] 6+ messages in thread
* [PATCH v2 1/3] Documentation: dt-bindings: add dt binding info for rk3288-smp
2014-09-16 10:44 [PATCH v2 0/3] add basic rk3288 smp support Kever Yang
@ 2014-09-16 10:44 ` Kever Yang
2014-09-16 18:54 ` Mark Rutland
2014-09-16 10:44 ` [PATCH v2 3/3] ARM: dts: add intmem node for rk3288 smp support Kever Yang
1 sibling, 1 reply; 6+ messages in thread
From: Kever Yang @ 2014-09-16 10:44 UTC (permalink / raw)
To: heiko
Cc: dianders, sonnyrao, addy.ke, cf, xjq, hj, huangtao, Kever Yang,
Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
Jason Cooper, Maxime Ripard, Gregory CLEMENT, Thomas Petazzoni,
Olof Johansson, Lorenzo Pieralisi, Rohit Vaswani, devicetree,
linux-kernel
This add documentation for rk3288 smp dt binding
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---
Changes in v2:
- add documentation
Documentation/devicetree/bindings/arm/cpus.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt
index 298e2f6..4b46233 100644
--- a/Documentation/devicetree/bindings/arm/cpus.txt
+++ b/Documentation/devicetree/bindings/arm/cpus.txt
@@ -195,6 +195,7 @@ nodes to be present and contain the properties described below.
"qcom,kpss-acc-v1"
"qcom,kpss-acc-v2"
"rockchip,rk3066-smp"
+ "rockchip,rk3288-smp"
- cpu-release-addr
Usage: required for systems that have an "enable-method"
--
1.9.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 3/3] ARM: dts: add intmem node for rk3288 smp support
2014-09-16 10:44 [PATCH v2 0/3] add basic rk3288 smp support Kever Yang
2014-09-16 10:44 ` [PATCH v2 1/3] Documentation: dt-bindings: add dt binding info for rk3288-smp Kever Yang
@ 2014-09-16 10:44 ` Kever Yang
1 sibling, 0 replies; 6+ messages in thread
From: Kever Yang @ 2014-09-16 10:44 UTC (permalink / raw)
To: heiko
Cc: dianders, sonnyrao, addy.ke, cf, xjq, hj, huangtao, Kever Yang,
Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
Russell King, linux-arm-kernel, linux-rockchip, devicetree,
linux-kernel
This patch add intmem node des which is needed by platsmp.c
and enable the smp.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---
Changes in v2:
- adjust the alignment
arch/arm/boot/dts/rk3288.dtsi | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index dca586e..bcc4dad 100644
--- a/arch/arm/boot/dts/rk3288.dtsi
+++ b/arch/arm/boot/dts/rk3288.dtsi
@@ -40,6 +40,7 @@
#address-cells = <1>;
#size-cells = <0>;
+ enable-method = "rockchip,rk3288-smp";
cpu@500 {
device_type = "cpu";
compatible = "arm,cortex-a12";
@@ -353,6 +354,23 @@
status = "disabled";
};
+ bus_intmem@ff700000 {
+ compatible = "mmio-sram";
+ reg = <0xff700000 0x18000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0xff700000 0x18000>;
+ smp-sram@0 {
+ compatible = "rockchip,rk3066-smp-sram";
+ reg = <0x00 0x10>;
+ };
+ };
+
+ pmu_intmem@ff720000 {
+ compatible = "mmio-sram";
+ reg = <0xff720000 0x4000>;
+ };
+
pmu: power-management@ff730000 {
compatible = "rockchip,rk3288-pmu", "syscon";
reg = <0xff730000 0x100>;
--
1.9.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v2 1/3] Documentation: dt-bindings: add dt binding info for rk3288-smp
2014-09-16 10:44 ` [PATCH v2 1/3] Documentation: dt-bindings: add dt binding info for rk3288-smp Kever Yang
@ 2014-09-16 18:54 ` Mark Rutland
2014-09-17 1:12 ` Kever Yang
0 siblings, 1 reply; 6+ messages in thread
From: Mark Rutland @ 2014-09-16 18:54 UTC (permalink / raw)
To: Kever Yang
Cc: heiko@sntech.de, dianders@chromium.org, sonnyrao@chromium.org,
addy.ke@rock-chips.com, cf@rock-chips.com, xjq@rock-chips.com,
hj@rock-chips.com, huangtao@rock-chips.com, Rob Herring,
Pawel Moll, Ian Campbell, Kumar Gala, Jason Cooper, Maxime Ripard,
Gregory CLEMENT, Thomas Petazzoni, Olof Johansson,
Lorenzo Pieralisi, Rohit Vaswani, devicetree@vger.kernel.org
On Tue, Sep 16, 2014 at 11:44:28AM +0100, Kever Yang wrote:
> This add documentation for rk3288 smp dt binding
>
> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
> ---
>
> Changes in v2:
> - add documentation
>
> Documentation/devicetree/bindings/arm/cpus.txt | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt
> index 298e2f6..4b46233 100644
> --- a/Documentation/devicetree/bindings/arm/cpus.txt
> +++ b/Documentation/devicetree/bindings/arm/cpus.txt
> @@ -195,6 +195,7 @@ nodes to be present and contain the properties described below.
> "qcom,kpss-acc-v1"
> "qcom,kpss-acc-v2"
> "rockchip,rk3066-smp"
> + "rockchip,rk3288-smp"
How do these differ?
What does "rockchip,rk3288-smp" mean exactly?
Presumably other nodes / properties are required?
Mark.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 1/3] Documentation: dt-bindings: add dt binding info for rk3288-smp
2014-09-16 18:54 ` Mark Rutland
@ 2014-09-17 1:12 ` Kever Yang
[not found] ` <5418DFFC.5030808-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Kever Yang @ 2014-09-17 1:12 UTC (permalink / raw)
To: Mark Rutland
Cc: heiko@sntech.de, dianders@chromium.org, sonnyrao@chromium.org,
addy.ke@rock-chips.com, cf@rock-chips.com, xjq@rock-chips.com,
hj@rock-chips.com, huangtao@rock-chips.com, Rob Herring,
Pawel Moll, Ian Campbell, Kumar Gala, Jason Cooper, Maxime Ripard,
Gregory CLEMENT, Thomas Petazzoni, Olof Johansson,
Lorenzo Pieralisi, Rohit Vaswani, devicetree@vger.kernel.org
Hi Mark,
Thanks for your comment.
On 09/17/2014 02:54 AM, Mark Rutland wrote:
> On Tue, Sep 16, 2014 at 11:44:28AM +0100, Kever Yang wrote:
>> This add documentation for rk3288 smp dt binding
>>
>> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
>> ---
>>
>> Changes in v2:
>> - add documentation
>>
>> Documentation/devicetree/bindings/arm/cpus.txt | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt
>> index 298e2f6..4b46233 100644
>> --- a/Documentation/devicetree/bindings/arm/cpus.txt
>> +++ b/Documentation/devicetree/bindings/arm/cpus.txt
>> @@ -195,6 +195,7 @@ nodes to be present and contain the properties described below.
>> "qcom,kpss-acc-v1"
>> "qcom,kpss-acc-v2"
>> "rockchip,rk3066-smp"
>> + "rockchip,rk3288-smp"
> How do these differ?
rk3066 and rk3288 smp bring up code is quite different, so I need a new
node "rockchip,rk3288-smp"
other than "rockchip,rk3066-smp".
>
> What does "rockchip,rk3288-smp" mean exactly?
The driver who using this node is in 2/3 of this patchset, it goes to
linux-arm-kernel list and linux-rockchip
list, I'm not sure if you have get that, maybe I need a RESEND?
>
> Presumably other nodes / properties are required?
Base on linux-next, I think only "rockchip,rk3288-smp" is new node to my
driver.
BR
-Kever
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v2 1/3] Documentation: dt-bindings: add dt binding info for rk3288-smp
[not found] ` <5418DFFC.5030808-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2014-09-17 19:50 ` Mark Rutland
0 siblings, 0 replies; 6+ messages in thread
From: Mark Rutland @ 2014-09-17 19:50 UTC (permalink / raw)
To: Kever Yang
Cc: heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org,
dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org,
sonnyrao-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org,
addy.ke-TNX95d0MmH7DzftRWevZcw@public.gmane.org,
cf-TNX95d0MmH7DzftRWevZcw@public.gmane.org,
xjq-TNX95d0MmH7DzftRWevZcw@public.gmane.org,
hj-TNX95d0MmH7DzftRWevZcw@public.gmane.org,
huangtao-TNX95d0MmH7DzftRWevZcw@public.gmane.org, Rob Herring,
Pawel Moll, Ian Campbell, Kumar Gala, Jason Cooper, Maxime Ripard,
Gregory CLEMENT, Thomas Petazzoni, Olof Johansson,
Lorenzo Pieralisi, Rohit Vaswani,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
On Wed, Sep 17, 2014 at 02:12:28AM +0100, Kever Yang wrote:
> Hi Mark,
>
> Thanks for your comment.
> On 09/17/2014 02:54 AM, Mark Rutland wrote:
> > On Tue, Sep 16, 2014 at 11:44:28AM +0100, Kever Yang wrote:
> >> This add documentation for rk3288 smp dt binding
> >>
> >> Signed-off-by: Kever Yang <kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
> >> ---
> >>
> >> Changes in v2:
> >> - add documentation
> >>
> >> Documentation/devicetree/bindings/arm/cpus.txt | 1 +
> >> 1 file changed, 1 insertion(+)
> >>
> >> diff --git a/Documentation/devicetree/bindings/arm/cpus.txt b/Documentation/devicetree/bindings/arm/cpus.txt
> >> index 298e2f6..4b46233 100644
> >> --- a/Documentation/devicetree/bindings/arm/cpus.txt
> >> +++ b/Documentation/devicetree/bindings/arm/cpus.txt
> >> @@ -195,6 +195,7 @@ nodes to be present and contain the properties described below.
> >> "qcom,kpss-acc-v1"
> >> "qcom,kpss-acc-v2"
> >> "rockchip,rk3066-smp"
> >> + "rockchip,rk3288-smp"
> > How do these differ?
> rk3066 and rk3288 smp bring up code is quite different, so I need a new
> node "rockchip,rk3288-smp"
> other than "rockchip,rk3066-smp".
The code being different is a Linux detail. What is different in the HW
that necessitates the code being different?
> > What does "rockchip,rk3288-smp" mean exactly?
> The driver who using this node is in 2/3 of this patchset, it goes to
> linux-arm-kernel list and linux-rockchip
> list, I'm not sure if you have get that, maybe I need a RESEND?
Documentaiton and drivers are different things. A binding is a contract,
and for that contract to be meaningful it needs to be described.
> > Presumably other nodes / properties are required?
> Base on linux-next, I think only "rockchip,rk3288-smp" is new node to my
> driver.
But presumably there are other resources that you require (e.g. a system
controller, perhaps a specific portion of sram). I can't just put
"rockchip,rk3288-smp" into an otherwise empty DT and get SMP support, I
would assume.
Mark.
--
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] 6+ messages in thread
end of thread, other threads:[~2014-09-17 19:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-16 10:44 [PATCH v2 0/3] add basic rk3288 smp support Kever Yang
2014-09-16 10:44 ` [PATCH v2 1/3] Documentation: dt-bindings: add dt binding info for rk3288-smp Kever Yang
2014-09-16 18:54 ` Mark Rutland
2014-09-17 1:12 ` Kever Yang
[not found] ` <5418DFFC.5030808-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2014-09-17 19:50 ` Mark Rutland
2014-09-16 10:44 ` [PATCH v2 3/3] ARM: dts: add intmem node for rk3288 smp support Kever Yang
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).