* [RESEND PATCH] ARM: dts: make arch-timer always on in rk3288 soc
@ 2014-08-28 1:40 Kever Yang
[not found] ` <1409190017-12656-1-git-send-email-kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: Kever Yang @ 2014-08-28 1:40 UTC (permalink / raw)
To: heiko-4mtYJXux2i+zQB+pC5nmwQ
Cc: dianders-F7+t8E8rja9g9hUCZPvPmw, sonnyrao-F7+t8E8rja9g9hUCZPvPmw,
addy.ke-TNX95d0MmH7DzftRWevZcw, cf-TNX95d0MmH7DzftRWevZcw,
xjq-TNX95d0MmH7DzftRWevZcw, wulf-TNX95d0MmH7DzftRWevZcw,
lyz-TNX95d0MmH7DzftRWevZcw, hj-TNX95d0MmH7DzftRWevZcw,
huangtao-TNX95d0MmH7DzftRWevZcw, Kever Yang, Rob Herring,
Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Russell King,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
We need use the hrtimer, which need the arch-timer to be 'always-on'
Signed-off-by: Kever Yang <kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
---
arch/arm/boot/dts/rk3288.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
index 5950b0a..698e6ea 100644
--- a/arch/arm/boot/dts/rk3288.dtsi
+++ b/arch/arm/boot/dts/rk3288.dtsi
@@ -76,6 +76,7 @@
<GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
<GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
clock-frequency = <24000000>;
+ always-on;
};
i2c1: i2c@ff140000 {
--
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 related [flat|nested] 7+ messages in thread[parent not found: <1409190017-12656-1-git-send-email-kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>]
* Re: [RESEND PATCH] ARM: dts: make arch-timer always on in rk3288 soc [not found] ` <1409190017-12656-1-git-send-email-kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> @ 2014-08-28 9:17 ` Mark Rutland 2014-08-28 15:11 ` Mark Rutland 0 siblings, 1 reply; 7+ messages in thread From: Mark Rutland @ 2014-08-28 9:17 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, wulf-TNX95d0MmH7DzftRWevZcw@public.gmane.org, lyz-TNX95d0MmH7DzftRWevZcw@public.gmane.org, hj-TNX95d0MmH7DzftRWevZcw@public.gmane.org, huangtao-TNX95d0MmH7DzftRWevZcw@public.gmane.org, Rob Herring, Pawel Moll, Ian Campbell, Kumar Gala, Russell King, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Hi Kever, On Thu, Aug 28, 2014 at 02:40:17AM +0100, Kever Yang wrote: > We need use the hrtimer, which need the arch-timer to be 'always-on' I asked a question on the last posting [1]. Can you please confirm either way? Thanks, Mark. [1] lists.infradead.org/pipermail/linux-arm-kernel/2014-August/282327.html > Signed-off-by: Kever Yang <kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> > --- > > arch/arm/boot/dts/rk3288.dtsi | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi > index 5950b0a..698e6ea 100644 > --- a/arch/arm/boot/dts/rk3288.dtsi > +++ b/arch/arm/boot/dts/rk3288.dtsi > @@ -76,6 +76,7 @@ > <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, > <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; > clock-frequency = <24000000>; > + always-on; > }; > > i2c1: i2c@ff140000 { > -- > 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 > -- 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] 7+ messages in thread
* Re: [RESEND PATCH] ARM: dts: make arch-timer always on in rk3288 soc 2014-08-28 9:17 ` Mark Rutland @ 2014-08-28 15:11 ` Mark Rutland 2014-08-29 0:35 ` Kever Yang 2014-08-29 3:06 ` Huang Tao 0 siblings, 2 replies; 7+ messages in thread From: Mark Rutland @ 2014-08-28 15:11 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, wulf-TNX95d0MmH7DzftRWevZcw@public.gmane.org, lyz-TNX95d0MmH7DzftRWevZcw@public.gmane.org, hj-TNX95d0MmH7DzftRWevZcw@public.gmane.org, huangtao-TNX95d0MmH7DzftRWevZcw@public.gmane.org, Rob Herring, Pawel Moll, Ian Campbell, Kumar Gala, Russell King, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, lorenzo.pieralisi-5wv7dgnIgG8 On Thu, Aug 28, 2014 at 10:17:58AM +0100, Mark Rutland wrote: > Hi Kever, > > On Thu, Aug 28, 2014 at 02:40:17AM +0100, Kever Yang wrote: > > We need use the hrtimer, which need the arch-timer to be 'always-on' > > I asked a question on the last posting [1]. Can you please confirm > either way? > > Thanks, > Mark. > > [1] lists.infradead.org/pipermail/linux-arm-kernel/2014-August/282327.html To clarify: if there are low power states that the CPU can enter where we lose state, then this patch isn't correct. A more general approach would be to enable the broadcast hrtimer for arm, as has been done for arm64. See commit 5d1638acb9f6 (tick: Introduce hrtimer based broadcast) which introduced the broadcast hrtimer, and commit 9358d755bd5c (arm64: kernel: initialize broadcast hrtimer based clock event device) which added the requisite plumbing for arm64. Mark. > > > Signed-off-by: Kever Yang <kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> > > --- > > > > arch/arm/boot/dts/rk3288.dtsi | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi > > index 5950b0a..698e6ea 100644 > > --- a/arch/arm/boot/dts/rk3288.dtsi > > +++ b/arch/arm/boot/dts/rk3288.dtsi > > @@ -76,6 +76,7 @@ > > <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, > > <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; > > clock-frequency = <24000000>; > > + always-on; > > }; > > > > i2c1: i2c@ff140000 { > > -- > > 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 > > > -- > 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] 7+ messages in thread
* Re: [RESEND PATCH] ARM: dts: make arch-timer always on in rk3288 soc 2014-08-28 15:11 ` Mark Rutland @ 2014-08-29 0:35 ` Kever Yang 2014-08-29 3:06 ` Huang Tao 1 sibling, 0 replies; 7+ messages in thread From: Kever Yang @ 2014-08-29 0:35 UTC (permalink / raw) To: Mark Rutland 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, wulf-TNX95d0MmH7DzftRWevZcw@public.gmane.org, lyz-TNX95d0MmH7DzftRWevZcw@public.gmane.org, hj-TNX95d0MmH7DzftRWevZcw@public.gmane.org, huangtao-TNX95d0MmH7DzftRWevZcw@public.gmane.org, Rob Herring, Pawel Moll, Ian Campbell, Kumar Gala, Russell King, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, lorenzo.pieralisi-5wv7dgnIgG8 Mark, Thanks for your reply and advice. On 08/28/2014 11:11 PM, Mark Rutland wrote: > On Thu, Aug 28, 2014 at 10:17:58AM +0100, Mark Rutland wrote: >> Hi Kever, >> >> On Thu, Aug 28, 2014 at 02:40:17AM +0100, Kever Yang wrote: >>> We need use the hrtimer, which need the arch-timer to be 'always-on' >> I asked a question on the last posting [1]. Can you please confirm >> either way? >> >> Thanks, >> Mark. >> >> [1] lists.infradead.org/pipermail/linux-arm-kernel/2014-August/282327.html > To clarify: if there are low power states that the CPU can enter where > we lose state, then this patch isn't correct. rk3288 has low power state and may turn off the cpu power domain which will lost any logic state in cpu. > > A more general approach would be to enable the broadcast hrtimer for > arm, as has been done for arm64. > > See commit 5d1638acb9f6 (tick: Introduce hrtimer based broadcast) which > introduced the broadcast hrtimer, and commit 9358d755bd5c (arm64: > kernel: initialize broadcast hrtimer based clock event device) which > added the requisite plumbing for arm64. I'll going to implement this and send another patch. Thanks. -Kever -- 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] 7+ messages in thread
* Re: [RESEND PATCH] ARM: dts: make arch-timer always on in rk3288 soc 2014-08-28 15:11 ` Mark Rutland 2014-08-29 0:35 ` Kever Yang @ 2014-08-29 3:06 ` Huang Tao [not found] ` <53FFEE40.3010001-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 1 sibling, 1 reply; 7+ messages in thread From: Huang Tao @ 2014-08-29 3:06 UTC (permalink / raw) To: Mark Rutland Cc: Kever Yang, 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, wulf-TNX95d0MmH7DzftRWevZcw@public.gmane.org, lyz-TNX95d0MmH7DzftRWevZcw@public.gmane.org, hj-TNX95d0MmH7DzftRWevZcw@public.gmane.org, Rob Herring, Pawel Moll, Ian Campbell, Kumar Gala, Russell King, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, lorenzo.pieralisi-5wv7dgnIgG8 Hi, Mark: 在 2014年08月28日 23:11, Mark Rutland 写道: > To clarify: if there are low power states that the CPU can enter where > we lose state, then this patch isn't correct. Right now, the software of RK3288 SoC only support CPU hotplug (cpu_on/off) and power off all CPUs on suspend. We do not implement cpuidle to power off CPU. Do you think we should introduce a broadcast timer? On our early kernel, I never see any interrupt on a broadcast timer (yes, we implement it with a external timer). > > A more general approach would be to enable the broadcast hrtimer for > arm, as has been done for arm64. Yes. I think it should be done by arm framework. > > See commit 5d1638acb9f6 (tick: Introduce hrtimer based broadcast) which > introduced the broadcast hrtimer, and commit 9358d755bd5c (arm64: > kernel: initialize broadcast hrtimer based clock event device) which > added the requisite plumbing for arm64. -- 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] 7+ messages in thread
[parent not found: <53FFEE40.3010001-TNX95d0MmH7DzftRWevZcw@public.gmane.org>]
* Re: [RESEND PATCH] ARM: dts: make arch-timer always on in rk3288 soc [not found] ` <53FFEE40.3010001-TNX95d0MmH7DzftRWevZcw@public.gmane.org> @ 2014-08-29 11:22 ` Mark Rutland 2014-08-29 11:44 ` Huang Tao 0 siblings, 1 reply; 7+ messages in thread From: Mark Rutland @ 2014-08-29 11:22 UTC (permalink / raw) To: Huang Tao Cc: Kever Yang, 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, wulf-TNX95d0MmH7DzftRWevZcw@public.gmane.org, lyz-TNX95d0MmH7DzftRWevZcw@public.gmane.org, hj-TNX95d0MmH7DzftRWevZcw@public.gmane.org, Rob Herring, Pawel Moll, Ian Campbell, Kumar Gala, Russell King, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Lorenzo Pieralisi On Fri, Aug 29, 2014 at 04:06:40AM +0100, Huang Tao wrote: > Hi, Mark: Hi, > 在 2014年08月28日 23:11, Mark Rutland 写道: > > To clarify: if there are low power states that the CPU can enter where > > we lose state, then this patch isn't correct. > Right now, the software of RK3288 SoC only support CPU hotplug > (cpu_on/off) and power off all CPUs on suspend. Sure, but that's a Linux implementation detail rather than a fixed property of the hardware. Given those states exist, the "always-on" property is not appropriate. > We do not implement cpuidle to power off CPU. Do you think we should > introduce a broadcast timer? If one is present, yes. > On our early kernel, I never see any interrupt on a broadcast timer > (yes, we implement it with a external timer). That's fine; Linux doesn't need to use it just yet. However, when we want to use low power states later, it will be necessary to enable placing all CPUS into a low power state. If your external timer is already supported by an existing driver, there is no reason not to add it now. > > A more general approach would be to enable the broadcast hrtimer for > > arm, as has been done for arm64. > Yes. I think it should be done by arm framework. Patches welcome. I also think it would make sense to enable this for arm. Thanks, 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] 7+ messages in thread
* Re: [RESEND PATCH] ARM: dts: make arch-timer always on in rk3288 soc 2014-08-29 11:22 ` Mark Rutland @ 2014-08-29 11:44 ` Huang Tao 0 siblings, 0 replies; 7+ messages in thread From: Huang Tao @ 2014-08-29 11:44 UTC (permalink / raw) To: Mark Rutland Cc: Kever Yang, 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, wulf-TNX95d0MmH7DzftRWevZcw@public.gmane.org, lyz-TNX95d0MmH7DzftRWevZcw@public.gmane.org, hj-TNX95d0MmH7DzftRWevZcw@public.gmane.org, Rob Herring, Pawel Moll, Ian Campbell, Kumar Gala, Russell King, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Lorenzo Pieralisi Hi, 在 2014年08月29日 19:22, Mark Rutland 写道: >> 在 2014年08月28日 23:11, Mark Rutland 写道: >>> To clarify: if there are low power states that the CPU can enter where >>> we lose state, then this patch isn't correct. >> Right now, the software of RK3288 SoC only support CPU hotplug >> (cpu_on/off) and power off all CPUs on suspend. > Sure, but that's a Linux implementation detail rather than a fixed > property of the hardware. Given those states exist, the "always-on" > property is not appropriate. > >> We do not implement cpuidle to power off CPU. Do you think we should >> introduce a broadcast timer? > If one is present, yes. > >> On our early kernel, I never see any interrupt on a broadcast timer >> (yes, we implement it with a external timer). > That's fine; Linux doesn't need to use it just yet. However, when we > want to use low power states later, it will be necessary to enable > placing all CPUS into a low power state. > > If your external timer is already supported by an existing driver, there > is no reason not to add it now. > >>> A more general approach would be to enable the broadcast hrtimer for >>> arm, as has been done for arm64. >> Yes. I think it should be done by arm framework. > Patches welcome. > > I also think it would make sense to enable this for arm. > > Thanks, > Mark. > > Okay, so this patch is wrong as I expected. Thank you! -- 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] 7+ messages in thread
end of thread, other threads:[~2014-08-29 11:44 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-28 1:40 [RESEND PATCH] ARM: dts: make arch-timer always on in rk3288 soc Kever Yang
[not found] ` <1409190017-12656-1-git-send-email-kever.yang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2014-08-28 9:17 ` Mark Rutland
2014-08-28 15:11 ` Mark Rutland
2014-08-29 0:35 ` Kever Yang
2014-08-29 3:06 ` Huang Tao
[not found] ` <53FFEE40.3010001-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2014-08-29 11:22 ` Mark Rutland
2014-08-29 11:44 ` Huang Tao
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).