Samsung Exynos4 ("Orion") doesn't have proper PMU definitions

Bug #859825 reported by Wade Cherry
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linaro-landing-team-samsung
Invalid
High
Inderpal Singh

Bug Description

This issue was found with Streamline, and later confirmed with perf. arch/arm/plat-s5p/dev-pmu.c is incomplete. Even worse, it pulls old "arm-pmu" device from A8-based SOC (I think) so Streamline/perf think it should work, but it doesn't. The end result is no proper error message for the user and the PMU interrupts are not firing so the data is invalid.

Fathi Boudra (fboudra)
affects: linaro → linaro-landing-team-samsung
Changed in linaro-landing-team-samsung:
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → Inderpal Singh (ips)
milestone: none → 2011.10
Revision history for this message
Scott Bambrough (scottb) wrote :

This has the potential to disrupt PMWG work. Can we fix this please.

Changed in linaro-landing-team-samsung:
importance: Medium → High
Revision history for this message
Vinod Krishnamoni (vinod-krishnamoni) wrote :

We are keen to see this fixed as well from ARM, as this breaks the performance analysis tools.

Revision history for this message
Angus Ainslie (angus-akkea) wrote : Re: [Bug 859825] Re: Samsung Exynos4 ("Orion") doesn't have proper PMU definitions

Inder has found a fix and will post a patch in the next few days

On Thu, Sep 29, 2011 at 7:44 AM, Vinod Krishnamoni
<email address hidden> wrote:
> We are keen to see this fixed as well from ARM, as this breaks the
> performance analysis tools.
>
> --
> You received this bug notification because you are a member of Linaro
> Landing Team: Samsung, which is subscribed to linaro-landing-team-
> samsung.
> https://bugs.launchpad.net/bugs/859825
>
> Title:
>  Samsung Exynos4 ("Orion") doesn't have proper PMU definitions
>
> Status in Linaro Samsung Landing Team Project:
>  Triaged
>
> Bug description:
>  This issue was found with Streamline, and later confirmed with perf.
>  arch/arm/plat-s5p/dev-pmu.c is incomplete. Even worse, it pulls old
>  "arm-pmu" device from A8-based SOC (I think) so Streamline/perf think
>  it should work, but it doesn't. The end result is no proper error
>  message for the user and the PMU interrupts are not firing so the data
>  is invalid.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linaro-landing-team-samsung/+bug/859825/+subscriptions
>

--
Angus Ainslie <email address hidden>
Team Lead, Samsung Landing Team

Revision history for this message
Vinod Krishnamoni (vinod-krishnamoni) wrote :

Thanks Angus, please update the issue as soon the patch is posted so that we can pick that up.

Revision history for this message
Angus Ainslie (angus-akkea) wrote :

The linux-image-3.0.0-1000-origen_3.0.0-1000.0samsung15_armel.deb contains a patch for the PMU irq'a and enables tracing and monitoring options.

The changes are available in hwpacks for 20111005 onward

Changed in linaro-landing-team-samsung:
status: Triaged → Fix Committed
Revision history for this message
Vinod Krishnamoni (vinod-krishnamoni) wrote :

Hi Angus,

Please could you point me at the souce tree where the fix was made ? ( We do not have an Origen, we'll need to rebuild it for an Orion platfrom )

Thanks
Vinod

Revision history for this message
Angus Ainslie (angus-akkea) wrote :

Hi Vinod,

The patch is here

http://git.linaro.org/gitweb?p=people/angus/linux-linaro-3.0.git;a=commit;h=7ca7902200de17dd572524c8c66a3eba03e4fe34

Angus

On Wed, Oct 5, 2011 at 8:41 AM, Vinod Krishnamoni
<email address hidden> wrote:
> Hi Angus,
>
> Please could you point me at the souce tree where the fix was made ? (
> We do not have an Origen, we'll need to rebuild it for an Orion platfrom
> )
>
> Thanks
> Vinod
>
> --
> You received this bug notification because you are a member of Linaro
> Landing Team: Samsung, which is subscribed to linaro-landing-team-
> samsung.
> https://bugs.launchpad.net/bugs/859825
>
> Title:
>  Samsung Exynos4 ("Orion") doesn't have proper PMU definitions
>
> Status in Linaro Samsung Landing Team Project:
>  Fix Committed
>
> Bug description:
>  This issue was found with Streamline, and later confirmed with perf.
>  arch/arm/plat-s5p/dev-pmu.c is incomplete. Even worse, it pulls old
>  "arm-pmu" device from A8-based SOC (I think) so Streamline/perf think
>  it should work, but it doesn't. The end result is no proper error
>  message for the user and the PMU interrupts are not firing so the data
>  is invalid.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linaro-landing-team-samsung/+bug/859825/+subscriptions
>

--
Angus Ainslie <email address hidden>
Team Lead, Samsung Landing Team

Revision history for this message
Angus Ainslie (angus-akkea) wrote :

Hi Vinod,

Did you get a chance to test the patch ? Does it fox this bug ?

Thanks
Angus

On Wed, Oct 5, 2011 at 9:33 AM, Angus Ainslie <email address hidden> wrote:
> Hi Vinod,
>
> The patch is here
>
> http://git.linaro.org/gitweb?p=people/angus/linux-linaro-3.0.git;a=commit;h=7ca7902200de17dd572524c8c66a3eba03e4fe34
>
> Angus
>
> On Wed, Oct 5, 2011 at 8:41 AM, Vinod Krishnamoni
> <email address hidden> wrote:
>> Hi Angus,
>>
>> Please could you point me at the souce tree where the fix was made ? (
>> We do not have an Origen, we'll need to rebuild it for an Orion platfrom
>> )
>>
>> Thanks
>> Vinod
>>
>> --
>> You received this bug notification because you are a member of Linaro
>> Landing Team: Samsung, which is subscribed to linaro-landing-team-
>> samsung.
>> https://bugs.launchpad.net/bugs/859825
>>
>> Title:
>>  Samsung Exynos4 ("Orion") doesn't have proper PMU definitions
>>
>> Status in Linaro Samsung Landing Team Project:
>>  Fix Committed
>>
>> Bug description:
>>  This issue was found with Streamline, and later confirmed with perf.
>>  arch/arm/plat-s5p/dev-pmu.c is incomplete. Even worse, it pulls old
>>  "arm-pmu" device from A8-based SOC (I think) so Streamline/perf think
>>  it should work, but it doesn't. The end result is no proper error
>>  message for the user and the PMU interrupts are not firing so the data
>>  is invalid.
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/linaro-landing-team-samsung/+bug/859825/+subscriptions
>>
>
>
>
> --
> Angus Ainslie <email address hidden>
> Team Lead, Samsung Landing Team
>

--
Angus Ainslie <email address hidden>
Team Lead, Samsung Landing Team

Revision history for this message
Vinod Krishnamoni (vinod-krishnamoni) wrote :

Hi Angus,
I have passed this to our development team, waiting to hear from them. Shall let you know as soon as I hear from them.

Thanks
Vinod

Revision history for this message
Vinod Krishnamoni (vinod-krishnamoni) wrote :

Update from Wade Cherry, who's working on the defect at ARM:

"After incorporating the changes by Inderpal Singh from the Linaro branch into my code base for Orion, the Orion board has the pmu interrupt for core 0 set to irq 146 and core 1 set to irq 154. However, when calling init_pmu() an error is returned indicating that associating the irq to a certain core failed. Thus, I was not able to verify the changes, though there may be something else at odds here: 1) I'm not using Exynos4 but Orion s5p v310, what are the differences? 2) I did not use the same code base."

Revision history for this message
Angus Ainslie (angus-akkea) wrote :

Hi Wade

On Mon, Oct 24, 2011 at 8:19 AM, Vinod Krishnamoni
<email address hidden> wrote:
> Update from Wade Cherry, who's working on the defect at ARM:
>
> "After incorporating the changes by Inderpal Singh from the Linaro
> branch into my code base for Orion, the Orion board has the pmu
> interrupt for core 0 set to irq 146 and core 1 set to irq 154. However,
> when calling init_pmu() an error is returned indicating that associating
> the irq to a certain core failed. Thus, I was not able to verify the
> changes, though there may be something else at odds here: 1) I'm not
> using Exynos4 but Orion s5p v310, what are the differences? 2) I did not
> use the same code base."
>

1) Exynos4(210) and Orion s5pv310 are the same part. However there a
re a few revisions of the chip could you tell us what CPU id is
reported during boot, or better yet add a bootlog to the bug.

2) is the code base you used available somewhere ?

Thanks
Angus

> --
> You received this bug notification because you are a member of Linaro
> Landing Team: Samsung, which is subscribed to linaro-landing-team-
> samsung.
> https://bugs.launchpad.net/bugs/859825
>
> Title:
>  Samsung Exynos4 ("Orion") doesn't have proper PMU definitions
>
> Status in Linaro Samsung Landing Team Project:
>  Fix Committed
>
> Bug description:
>  This issue was found with Streamline, and later confirmed with perf.
>  arch/arm/plat-s5p/dev-pmu.c is incomplete. Even worse, it pulls old
>  "arm-pmu" device from A8-based SOC (I think) so Streamline/perf think
>  it should work, but it doesn't. The end result is no proper error
>  message for the user and the PMU interrupts are not firing so the data
>  is invalid.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linaro-landing-team-samsung/+bug/859825/+subscriptions
>

--
Angus Ainslie <email address hidden>
Team Lead, Samsung Landing Team

Revision history for this message
Wade Cherry (wade-cherry-j-deactivatedaccount) wrote :

The Samsung Orion boot log is attached, it looks like the cpu id is
CPU S5PV310 (id 0x43200000)

Revision history for this message
Wade Cherry (wade-cherry-j-deactivatedaccount) wrote :

The code base I am using is a snapshot of http://git.kernel.org/?p=linux/kernel/git/kki_ap/linux-2.6-samsung.git;a=shortlog;h=refs/heads/2.6.36-samsung obtained on 2010-11-18. Though this repository seems out of date and is gone now.

Revision history for this message
Inderpal Singh (ips) wrote :

Its very old code, moreover from the cpu id, it seems its a very old EVT0 based SMDK board.
We have been using Origen which is EVT1.1 based.

I checked in origen, s5p_pmu_init function does not return any error. So both irqs are getting associated with their respective cores.

Changed in linaro-landing-team-samsung:
status: Fix Committed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.