All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: Enable SPRD_TIMER
@ 2018-02-06 10:36 ` Baolin Wang
  0 siblings, 0 replies; 10+ messages in thread
From: Baolin Wang @ 2018-02-06 10:36 UTC (permalink / raw)
  To: catalin.marinas, will.deacon, arnd
  Cc: linux-arm-kernel, linux-kernel, broonie, baolin.wang

Enable Spreadtrum timer driver for Spreadtrum plaform, which will be used
as tick broadcast device.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
---
 arch/arm64/Kconfig.platforms |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index fbedbd8..3e0bbb0 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -224,6 +224,7 @@ config ARCH_TEGRA
 
 config ARCH_SPRD
 	bool "Spreadtrum SoC platform"
+	select SPRD_TIMER
 	help
 	  Support for Spreadtrum ARM based SoCs
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH] arm64: Enable SPRD_TIMER
@ 2018-02-06 10:36 ` Baolin Wang
  0 siblings, 0 replies; 10+ messages in thread
From: Baolin Wang @ 2018-02-06 10:36 UTC (permalink / raw)
  To: linux-arm-kernel

Enable Spreadtrum timer driver for Spreadtrum plaform, which will be used
as tick broadcast device.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
---
 arch/arm64/Kconfig.platforms |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index fbedbd8..3e0bbb0 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -224,6 +224,7 @@ config ARCH_TEGRA
 
 config ARCH_SPRD
 	bool "Spreadtrum SoC platform"
+	select SPRD_TIMER
 	help
 	  Support for Spreadtrum ARM based SoCs
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] arm64: Enable SPRD_TIMER
  2018-02-06 10:36 ` Baolin Wang
@ 2018-02-07  2:31   ` Chunyan Zhang
  -1 siblings, 0 replies; 10+ messages in thread
From: Chunyan Zhang @ 2018-02-07  2:31 UTC (permalink / raw)
  To: Baolin Wang
  Cc: Catalin Marinas, Will Deacon, Arnd Bergmann, Linux ARM,
	Linux Kernel Mailing List, Mark Brown,
	Orson Zhai (翟京)

Hi Baolin,

On 6 February 2018 at 18:36, Baolin Wang <baolin.wang@linaro.org> wrote:
> Enable Spreadtrum timer driver for Spreadtrum plaform, which will be used
> as tick broadcast device.
>
> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
> ---
>  arch/arm64/Kconfig.platforms |    1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index fbedbd8..3e0bbb0 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -224,6 +224,7 @@ config ARCH_TEGRA
>
>  config ARCH_SPRD
>         bool "Spreadtrum SoC platform"
> +       select SPRD_TIMER

Do we have to select SPRD_TIMER here? SC9836, SC9860 have been working
with a minimum system without SPRD TIMER.

Thanks,
Chunyan

>         help
>           Support for Spreadtrum ARM based SoCs
>
> --
> 1.7.9.5
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] arm64: Enable SPRD_TIMER
@ 2018-02-07  2:31   ` Chunyan Zhang
  0 siblings, 0 replies; 10+ messages in thread
From: Chunyan Zhang @ 2018-02-07  2:31 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Baolin,

On 6 February 2018 at 18:36, Baolin Wang <baolin.wang@linaro.org> wrote:
> Enable Spreadtrum timer driver for Spreadtrum plaform, which will be used
> as tick broadcast device.
>
> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
> ---
>  arch/arm64/Kconfig.platforms |    1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index fbedbd8..3e0bbb0 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -224,6 +224,7 @@ config ARCH_TEGRA
>
>  config ARCH_SPRD
>         bool "Spreadtrum SoC platform"
> +       select SPRD_TIMER

Do we have to select SPRD_TIMER here? SC9836, SC9860 have been working
with a minimum system without SPRD TIMER.

Thanks,
Chunyan

>         help
>           Support for Spreadtrum ARM based SoCs
>
> --
> 1.7.9.5
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] arm64: Enable SPRD_TIMER
  2018-02-07  2:31   ` Chunyan Zhang
@ 2018-02-07  3:12     ` Baolin Wang
  -1 siblings, 0 replies; 10+ messages in thread
From: Baolin Wang @ 2018-02-07  3:12 UTC (permalink / raw)
  To: Chunyan Zhang
  Cc: Catalin Marinas, Will Deacon, Arnd Bergmann, Linux ARM,
	Linux Kernel Mailing List, Mark Brown,
	Orson Zhai (翟京)

On 7 February 2018 at 10:31, Chunyan Zhang <zhang.lyra@gmail.com> wrote:
> Hi Baolin,
>
> On 6 February 2018 at 18:36, Baolin Wang <baolin.wang@linaro.org> wrote:
>> Enable Spreadtrum timer driver for Spreadtrum plaform, which will be used
>> as tick broadcast device.
>>
>> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
>> ---
>>  arch/arm64/Kconfig.platforms |    1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
>> index fbedbd8..3e0bbb0 100644
>> --- a/arch/arm64/Kconfig.platforms
>> +++ b/arch/arm64/Kconfig.platforms
>> @@ -224,6 +224,7 @@ config ARCH_TEGRA
>>
>>  config ARCH_SPRD
>>         bool "Spreadtrum SoC platform"
>> +       select SPRD_TIMER
>
> Do we have to select SPRD_TIMER here? SC9836, SC9860 have been working
> with a minimum system without SPRD TIMER.

Yes, we need register this timer as the tick broadcast device,
otherwise we will use one hrtimer to be registered the broadcast
device, which will affect the No-Hz of CPU attaching the
broadcast-hrtimer.

-- 
Baolin.wang
Best Regards

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] arm64: Enable SPRD_TIMER
@ 2018-02-07  3:12     ` Baolin Wang
  0 siblings, 0 replies; 10+ messages in thread
From: Baolin Wang @ 2018-02-07  3:12 UTC (permalink / raw)
  To: linux-arm-kernel

On 7 February 2018 at 10:31, Chunyan Zhang <zhang.lyra@gmail.com> wrote:
> Hi Baolin,
>
> On 6 February 2018 at 18:36, Baolin Wang <baolin.wang@linaro.org> wrote:
>> Enable Spreadtrum timer driver for Spreadtrum plaform, which will be used
>> as tick broadcast device.
>>
>> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
>> ---
>>  arch/arm64/Kconfig.platforms |    1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
>> index fbedbd8..3e0bbb0 100644
>> --- a/arch/arm64/Kconfig.platforms
>> +++ b/arch/arm64/Kconfig.platforms
>> @@ -224,6 +224,7 @@ config ARCH_TEGRA
>>
>>  config ARCH_SPRD
>>         bool "Spreadtrum SoC platform"
>> +       select SPRD_TIMER
>
> Do we have to select SPRD_TIMER here? SC9836, SC9860 have been working
> with a minimum system without SPRD TIMER.

Yes, we need register this timer as the tick broadcast device,
otherwise we will use one hrtimer to be registered the broadcast
device, which will affect the No-Hz of CPU attaching the
broadcast-hrtimer.

-- 
Baolin.wang
Best Regards

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] arm64: Enable SPRD_TIMER
  2018-02-07  3:12     ` Baolin Wang
@ 2018-02-11 11:41       ` Chunyan Zhang
  -1 siblings, 0 replies; 10+ messages in thread
From: Chunyan Zhang @ 2018-02-11 11:41 UTC (permalink / raw)
  To: Baolin Wang
  Cc: Catalin Marinas, Will Deacon, Arnd Bergmann, Linux ARM,
	Linux Kernel Mailing List, Mark Brown,
	Orson Zhai (翟京),
	nianfu.bai, geng.ren

Hi Baolin,

On 7 February 2018 at 11:12, Baolin Wang <baolin.wang@linaro.org> wrote:
> On 7 February 2018 at 10:31, Chunyan Zhang <zhang.lyra@gmail.com> wrote:
>> Hi Baolin,
>>
>> On 6 February 2018 at 18:36, Baolin Wang <baolin.wang@linaro.org> wrote:
>>> Enable Spreadtrum timer driver for Spreadtrum plaform, which will be used
>>> as tick broadcast device.
>>>
>>> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
>>> ---
>>>  arch/arm64/Kconfig.platforms |    1 +
>>>  1 file changed, 1 insertion(+)
>>>
>>> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
>>> index fbedbd8..3e0bbb0 100644
>>> --- a/arch/arm64/Kconfig.platforms
>>> +++ b/arch/arm64/Kconfig.platforms
>>> @@ -224,6 +224,7 @@ config ARCH_TEGRA
>>>
>>>  config ARCH_SPRD
>>>         bool "Spreadtrum SoC platform"
>>> +       select SPRD_TIMER
>>
>> Do we have to select SPRD_TIMER here? SC9836, SC9860 have been working
>> with a minimum system without SPRD TIMER.
>
> Yes, we need register this timer as the tick broadcast device,
> otherwise we will use one hrtimer to be registered the broadcast
> device, which will affect the No-Hz of CPU attaching the
> broadcast-hrtimer.

