perf_event_open syscall fails for HW counters on Pandaboard

Bug #1048056 reported by Marat Dukhan
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)

Bug Description

On Pandaboard perf_event_open syscall fails with errno = 19 (ENODEV) when trying to open perf counter with type PERF_TYPE_HARDWARE.

The code to reproduce the error is attached. I checked that it runs successfully on Beagleboard, Sandy Bridge, Bulldozer systems, and even on Pandaboard if I request software events (e.g. type = PERF_TYPE_SOFTWARE, config = PERF_COUNT_SW_CPU_CLOCK).

Linux Kernel (uname -a): Linux pandaboard 3.2.0-1418-omap4 #25-Ubuntu SMP PREEMPT Fri Aug 31 18:41:31 UTC 2012 armv7l armv7l armv7l GNU/Linux
Distribution: Ubuntu Server 12.04
Loaded kernel modules (lsmod): cpufreq_powersave, cpufreq_conservative, cpufreq_userspace, cpufreq_ondemand, dm_crypt, wl12xx_sdio, wl12xx, mac80211, twl6040_vibra, ff_memless, cfg80211, leds_gpio
Kernel log (dmesg): contains message "hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available"
/proc/cpuinfo content:
Processor : ARMv7 Processor rev 10 (v7l)
processor : 0
BogoMIPS : 696.39

processor : 1
BogoMIPS : 681.68

Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc09
CPU revision : 10

Hardware : OMAP4 Panda board
Revision : 0020
Serial : 0000000000000000

Revision history for this message
Marat Dukhan (maratek) wrote :

The code to reproduce the bug

Revision history for this message
Marat Dukhan (maratek) wrote :

Linux kernel log

Marat Dukhan (maratek)
affects: linaro → linux
Marat Dukhan (maratek)
affects: linux → linaro-landing-team-ti
no longer affects: linux-meta (Ubuntu)
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1048056

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: precise
Revision history for this message
Marat Dukhan (maratek) wrote :

apport-collect crashes on my Pandaboard.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
David Long (dave-long) wrote :

I do not see this problem on a kernel built from the latest Linaro TI 3.2 sources using the default config file. The error sounds like a configuration error, or possibly a problem in the underlying hardware event support which has been patched over time.

If you are intent on continuing with a 3.2 kernel I recommend rebuilding it from sources checked out from the origin/tilt-3.2 tracking branch in the git:// repo. Either use the omap4_defconfig under there or at least make sure CONFIG_HW_PERF_EVENTS=y is present.

Revision history for this message
warmcat (andy-warmcat) wrote :

What's the situation with it on tilt-3.4? 3.2 is too old to care about but 3.4 needs to work under the same conditions.

Revision history for this message
David Long (dave-long) wrote :

A fresh build of 3.4 from the origin/tilt-3.4 tracking branch also works.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers