All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@de.bosch.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 05/10] arm64: dts: r8a7795: Add pmu device nodes
Date: Tue, 12 Jan 2016 08:37:37 +0000	[thread overview]
Message-ID: <5694BB51.9000800@de.bosch.com> (raw)
In-Reply-To: <20160111103916.GC6499@leverpostej>

On 11.01.2016 11:39, Mark Rutland wrote:
> On Sat, Jan 09, 2016 at 07:36:42AM +0100, Dirk Behme wrote:
>> On 18.12.2015 11:47, Sudeep Holla wrote:
>>>
>>>
>>> On 18/12/15 10:44, Dirk Behme wrote:
>>>> On 18.12.2015 11:16, Sudeep Holla wrote:
>>>>>
>>>>>
>>>>> On 18/12/15 02:29, Simon Horman wrote:
>>>>>> From: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com>
>>>>>>
>>>>>> Enabling the performance monitor unit on r8a7795.
>>>>>>
>>>>>> Signed-off-by: Masaru Nagai <masaru.nagai.vx@renesas.com>
>>>>>> Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com>
>>>>>> Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
>>>>>> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
>>>>>> ---
>>>>>>   arch/arm64/boot/dts/renesas/r8a7795.dtsi | 12 ++++++++++++
>>>>>>   1 file changed, 12 insertions(+)
>>>>>>
>>>>>> diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
>>>>>> b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
>>>>>> index 4d43cf31418f..b9229a49dabc 100644
>>>>>> --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
>>>>>> +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
>>>>>> @@ -230,6 +230,18 @@
>>>>>>               power-domains = <&cpg>;
>>>>>>           };
>>>>>>
>>>>>> +        pmu {
>>>>>> +            compatible = "arm,armv8-pmuv3";
>>>>>
>>>>> Please use arm,cortex-a57-pmu to be more specific. IIRC I mentioned
>>>>> this
>>>>> for some shmobile platform recently.
>>>>
>>>>
>>>> Yes. But as this patch has been applied already to some branches, I
>>>> incorporated your a57-pmu hint with an additional update patch:
>>>>
>>>> http://marc.info/?l=linux-sh&m\x145011467914857
>>>>
>>>> Feel free to squash if still possible.
>>>>
>>>
>>> Ah OK, I didn't know the exact dts name, sorry for the noise.
>>> Better if it was posted as part of this series :)
>>
>>
>> I finally found some time to test this
>>
>> http://marc.info/?l=linux-sh&m\x145011467914857
>>
>> and surprisingly it doesn't seem to work:
>>
>> Using "arm,cortex-a57-pmu" results in
>>
>> hw perfevents: enabled with armv8_cortex_a57 PMU driver, 7 counters
>> available
>
> This means all the probing logic worked for the A57 PMU.
>
>> hw perfevents: failed to probe PMU!
>> hw perfevents: failed to register PMU devices!
>
> These are printed in arm_pmu_device_probe, and following the logic we
> must have succesfully allocated the struct pmu, but failed in either
> of_pmu_irq_cfg or init_fn (AKA armv8_a53_pmu_init).
>
> In armv8_a53_pmu_init we call armv8pmu_probe_num_events, which will try
> to SMP cross-call to an A53 core to probe the number of countesr
> implemented. Perhaps the cross-call is failing.
>
> Were the A53s online at this point?


Ah, indeed, the A53s failed to run.

Maybe anything like

http://lists.infradead.org/pipermail/linux-arm-kernel/2016-January/398773.html

helps to make this more obvious, then?

Thanks!

Best regards

Dirk



WARNING: multiple messages have this Message-ID (diff)
From: dirk.behme@de.bosch.com (Dirk Behme)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 05/10] arm64: dts: r8a7795: Add pmu device nodes
Date: Tue, 12 Jan 2016 09:37:37 +0100	[thread overview]
Message-ID: <5694BB51.9000800@de.bosch.com> (raw)
In-Reply-To: <20160111103916.GC6499@leverpostej>

On 11.01.2016 11:39, Mark Rutland wrote:
> On Sat, Jan 09, 2016 at 07:36:42AM +0100, Dirk Behme wrote:
>> On 18.12.2015 11:47, Sudeep Holla wrote:
>>>
>>>
>>> On 18/12/15 10:44, Dirk Behme wrote:
>>>> On 18.12.2015 11:16, Sudeep Holla wrote:
>>>>>
>>>>>
>>>>> On 18/12/15 02:29, Simon Horman wrote:
>>>>>> From: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com>
>>>>>>
>>>>>> Enabling the performance monitor unit on r8a7795.
>>>>>>
>>>>>> Signed-off-by: Masaru Nagai <masaru.nagai.vx@renesas.com>
>>>>>> Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com>
>>>>>> Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
>>>>>> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
>>>>>> ---
>>>>>>   arch/arm64/boot/dts/renesas/r8a7795.dtsi | 12 ++++++++++++
>>>>>>   1 file changed, 12 insertions(+)
>>>>>>
>>>>>> diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
>>>>>> b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
>>>>>> index 4d43cf31418f..b9229a49dabc 100644
>>>>>> --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
>>>>>> +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi
>>>>>> @@ -230,6 +230,18 @@
>>>>>>               power-domains = <&cpg>;
>>>>>>           };
>>>>>>
>>>>>> +        pmu {
>>>>>> +            compatible = "arm,armv8-pmuv3";
>>>>>
>>>>> Please use arm,cortex-a57-pmu to be more specific. IIRC I mentioned
>>>>> this
>>>>> for some shmobile platform recently.
>>>>
>>>>
>>>> Yes. But as this patch has been applied already to some branches, I
>>>> incorporated your a57-pmu hint with an additional update patch:
>>>>
>>>> http://marc.info/?l=linux-sh&m=145011467914857
>>>>
>>>> Feel free to squash if still possible.
>>>>
>>>
>>> Ah OK, I didn't know the exact dts name, sorry for the noise.
>>> Better if it was posted as part of this series :)
>>
>>
>> I finally found some time to test this
>>
>> http://marc.info/?l=linux-sh&m=145011467914857
>>
>> and surprisingly it doesn't seem to work:
>>
>> Using "arm,cortex-a57-pmu" results in
>>
>> hw perfevents: enabled with armv8_cortex_a57 PMU driver, 7 counters
>> available
>
> This means all the probing logic worked for the A57 PMU.
>
>> hw perfevents: failed to probe PMU!
>> hw perfevents: failed to register PMU devices!
>
> These are printed in arm_pmu_device_probe, and following the logic we
> must have succesfully allocated the struct pmu, but failed in either
> of_pmu_irq_cfg or init_fn (AKA armv8_a53_pmu_init).
>
> In armv8_a53_pmu_init we call armv8pmu_probe_num_events, which will try
> to SMP cross-call to an A53 core to probe the number of countesr
> implemented. Perhaps the cross-call is failing.
>
> Were the A53s online at this point?


Ah, indeed, the A53s failed to run.

Maybe anything like

http://lists.infradead.org/pipermail/linux-arm-kernel/2016-January/398773.html

helps to make this more obvious, then?

Thanks!

Best regards

Dirk

  reply	other threads:[~2016-01-12  8:37 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-18  2:28 [GIT PULL] Third Round of Renesas ARM64 Based SoC Defconfig Updates for v4.5 Simon Horman
2015-12-18  2:28 ` Simon Horman
2015-12-18  2:29 ` [PATCH 1/2] arm64: defconfig: Add Renesas R-Car SATA driver for R-Car Gen3 SoCs Simon Horman
2015-12-18  2:29   ` Simon Horman
2015-12-18  2:29 ` [PATCH 2/2] arm64: defconfig: add CS2000 support Simon Horman
2015-12-18  2:29   ` Simon Horman
2015-12-18  2:29 ` [GIT PULL] Third Round of Renesas ARM64 Based SoC DT Updates for v4.5 Simon Horman
2015-12-18  2:29   ` Simon Horman
2015-12-18  2:29   ` [PATCH 01/10] arm64: renesas: salvator-x: set ak4613 In/Out pin as single-end Simon Horman
2015-12-18  2:29     ` Simon Horman
2015-12-18  2:29   ` [PATCH 02/10] arm64: renesas: salvator-x: use CS2000 as AUDIO_CLK_B Simon Horman
2015-12-18  2:29     ` Simon Horman
2015-12-18  2:29   ` [PATCH 03/10] arm64: dts: r8a7795: Add PSCI node Simon Horman
2015-12-18  2:29     ` Simon Horman
2015-12-18  2:29   ` [PATCH 04/10] arm64: dts: r8a7795: Add Cortex-A57 CPU cores Simon Horman
2015-12-18  2:29     ` Simon Horman
2015-12-18  2:29   ` [PATCH 05/10] arm64: dts: r8a7795: Add pmu device nodes Simon Horman
2015-12-18  2:29     ` Simon Horman
2015-12-18 10:16     ` Sudeep Holla
2015-12-18 10:16       ` Sudeep Holla
2015-12-18 10:44       ` Dirk Behme
2015-12-18 10:44         ` Dirk Behme
2015-12-18 10:47         ` Sudeep Holla
2015-12-18 10:47           ` Sudeep Holla
2016-01-09  6:36           ` Dirk Behme
2016-01-09  6:36             ` Dirk Behme
2016-01-11 10:18             ` Sudeep Holla
2016-01-11 10:18               ` Sudeep Holla
2016-01-11 10:39             ` Mark Rutland
2016-01-11 10:39               ` Mark Rutland
2016-01-12  8:37               ` Dirk Behme [this message]
2016-01-12  8:37                 ` Dirk Behme
2015-12-18  2:29   ` [PATCH 06/10] arm64: renesas: salvator-x: Add board part number to DT bindings Simon Horman
2015-12-18  2:29     ` Simon Horman
2015-12-18  2:29   ` [PATCH 07/10] arm64: renesas: r8a7795: add internal delay for i2c IPs Simon Horman
2015-12-18  2:29     ` Simon Horman
2015-12-18  2:29   ` [PATCH 08/10] arm64: dts: r8a7795: Add SATA controller node Simon Horman
2015-12-18  2:29     ` Simon Horman
2015-12-18  2:29   ` [PATCH 09/10] arm64: dts: salvator-x: Enable SATA controller Simon Horman
2015-12-18  2:29     ` Simon Horman
2015-12-18  2:29   ` [PATCH 10/10] arm64: renesas: r8a7795: fix SATA clock assignment Simon Horman
2015-12-18  2:29     ` Simon Horman
2015-12-22 20:52   ` [GIT PULL] Third Round of Renesas ARM64 Based SoC DT Updates for v4.5 Olof Johansson
2015-12-22 20:52     ` Olof Johansson
2015-12-28  4:55     ` Simon Horman
2015-12-28  4:55       ` Simon Horman
2015-12-22 20:50 ` [GIT PULL] Third Round of Renesas ARM64 Based SoC Defconfig " Olof Johansson
2015-12-22 20:50   ` Olof Johansson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5694BB51.9000800@de.bosch.com \
    --to=dirk.behme@de.bosch.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.