Again, Spreadtrum's two boards - SC9836/SC9860 - can run into console
without SPRD_TIMER, we can also debug some kernel origianl feature or
some basic drivers on these two boards, such as CoreSight, clock
driver, etc.

In my opinion we should keep the kernel as simple as possible, the
above information can go to the 'help' graph of SPRD_TIMER in its
Kconfig.

Thanks,
Chunyan

>
> --
> Baolin.wang
> Best Regards

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] arm64: Enable SPRD_TIMER
@ 2018-02-11 11:41       ` Chunyan Zhang
  0 siblings, 0 replies; 10+ messages in thread
From: Chunyan Zhang @ 2018-02-11 11:41 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Baolin,

On 7 February 2018 at 11:12, Baolin Wang <baolin.wang@linaro.org> wrote:
> On 7 February 2018 at 10:31, Chunyan Zhang <zhang.lyra@gmail.com> wrote:
>> Hi Baolin,
>>
>> On 6 February 2018 at 18:36, Baolin Wang <baolin.wang@linaro.org> wrote:
>>> Enable Spreadtrum timer driver for Spreadtrum plaform, which will be used
>>> as tick broadcast device.
>>>
>>> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
>>> ---
>>>  arch/arm64/Kconfig.platforms |    1 +
>>>  1 file changed, 1 insertion(+)
>>>
>>> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
>>> index fbedbd8..3e0bbb0 100644
>>> --- a/arch/arm64/Kconfig.platforms
>>> +++ b/arch/arm64/Kconfig.platforms
>>> @@ -224,6 +224,7 @@ config ARCH_TEGRA
>>>
>>>  config ARCH_SPRD
>>>         bool "Spreadtrum SoC platform"
>>> +       select SPRD_TIMER
>>
>> Do we have to select SPRD_TIMER here? SC9836, SC9860 have been working
>> with a minimum system without SPRD TIMER.
>
> Yes, we need register this timer as the tick broadcast device,
> otherwise we will use one hrtimer to be registered the broadcast
> device, which will affect the No-Hz of CPU attaching the
> broadcast-hrtimer.

Again, Spreadtrum's two boards - SC9836/SC9860 - can run into console
without SPRD_TIMER, we can also debug some kernel origianl feature or
some basic drivers on these two boards, such as CoreSight, clock
driver, etc.

In my opinion we should keep the kernel as simple as possible, the
above information can go to the 'help' graph of SPRD_TIMER in its
Kconfig.

Thanks,
Chunyan

>
> --
> Baolin.wang
> Best Regards

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] arm64: Enable SPRD_TIMER
  2018-02-11 11:41       ` Chunyan Zhang
@ 2018-02-14  3:49         ` Baolin Wang
  -1 siblings, 0 replies; 10+ messages in thread
From: Baolin Wang @ 2018-02-14  3:49 UTC (permalink / raw)
  To: Chunyan Zhang
  Cc: Catalin Marinas, Will Deacon, Arnd Bergmann, Linux ARM,
	Linux Kernel Mailing List, Mark Brown,
	Orson Zhai (翟京),
	nianfu.bai, Geng Ren

Hi Chunyan,

On 11 February 2018 at 19:41, Chunyan Zhang <zhang.lyra@gmail.com> wrote:
> Hi Baolin,
>
> On 7 February 2018 at 11:12, Baolin Wang <baolin.wang@linaro.org> wrote:
>> On 7 February 2018 at 10:31, Chunyan Zhang <zhang.lyra@gmail.com> wrote:
>>> Hi Baolin,
>>>
>>> On 6 February 2018 at 18:36, Baolin Wang <baolin.wang@linaro.org> wrote:
>>>> Enable Spreadtrum timer driver for Spreadtrum plaform, which will be used
>>>> as tick broadcast device.
>>>>
>>>> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
>>>> ---
>>>>  arch/arm64/Kconfig.platforms |    1 +
>>>>  1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
>>>> index fbedbd8..3e0bbb0 100644
>>>> --- a/arch/arm64/Kconfig.platforms
>>>> +++ b/arch/arm64/Kconfig.platforms
>>>> @@ -224,6 +224,7 @@ config ARCH_TEGRA
>>>>
>>>>  config ARCH_SPRD
>>>>         bool "Spreadtrum SoC platform"
>>>> +       select SPRD_TIMER
>>>
>>> Do we have to select SPRD_TIMER here? SC9836, SC9860 have been working
>>> with a minimum system without SPRD TIMER.
>>
>> Yes, we need register this timer as the tick broadcast device,
>> otherwise we will use one hrtimer to be registered the broadcast
>> device, which will affect the No-Hz of CPU attaching the
>> broadcast-hrtimer.
>
> Again, Spreadtrum's two boards - SC9836/SC9860 - can run into console
> without SPRD_TIMER, we can also debug some kernel origianl feature or
> some basic drivers on these two boards, such as CoreSight, clock
> driver, etc.

Ii think you misunderstood my meaning, I did not say it can not work
without the SPRD TIMER. Let me try to explain it again, it we did not
select the Spreadtrum timer, we will use one hrtimer to be the tick
broadcast device, so in this situation, the cpu attaching the
broadcast-hrtimer can not be entered into No-Hz to save power to avoid
dead-lock issue. But if we register one timer as the tick broadcast
device, then all cpus can be entered No-Hz to save power. So that's
why we need select the SPRD_TIMER.

>
> In my opinion we should keep the kernel as simple as possible, the
> above information can go to the 'help' graph of SPRD_TIMER in its
> Kconfig.

That's one optimization, not the issue of making the kernel more
complicated. OK, I will add some kerneldoc to explain that.

-- 
Baolin.wang
Best Regards

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] arm64: Enable SPRD_TIMER
@ 2018-02-14  3:49         ` Baolin Wang
  0 siblings, 0 replies; 10+ messages in thread
