[Bug 1018092] Re: Perf test fails on Pandaboard (3.4 TILT)
** Changed in: linaro-ubuntu Status: Confirmed = Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1018092 Title: Perf test fails on Pandaboard (3.4 TILT) To manage notifications about this bug go to: https://bugs.launchpad.net/linaro-landing-team-ti/+bug/1018092/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1018092] Re: Perf test fails on Pandaboard (3.4 TILT)
I found the magic sauce for getting the PMU event counters working in recent upstream code. On the 4460 the EMU clock has to be forced on. A patch for this, and for missing PMU/CTI interrupt mods is being applied to our 3.4 branch now. With this it will be possible to build a kernel with hardware event counters enabled and use perf to collect counter data. Bear in mind there is still nothing we can do to really work around the problem of occasional lost PMU interrupts, as that is a hardware issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1018092 Title: Perf test fails on Pandaboard (3.4 TILT) To manage notifications about this bug go to: https://bugs.launchpad.net/linaro-landing-team-ti/+bug/1018092/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1018092] Re: Perf test fails on Pandaboard (3.4 TILT)
I am wondering the same thing as Joseph (joemp) in the #10 comment. On my Pandaboard, I see that my kernel is configured correctly, and hw perf events come up in dmesg, like so... $ uname -a Linux pandaboard01 3.2.0-1419-omap4 #26-Ubuntu SMP PREEMPT Wed Sep 12 14:32:40 UTC 2012 armv7l armv7l armv7l GNU/Linux $ grep PERF_EVENTS /boot/config-3.2.0-1419-omap4 CONFIG_HAVE_PERF_EVENTS=y CONFIG_HW_PERF_EVENTS=y CONFIG_PERF_EVENTS=y $ dmesg|grep -i perf [0.072387] Initializing cgroup subsys perf_event [0.164306] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available ... and yet when I run a `perf stat` command I receive an error: $ sudo perf stat -e cycles ls / Error: open_counter returned with 19 (No such device). /bin/dmesg may provide additional information. Fatal: Not all events could be opened. There is nothing in dmesg. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1018092 Title: Perf test fails on Pandaboard (3.4 TILT) To manage notifications about this bug go to: https://bugs.launchpad.net/linaro-landing-team-ti/+bug/1018092/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1018092] Re: Perf test fails on Pandaboard (3.4 TILT)
I'm afraid we don't use DS-5 on our side... if you know a Lukas Snetler in ARM it might be worth having a chat though. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1018092 Title: Perf test fails on Pandaboard (3.4 TILT) To manage notifications about this bug go to: https://bugs.launchpad.net/linaro-landing-team-ti/+bug/1018092/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1018092] Re: Perf test fails on Pandaboard (3.4 TILT)
I mean, I can't find how they were disabled. Looking at the kernel config, profiling and hw perf monitors seems to be enabled. Was some bit of code commented out somewhere in the kernel/drivers? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1018092 Title: Perf test fails on Pandaboard (3.4 TILT) To manage notifications about this bug go to: https://bugs.launchpad.net/linaro-landing-team-ti/+bug/1018092/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1018092] Re: Perf test fails on Pandaboard (3.4 TILT)
I understand why the performance counters are disabled, but I would like to re-enable them for use with DS-5 streamline. How can I enable them? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1018092 Title: Perf test fails on Pandaboard (3.4 TILT) To manage notifications about this bug go to: https://bugs.launchpad.net/linaro-landing-team-ti/+bug/1018092/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1018092] Re: Perf test fails on Pandaboard (3.4 TILT)
affects ubuntu ti-omap4 too ** Also affects: linux-ti-omap4 (Ubuntu) Importance: Undecided Status: New ** Changed in: linux-ti-omap4 (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1018092 Title: Perf test fails on Pandaboard (3.4 TILT) To manage notifications about this bug go to: https://bugs.launchpad.net/linaro-landing-team-ti/+bug/1018092/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1018092] Re: Perf test fails on Pandaboard (3.4 TILT)
Dave said that because we disable hw counters due to errata in the hw, perf -e will fail. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1018092 Title: Perf test fails on Pandaboard (3.4 TILT) To manage notifications about this bug go to: https://bugs.launchpad.net/linaro-landing-team-ti/+bug/1018092/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1018092] Re: Perf test fails on Pandaboard (3.4 TILT)
any way to workaround it? or shall we just say it's broken and mark it as won't fix? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1018092 Title: Perf test fails on Pandaboard (3.4 TILT) To manage notifications about this bug go to: https://bugs.launchpad.net/linaro-landing-team-ti/+bug/1018092/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1018092] Re: Perf test fails on Pandaboard (3.4 TILT)
Well perf should work itself OK using the fallback timer-based method, it's specifically this -e mode. The hardware counters are in there and do stuff, the problem is (IIRC overflow) interrupts are prone to get lost, distorting the numbers to uselessness, and that problem is in the ARM core and lay undiscovered for a long while so is in all (AFAIK) shipping chips. So we disabled them, as I say normal perf should be workable. I think we have to, as you suggest, do a WONTFIX on it. ** Changed in: linaro-landing-team-ti Status: New = Incomplete ** Changed in: linaro-landing-team-ti Status: Incomplete = Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1018092 Title: Perf test fails on Pandaboard (3.4 TILT) To manage notifications about this bug go to: https://bugs.launchpad.net/linaro-landing-team-ti/+bug/1018092/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1018092] Re: Perf test fails on Pandaboard (3.4 TILT)
What Andy said. We chose timer mode in lieu of enabling hardware counters, since the hardware is broken. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1018092 Title: Perf test fails on Pandaboard (3.4 TILT) To manage notifications about this bug go to: https://bugs.launchpad.net/linaro-landing-team-ti/+bug/1018092/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs