* [PATCH] arm: exynos: add generic function to calculate cpu number
@ 2014-04-25 5:44 Chander Kashyap
2014-05-05 4:07 ` Chander Kashyap
0 siblings, 1 reply; 6+ messages in thread
From: Chander Kashyap @ 2014-04-25 5:44 UTC (permalink / raw)
To: linux-samsung-soc
Cc: kgene.kim, tomasz.figa, Chander Kashyap, Chander Kashyap
The address of cpu power registers in pmu is based on cpu number
offsets. This function calculate the same. This is essentially
required in case of multicluster SoC's e.g Exynos5420.
Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
Signed-off-by: Chander Kashyap <k.chander@samsung.com>
---
arch/arm/mach-exynos/regs-pmu.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/mach-exynos/regs-pmu.h b/arch/arm/mach-exynos/regs-pmu.h
index 4f6a256..217da2e 100644
--- a/arch/arm/mach-exynos/regs-pmu.h
+++ b/arch/arm/mach-exynos/regs-pmu.h
@@ -313,4 +313,13 @@
#define EXYNOS5_OPTION_USE_RETENTION (1 << 4)
+#include <asm/cputype.h>
+#define MAX_CPUS_IN_CLUSTER 4
+
+static inline unsigned int exynos_pmu_cpunr(unsigned int mpidr)
+{
+ return ((MPIDR_AFFINITY_LEVEL(mpidr, 1) * MAX_CPUS_IN_CLUSTER)
+ + MPIDR_AFFINITY_LEVEL(mpidr, 0));
+}
+
#endif /* __ASM_ARCH_REGS_PMU_H */
--
1.7.9.5
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH] arm: exynos: add generic function to calculate cpu number
2014-04-25 5:44 [PATCH] arm: exynos: add generic function to calculate cpu number Chander Kashyap
@ 2014-05-05 4:07 ` Chander Kashyap
2014-05-09 7:50 ` Chander Kashyap
0 siblings, 1 reply; 6+ messages in thread
From: Chander Kashyap @ 2014-05-05 4:07 UTC (permalink / raw)
To: linux-samsung-soc@vger.kernel.org
Cc: Kukjin Kim, Tomasz Figa, Chander Kashyap, Chander Kashyap
On 25 April 2014 11:14, Chander Kashyap <chander.kashyap@linaro.org> wrote:
> The address of cpu power registers in pmu is based on cpu number
> offsets. This function calculate the same. This is essentially
> required in case of multicluster SoC's e.g Exynos5420.
>
> Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
> Signed-off-by: Chander Kashyap <k.chander@samsung.com>
> ---
> arch/arm/mach-exynos/regs-pmu.h | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/arch/arm/mach-exynos/regs-pmu.h b/arch/arm/mach-exynos/regs-pmu.h
> index 4f6a256..217da2e 100644
> --- a/arch/arm/mach-exynos/regs-pmu.h
> +++ b/arch/arm/mach-exynos/regs-pmu.h
> @@ -313,4 +313,13 @@
>
> #define EXYNOS5_OPTION_USE_RETENTION (1 << 4)
>
> +#include <asm/cputype.h>
> +#define MAX_CPUS_IN_CLUSTER 4
> +
> +static inline unsigned int exynos_pmu_cpunr(unsigned int mpidr)
> +{
> + return ((MPIDR_AFFINITY_LEVEL(mpidr, 1) * MAX_CPUS_IN_CLUSTER)
> + + MPIDR_AFFINITY_LEVEL(mpidr, 0));
> +}
> +
> #endif /* __ASM_ARCH_REGS_PMU_H */
> --
> 1.7.9.5
>
Kukjin, Can you please have a look.
--
with warm regards,
Chander Kashyap
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] arm: exynos: add generic function to calculate cpu number
2014-05-05 4:07 ` Chander Kashyap
@ 2014-05-09 7:50 ` Chander Kashyap
2014-05-09 8:17 ` Tomasz Figa
0 siblings, 1 reply; 6+ messages in thread
From: Chander Kashyap @ 2014-05-09 7:50 UTC (permalink / raw)
To: linux-samsung-soc@vger.kernel.org
Cc: Kukjin Kim, Tomasz Figa, Chander Kashyap, Chander Kashyap
On 5 May 2014 09:37, Chander Kashyap <chander.kashyap@linaro.org> wrote:
> On 25 April 2014 11:14, Chander Kashyap <chander.kashyap@linaro.org> wrote:
>> The address of cpu power registers in pmu is based on cpu number
>> offsets. This function calculate the same. This is essentially
>> required in case of multicluster SoC's e.g Exynos5420.
>>
>> Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
>> Signed-off-by: Chander Kashyap <k.chander@samsung.com>
>> ---
>> arch/arm/mach-exynos/regs-pmu.h | 9 +++++++++
>> 1 file changed, 9 insertions(+)
>>
>> diff --git a/arch/arm/mach-exynos/regs-pmu.h b/arch/arm/mach-exynos/regs-pmu.h
>> index 4f6a256..217da2e 100644
>> --- a/arch/arm/mach-exynos/regs-pmu.h
>> +++ b/arch/arm/mach-exynos/regs-pmu.h
>> @@ -313,4 +313,13 @@
>>
>> #define EXYNOS5_OPTION_USE_RETENTION (1 << 4)
>>
>> +#include <asm/cputype.h>
>> +#define MAX_CPUS_IN_CLUSTER 4
>> +
>> +static inline unsigned int exynos_pmu_cpunr(unsigned int mpidr)
>> +{
>> + return ((MPIDR_AFFINITY_LEVEL(mpidr, 1) * MAX_CPUS_IN_CLUSTER)
>> + + MPIDR_AFFINITY_LEVEL(mpidr, 0));
>> +}
>> +
>> #endif /* __ASM_ARCH_REGS_PMU_H */
>> --
>> 1.7.9.5
>>
>
> Kukjin, Can you please have a look.
>
>
>
> --
> with warm regards,
> Chander Kashyap
Hi Kgene,
Can you take this patch if no issues with it.
--
with warm regards,
Chander Kashyap
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] arm: exynos: add generic function to calculate cpu number
2014-05-09 7:50 ` Chander Kashyap
@ 2014-05-09 8:17 ` Tomasz Figa
2014-05-09 8:34 ` Chander Kashyap
0 siblings, 1 reply; 6+ messages in thread
From: Tomasz Figa @ 2014-05-09 8:17 UTC (permalink / raw)
To: Chander Kashyap, linux-samsung-soc@vger.kernel.org
Cc: Kukjin Kim, Tomasz Figa, Chander Kashyap
Hi Chander,
On 09.05.2014 09:50, Chander Kashyap wrote:
> On 5 May 2014 09:37, Chander Kashyap <chander.kashyap@linaro.org> wrote:
>> On 25 April 2014 11:14, Chander Kashyap <chander.kashyap@linaro.org> wrote:
>>> The address of cpu power registers in pmu is based on cpu number
>>> offsets. This function calculate the same. This is essentially
>>> required in case of multicluster SoC's e.g Exynos5420.
>>>
>>> Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
>>> Signed-off-by: Chander Kashyap <k.chander@samsung.com>
>>> ---
>>> arch/arm/mach-exynos/regs-pmu.h | 9 +++++++++
>>> 1 file changed, 9 insertions(+)
>>>
>>> diff --git a/arch/arm/mach-exynos/regs-pmu.h b/arch/arm/mach-exynos/regs-pmu.h
>>> index 4f6a256..217da2e 100644
>>> --- a/arch/arm/mach-exynos/regs-pmu.h
>>> +++ b/arch/arm/mach-exynos/regs-pmu.h
>>> @@ -313,4 +313,13 @@
>>>
>>> #define EXYNOS5_OPTION_USE_RETENTION (1 << 4)
>>>
>>> +#include <asm/cputype.h>
>>> +#define MAX_CPUS_IN_CLUSTER 4
>>> +
>>> +static inline unsigned int exynos_pmu_cpunr(unsigned int mpidr)
>>> +{
>>> + return ((MPIDR_AFFINITY_LEVEL(mpidr, 1) * MAX_CPUS_IN_CLUSTER)
>>> + + MPIDR_AFFINITY_LEVEL(mpidr, 0));
>>> +}
>>> +
>>> #endif /* __ASM_ARCH_REGS_PMU_H */
>>> --
>>> 1.7.9.5
>>>
>>
>> Kukjin, Can you please have a look.
>>
>>
>>
>> --
>> with warm regards,
>> Chander Kashyap
> Hi Kgene,
> Can you take this patch if no issues with it.
Is there any user for this function right now? Shouldn't this patch
rather be included as a part of some series that adds actual users of it?
Best regards,
Tomasz
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] arm: exynos: add generic function to calculate cpu number
2014-05-09 8:17 ` Tomasz Figa
@ 2014-05-09 8:34 ` Chander Kashyap
2014-05-14 8:01 ` Chander Kashyap
0 siblings, 1 reply; 6+ messages in thread
From: Chander Kashyap @ 2014-05-09 8:34 UTC (permalink / raw)
To: Tomasz Figa
Cc: linux-samsung-soc@vger.kernel.org, Kukjin Kim, Tomasz Figa,
Chander Kashyap
On 9 May 2014 13:47, Tomasz Figa <t.figa@samsung.com> wrote:
> Hi Chander,
>
> On 09.05.2014 09:50, Chander Kashyap wrote:
>> On 5 May 2014 09:37, Chander Kashyap <chander.kashyap@linaro.org> wrote:
>>> On 25 April 2014 11:14, Chander Kashyap <chander.kashyap@linaro.org> wrote:
>>>> The address of cpu power registers in pmu is based on cpu number
>>>> offsets. This function calculate the same. This is essentially
>>>> required in case of multicluster SoC's e.g Exynos5420.
>>>>
>>>> Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
>>>> Signed-off-by: Chander Kashyap <k.chander@samsung.com>
>>>> ---
>>>> arch/arm/mach-exynos/regs-pmu.h | 9 +++++++++
>>>> 1 file changed, 9 insertions(+)
>>>>
>>>> diff --git a/arch/arm/mach-exynos/regs-pmu.h b/arch/arm/mach-exynos/regs-pmu.h
>>>> index 4f6a256..217da2e 100644
>>>> --- a/arch/arm/mach-exynos/regs-pmu.h
>>>> +++ b/arch/arm/mach-exynos/regs-pmu.h
>>>> @@ -313,4 +313,13 @@
>>>>
>>>> #define EXYNOS5_OPTION_USE_RETENTION (1 << 4)
>>>>
>>>> +#include <asm/cputype.h>
>>>> +#define MAX_CPUS_IN_CLUSTER 4
>>>> +
>>>> +static inline unsigned int exynos_pmu_cpunr(unsigned int mpidr)
>>>> +{
>>>> + return ((MPIDR_AFFINITY_LEVEL(mpidr, 1) * MAX_CPUS_IN_CLUSTER)
>>>> + + MPIDR_AFFINITY_LEVEL(mpidr, 0));
>>>> +}
>>>> +
>>>> #endif /* __ASM_ARCH_REGS_PMU_H */
>>>> --
>>>> 1.7.9.5
>>>>
>>>
>>> Kukjin, Can you please have a look.
>>>
>>>
>>>
>>> --
>>> with warm regards,
>>> Chander Kashyap
>> Hi Kgene,
>> Can you take this patch if no issues with it.
>
> Is there any user for this function right now? Shouldn't this patch
> rather be included as a part of some series that adds actual users of it?
Hi Tomasz,
Exynos5420 patches have dependency on this.
Those patches already posted.
>
> Best regards,
> Tomasz
>
--
with warm regards,
Chander Kashyap
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] arm: exynos: add generic function to calculate cpu number
2014-05-09 8:34 ` Chander Kashyap
@ 2014-05-14 8:01 ` Chander Kashyap
0 siblings, 0 replies; 6+ messages in thread
From: Chander Kashyap @ 2014-05-14 8:01 UTC (permalink / raw)
To: Tomasz Figa
Cc: linux-samsung-soc@vger.kernel.org, Kukjin Kim, Tomasz Figa,
Chander Kashyap
On 9 May 2014 14:04, Chander Kashyap <chander.kashyap@linaro.org> wrote:
> On 9 May 2014 13:47, Tomasz Figa <t.figa@samsung.com> wrote:
>> Hi Chander,
>>
>> On 09.05.2014 09:50, Chander Kashyap wrote:
>>> On 5 May 2014 09:37, Chander Kashyap <chander.kashyap@linaro.org> wrote:
>>>> On 25 April 2014 11:14, Chander Kashyap <chander.kashyap@linaro.org> wrote:
>>>>> The address of cpu power registers in pmu is based on cpu number
>>>>> offsets. This function calculate the same. This is essentially
>>>>> required in case of multicluster SoC's e.g Exynos5420.
>>>>>
>>>>> Signed-off-by: Chander Kashyap <chander.kashyap@linaro.org>
>>>>> Signed-off-by: Chander Kashyap <k.chander@samsung.com>
>>>>> ---
>>>>> arch/arm/mach-exynos/regs-pmu.h | 9 +++++++++
>>>>> 1 file changed, 9 insertions(+)
>>>>>
>>>>> diff --git a/arch/arm/mach-exynos/regs-pmu.h b/arch/arm/mach-exynos/regs-pmu.h
>>>>> index 4f6a256..217da2e 100644
>>>>> --- a/arch/arm/mach-exynos/regs-pmu.h
>>>>> +++ b/arch/arm/mach-exynos/regs-pmu.h
>>>>> @@ -313,4 +313,13 @@
>>>>>
>>>>> #define EXYNOS5_OPTION_USE_RETENTION (1 << 4)
>>>>>
>>>>> +#include <asm/cputype.h>
>>>>> +#define MAX_CPUS_IN_CLUSTER 4
>>>>> +
>>>>> +static inline unsigned int exynos_pmu_cpunr(unsigned int mpidr)
>>>>> +{
>>>>> + return ((MPIDR_AFFINITY_LEVEL(mpidr, 1) * MAX_CPUS_IN_CLUSTER)
>>>>> + + MPIDR_AFFINITY_LEVEL(mpidr, 0));
>>>>> +}
>>>>> +
>>>>> #endif /* __ASM_ARCH_REGS_PMU_H */
>>>>> --
>>>>> 1.7.9.5
>>>>>
>>>>
>>>> Kukjin, Can you please have a look.
>>>>
>>>>
>>>>
>>>> --
>>>> with warm regards,
>>>> Chander Kashyap
>>> Hi Kgene,
>>> Can you take this patch if no issues with it.
>>
>> Is there any user for this function right now? Shouldn't this patch
>> rather be included as a part of some series that adds actual users of it?
>
> Hi Tomasz,
> Exynos5420 patches have dependency on this.
> Those patches already posted.
>
Please ignore. Sending this with cpuidle patches
>
>>
>> Best regards,
>> Tomasz
>>
>
>
>
> --
> with warm regards,
> Chander Kashyap
--
with warm regards,
Chander Kashyap
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-05-14 8:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-25 5:44 [PATCH] arm: exynos: add generic function to calculate cpu number Chander Kashyap
2014-05-05 4:07 ` Chander Kashyap
2014-05-09 7:50 ` Chander Kashyap
2014-05-09 8:17 ` Tomasz Figa
2014-05-09 8:34 ` Chander Kashyap
2014-05-14 8:01 ` Chander Kashyap
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.