From: Baolin Wang @ 2018-02-14  3:49 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Chunyan,

On 11 February 2018 at 19:41, Chunyan Zhang <zhang.lyra@gmail.com> wrote:
> Hi Baolin,
>
> On 7 February 2018 at 11:12, Baolin Wang <baolin.wang@linaro.org> wrote:
>> On 7 February 2018 at 10:31, Chunyan Zhang <zhang.lyra@gmail.com> wrote:
>>> Hi Baolin,
>>>
>>> On 6 February 2018 at 18:36, Baolin Wang <baolin.wang@linaro.org> wrote:
>>>> Enable Spreadtrum timer driver for Spreadtrum plaform, which will be used
>>>> as tick broadcast device.
>>>>
>>>> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
>>>> ---
>>>>  arch/arm64/Kconfig.platforms |    1 +
>>>>  1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
>>>> index fbedbd8..3e0bbb0 100644
>>>> --- a/arch/arm64/Kconfig.platforms
>>>> +++ b/arch/arm64/Kconfig.platforms
>>>> @@ -224,6 +224,7 @@ config ARCH_TEGRA
>>>>
>>>>  config ARCH_SPRD
>>>>         bool "Spreadtrum SoC platform"
>>>> +       select SPRD_TIMER
>>>
>>> Do we have to select SPRD_TIMER here? SC9836, SC9860 have been working
>>> with a minimum system without SPRD TIMER.
>>
>> Yes, we need register this timer as the tick broadcast device,
>> otherwise we will use one hrtimer to be registered the broadcast
>> device, which will affect the No-Hz of CPU attaching the
>> broadcast-hrtimer.
>
> Again, Spreadtrum's two boards - SC9836/SC9860 - can run into console
> without SPRD_TIMER, we can also debug some kernel origianl feature or
> some basic drivers on these two boards, such as CoreSight, clock
> driver, etc.

Ii think you misunderstood my meaning, I did not say it can not work
without the SPRD TIMER. Let me try to explain it again, it we did not
select the Spreadtrum timer, we will use one hrtimer to be the tick
broadcast device, so in this situation, the cpu attaching the
broadcast-hrtimer can not be entered into No-Hz to save power to avoid
dead-lock issue. But if we register one timer as the tick broadcast
device, then all cpus can be entered No-Hz to save power. So that's
why we need select the SPRD_TIMER.

>
> In my opinion we should keep the kernel as simple as possible, the
> above information can go to the 'help' graph of SPRD_TIMER in its
> Kconfig.

That's one optimization, not the issue of making the kernel more
complicated. OK, I will add some kerneldoc to explain that.

-- 
Baolin.wang
Best Regards

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-02-14  3:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-06 10:36 [PATCH] arm64: Enable SPRD_TIMER Baolin Wang
2018-02-06 10:36 ` Baolin Wang
2018-02-07  2:31 ` Chunyan Zhang
2018-02-07  2:31   ` Chunyan Zhang
2018-02-07  3:12   ` Baolin Wang
2018-02-07  3:12     ` Baolin Wang
2018-02-11 11:41     ` Chunyan Zhang
2018-02-11 11:41       ` Chunyan Zhang
2018-02-14  3:49       ` Baolin Wang
2018-02-14  3:49         ` Baolin Wang

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.