diff mbox series

[v10,09/13] drivers: devfreq: events: add Exynos PPMU new events

Message ID 20190614095309.24100-10-l.luba@partner.samsung.com (mailing list archive)
State Not Applicable, archived
Headers show
Series [v10,01/13] clk: samsung: add needed IDs for DMC clocks in Exynos5420 | expand

Commit Message

Lukasz Luba June 14, 2019, 9:53 a.m. UTC
Define new performance events supported by Exynos5422 SoC counters.
The counters are built-in in Dynamic Memory Controller and provide
information regarding memory utilization.

Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com>
---
 drivers/devfreq/event/exynos-ppmu.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Chanwoo Choi June 22, 2019, 1:10 p.m. UTC | #1
Hi,

2019년 6월 14일 (금) 오후 6:54, Lukasz Luba <l.luba@partner.samsung.com>님이 작성:
>
> Define new performance events supported by Exynos5422 SoC counters.
> The counters are built-in in Dynamic Memory Controller and provide
> information regarding memory utilization.
>
> Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com>
> ---
>  drivers/devfreq/event/exynos-ppmu.c | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c
> index c2ea94957501..ce658c262c27 100644
> --- a/drivers/devfreq/event/exynos-ppmu.c
> +++ b/drivers/devfreq/event/exynos-ppmu.c
> @@ -89,6 +89,12 @@ static struct __exynos_ppmu_events {
>         PPMU_EVENT(d1-cpu),
>         PPMU_EVENT(d1-general),
>         PPMU_EVENT(d1-rt),
> +
> +       /* For Exynos5422 SoC */
> +       PPMU_EVENT(dmc0_0),
> +       PPMU_EVENT(dmc0_1),
> +       PPMU_EVENT(dmc1_0),
> +       PPMU_EVENT(dmc1_1),
>  };
>
>  static int exynos_ppmu_find_ppmu_id(struct devfreq_event_dev *edev)
> --
> 2.17.1
>

Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Lukasz Luba June 25, 2019, 7:31 a.m. UTC | #2
On 6/22/19 3:10 PM, Chanwoo Choi wrote:
> Hi,
> 
> 2019년 6월 14일 (금) 오후 6:54, Lukasz Luba <l.luba@partner.samsung.com>님이 작성:
>>
>> Define new performance events supported by Exynos5422 SoC counters.
>> The counters are built-in in Dynamic Memory Controller and provide
>> information regarding memory utilization.
>>
>> Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com>
>> ---
>>   drivers/devfreq/event/exynos-ppmu.c | 6 ++++++
>>   1 file changed, 6 insertions(+)
>>
>> diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c
>> index c2ea94957501..ce658c262c27 100644
>> --- a/drivers/devfreq/event/exynos-ppmu.c
>> +++ b/drivers/devfreq/event/exynos-ppmu.c
>> @@ -89,6 +89,12 @@ static struct __exynos_ppmu_events {
>>          PPMU_EVENT(d1-cpu),
>>          PPMU_EVENT(d1-general),
>>          PPMU_EVENT(d1-rt),
>> +
>> +       /* For Exynos5422 SoC */
>> +       PPMU_EVENT(dmc0_0),
>> +       PPMU_EVENT(dmc0_1),
>> +       PPMU_EVENT(dmc1_0),
>> +       PPMU_EVENT(dmc1_1),
>>   };
>>
>>   static int exynos_ppmu_find_ppmu_id(struct devfreq_event_dev *edev)
>> --
>> 2.17.1
>>
> 
> Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
> 
Thank you Chanwoo.

Regards,
Lukasz
Chanwoo Choi June 25, 2019, 7:38 a.m. UTC | #3
On 19. 6. 25. 오후 4:31, Lukasz Luba wrote:
> 
> 
> On 6/22/19 3:10 PM, Chanwoo Choi wrote:
>> Hi,
>>
>> 2019년 6월 14일 (금) 오후 6:54, Lukasz Luba <l.luba@partner.samsung.com>님이 작성:
>>>
>>> Define new performance events supported by Exynos5422 SoC counters.
>>> The counters are built-in in Dynamic Memory Controller and provide
>>> information regarding memory utilization.
>>>
>>> Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com>
>>> ---
>>>   drivers/devfreq/event/exynos-ppmu.c | 6 ++++++
>>>   1 file changed, 6 insertions(+)
>>>
>>> diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c
>>> index c2ea94957501..ce658c262c27 100644
>>> --- a/drivers/devfreq/event/exynos-ppmu.c
>>> +++ b/drivers/devfreq/event/exynos-ppmu.c
>>> @@ -89,6 +89,12 @@ static struct __exynos_ppmu_events {
>>>          PPMU_EVENT(d1-cpu),
>>>          PPMU_EVENT(d1-general),
>>>          PPMU_EVENT(d1-rt),
>>> +
>>> +       /* For Exynos5422 SoC */
>>> +       PPMU_EVENT(dmc0_0),
>>> +       PPMU_EVENT(dmc0_1),
>>> +       PPMU_EVENT(dmc1_0),
>>> +       PPMU_EVENT(dmc1_1),
>>>   };
>>>
>>>   static int exynos_ppmu_find_ppmu_id(struct devfreq_event_dev *edev)
>>> --
>>> 2.17.1
>>>
>>
>> Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
>>
> Thank you Chanwoo.

It[1] was merged to devfreq.git.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/mzx/devfreq.git/commit/?h=for-next
diff mbox series

Patch

diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c
index c2ea94957501..ce658c262c27 100644
--- a/drivers/devfreq/event/exynos-ppmu.c
+++ b/drivers/devfreq/event/exynos-ppmu.c
@@ -89,6 +89,12 @@  static struct __exynos_ppmu_events {
 	PPMU_EVENT(d1-cpu),
 	PPMU_EVENT(d1-general),
 	PPMU_EVENT(d1-rt),
+
+	/* For Exynos5422 SoC */
+	PPMU_EVENT(dmc0_0),
+	PPMU_EVENT(dmc0_1),
+	PPMU_EVENT(dmc1_0),
+	PPMU_EVENT(dmc1_1),
 };
 
 static int exynos_ppmu_find_ppmu_id(struct devfreq_event_dev *edev)