From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: oprofile and ARM A9 hardware counter
Date: Tue, 3 Apr 2012 13:34:45 +0100 [thread overview]
Message-ID: <20120403123444.GL17741@mudshark.cambridge.arm.com> (raw)
In-Reply-To: <CAMQu2gyFirtVTWpMu4G_qG5sq33J-_s_o2JhVAdrUf7P3qJ3AA@mail.gmail.com>
On Tue, Apr 03, 2012 at 11:01:53AM +0100, Shilimkar, Santosh wrote:
> On Tue, Apr 3, 2012 at 3:17 PM, Will Deacon <will.deacon@arm.com> wrote:
> > It seems that they're both needed to get reliable PMU operation. Without the
> > CLKDM_CAN_SWSUP fix, no interrupts are generated at all. Without the patch
> > below ([1]), it seems that we don't generate enough. So it looks like we
> > need them both.
> >
> I see. Can you please confirm if it is still the case with [1].
Right, ignore my previous comment, I was using a vanilla 3.3 kernel without
realising and therefore what I thought were PMU/CTI interrupts were actually
just from a timer. Sorry for the confusion.
So I've gone back to basics. Here is a branch containing what I believe
should be all the patches required for the OMAP4 PMU:
git://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git perf/omap4
I've omitted the SWSUSP patch since you say it breaks pm, which is clearly not
acceptable.
The problem is, trying to boot this on my pandaboard results in a hang (see
dmesg below). Even worse, the problem isn't easily bisectable since rebuilding
a working image can give you something that no longer boots and I haven't found
a reliable way to cause the lockup.
I'll take JTAG for a whirl to see where we are. If anything looks wrong in
my dmesg, please shout (there are plenty of things in there that look like
they've gone awry).
Will
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Linux version 3.3.0-00005-gcd122ab (will at mudshark) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu3) ) #1 SMP Tue Apr 3 13:19:29 BST 2012
[ 0.000000] CPU: ARMv7 Processor [411fc092] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: OMAP4 Panda board
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] OMAP4430 ES2.1
[ 0.000000] PERCPU: Embedded 8 pages/cpu @c1025000 s11072 r8192 d13504 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129792
[ 0.000000] Kernel command line: console=ttyO2,115200 root=/dev/nfs nfsroot=10.1.79.58:/exports/linaro-11.11,tcp rw earlyprintk ip=dhcp
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 511MB = 511MB total
[ 0.000000] Memory: 506272k/506272k available, 18016k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc05ebf68 (6032 kB)
[ 0.000000] .init : 0xc05ec000 - 0xc0639b40 ( 311 kB)
[ 0.000000] .data : 0xc063a000 - 0xc06c6d50 ( 564 kB)
[ 0.000000] .bss : 0xc06c6d74 - 0xc0c1cb5c (5464 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:474
[ 0.000000] omap_hwmod: dpll_mpu_m2_ck: missing clockdomain for dpll_mpu_m2_ck.
[ 0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.000000] ... MAX_LOCK_DEPTH: 48
[ 0.000000] ... MAX_LOCKDEP_KEYS: 8191
[ 0.000000] ... CLASSHASH_SIZE: 4096
[ 0.000000] ... MAX_LOCKDEP_ENTRIES: 16384
[ 0.000000] ... MAX_LOCKDEP_CHAINS: 32768
[ 0.000000] ... CHAINHASH_SIZE: 16384
[ 0.000000] memory used by lock dependency info: 3695 kB
[ 0.000000] per task-struct memory footprint: 1152 bytes
[ 0.056579] Calibrating delay loop... 2007.19 BogoMIPS (lpj=7839744)
[ 0.129791] pid_max: default: 32768 minimum: 301
[ 0.135192] Security Framework initialized
[ 0.139678] Mount-cache hash table entries: 512
[ 0.147979] CPU: Testing write buffer coherency: ok
[ 0.153961] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.160278] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
[ 0.168853] Setting up static identity map for 0x8043ce60 - 0x8043ced0
[ 0.175689] L310 cache controller enabled
[ 0.179931] l2x0: 16 ways, CACHE_ID 0x410000c4, AUX_CTRL 0x7e470000, Cache size: 1048576 B
[ 0.190856] CPU1: Booted secondary processor
[ 0.254028] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.254058] CPU1: Unknown IPI message 0x1
[ 0.254180] Brought up 2 CPUs
[ 0.254180] SMP: Total of 2 processors activated (4022.78 BogoMIPS).
[ 0.286102] omap_hwmod: trace_clk_div_ck: missing clockdomain for trace_clk_div_ck.
[ 0.294067] omap_hwmod: l3_div_ck: missing clockdomain for l3_div_ck.
[ 0.303955] omap_hwmod: l3_instr: _wait_target_disable failed
[ 0.322052] omap_hwmod: debugss: softreset failed (waited 10000 usec)
[ 0.332824] omap_hwmod: mcpdm: cannot be enabled (3)
[ 0.342315] print_constraints: dummy:
[ 0.347137] NET: Registered protocol family 16
[ 0.352264] GPMC revision 6.0
[ 0.360229] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
[ 0.366912] OMAP GPIO hardware version 0.1
[ 0.371612] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
[ 0.378662] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
[ 0.385772] gpiochip_add: registered GPIOs 96 to 127 on device: gpio
[ 0.392913] gpiochip_add: registered GPIOs 128 to 159 on device: gpio
[ 0.400177] gpiochip_add: registered GPIOs 160 to 191 on device: gpio
[ 0.410064] omap_mux_init: Add partition: #1: core, flags: 2
[ 0.417327] omap_mux_init: Add partition: #2: wkup, flags: 2
[ 0.423339] error setting wl12xx data: -38
[ 0.430267] _omap_mux_get_by_name: Could not find signal uart1_cts.uart1_cts
[ 0.437622] _omap_mux_get_by_name: Could not find signal uart1_cts.uart1_cts
[ 0.444946] omap_hwmod_mux_init: Could not allocate device mux entry
[ 0.455047] usbhs_omap: alias fck already exists
[ 0.463409] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.471710] hw-breakpoint: maximum watchpoint size is 4 bytes.
<hangs here. Would usually print something about "OMAP DMA" next>
next prev parent reply other threads:[~2012-04-03 12:34 UTC|newest]
Thread overview: 134+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAAO=S0+L2Q1YZC-pfm2Lz8jPooTeHYOMaZbtRgHYFoL_m7rvhA@mail.gmail.com>
[not found] ` <4F0B182D.7060507@us.ibm.com>
2012-01-09 22:49 ` oprofile and ARM A9 hardware counter Will Deacon
2012-01-09 23:30 ` Ming Lei
2012-01-10 0:46 ` stephane eranian
2012-01-18 4:18 ` Ming Lei
2012-01-18 9:33 ` Ming Lei
2012-01-18 11:39 ` Shilimkar, Santosh
2012-01-18 12:24 ` Ming Lei
2012-01-18 12:33 ` Shilimkar, Santosh
2012-04-03 9:25 ` Will Deacon
2012-04-03 9:42 ` Shilimkar, Santosh
2012-04-03 9:47 ` Will Deacon
2012-04-03 10:01 ` Shilimkar, Santosh
2012-04-03 12:34 ` Will Deacon [this message]
2012-04-03 12:41 ` Shilimkar, Santosh
2012-04-03 14:27 ` Kevin Hilman
2012-04-03 16:07 ` Will Deacon
2012-04-03 23:14 ` Kevin Hilman
2012-04-03 23:29 ` Paul Walmsley
2012-04-04 3:42 ` Ming Lei
2012-04-04 11:15 ` Will Deacon
2012-04-26 18:07 ` Will Deacon
2012-04-30 22:25 ` Kevin Hilman
2012-05-07 17:27 ` Ming Lei
2012-05-04 22:17 ` Jon Hunter
2012-05-07 17:15 ` Kevin Hilman
2012-05-07 19:53 ` Jon Hunter
2012-05-07 23:28 ` Kevin Hilman
2012-05-08 11:01 ` Cousson, Benoit
2012-05-08 11:23 ` Jean Pihet
2012-05-08 12:37 ` Cousson, Benoit
2012-05-08 13:18 ` Jean Pihet
2012-05-08 14:00 ` Kevin Hilman
2012-05-08 14:03 ` Cousson, Benoit
2012-05-08 16:18 ` Kevin Hilman
2012-05-08 19:51 ` Jon Hunter
2012-05-08 21:28 ` Kevin Hilman
2012-05-08 22:20 ` Jon Hunter
2012-05-08 22:12 ` Ming Lei
2012-05-08 17:31 ` Jon Hunter
2012-05-08 21:22 ` Kevin Hilman
2012-05-08 23:59 ` Jon Hunter
2012-05-09 10:58 ` Cousson, Benoit
2012-05-09 18:04 ` Jon Hunter
2012-05-09 19:28 ` Jon Hunter
2012-05-09 21:45 ` Jon Hunter
2012-05-10 8:44 ` Will Deacon
2012-05-10 9:12 ` stephane eranian
2012-05-10 18:55 ` Jon Hunter
2012-05-11 12:25 ` Will Deacon
2012-05-11 13:47 ` Jon Hunter
2012-05-11 13:49 ` Will Deacon
2012-05-11 14:52 ` Jon Hunter
2012-05-11 15:02 ` Will Deacon
2012-05-11 16:31 ` Jon Hunter
2012-05-11 16:38 ` Will Deacon
2012-05-11 23:51 ` Jon Hunter
2012-05-15 13:52 ` Will Deacon
2012-05-10 14:12 ` Kevin Hilman
2012-05-10 19:05 ` Jon Hunter
2012-05-10 6:59 ` Santosh Shilimkar
2012-05-08 21:50 ` Paul Walmsley
2012-04-04 0:00 ` Paul Walmsley
2012-04-04 11:07 ` Will Deacon
2012-01-18 9:54 ` stephane eranian
2012-01-18 10:07 ` Ming Lei
2012-01-18 21:58 ` stephane eranian
2012-01-19 1:21 ` Ming Lei
2012-01-19 11:34 ` stephane eranian
2012-01-19 12:45 ` Ming Lei
2012-01-19 12:51 ` stephane eranian
2012-01-19 12:55 ` stephane eranian
2012-01-19 13:14 ` Ming Lei
2012-01-19 13:26 ` Ming Lei
2012-01-19 13:32 ` stephane eranian
2012-01-19 13:51 ` Ming Lei
2012-01-19 17:07 ` stephane eranian
2012-01-20 13:47 ` stephane eranian
2012-01-21 3:25 ` Ming Lei
2012-01-21 9:16 ` stephane eranian
2012-01-27 12:13 ` Will Deacon
2012-01-27 12:45 ` stephane eranian
2012-01-27 12:56 ` Måns Rullgård
2012-01-27 13:28 ` Will Deacon
2012-01-27 13:32 ` stephane eranian
2012-01-27 13:47 ` Måns Rullgård
2012-01-27 13:56 ` Will Deacon
2012-01-27 14:05 ` Måns Rullgård
2012-01-27 14:09 ` Ming Lei
2012-01-27 15:45 ` stephane eranian
2012-01-27 15:54 ` Will Deacon
2012-01-27 15:57 ` stephane eranian
2012-01-27 16:59 ` Will Deacon
2012-01-27 17:03 ` stephane eranian
2012-01-27 17:10 ` Will Deacon
2012-01-27 17:16 ` stephane eranian
2012-01-29 17:36 ` stephane eranian
2012-01-30 9:40 ` Ming Lei
2012-01-30 10:24 ` stephane eranian
2012-01-30 13:43 ` stephane eranian
2012-01-30 14:49 ` Ming Lei
2012-01-30 16:02 ` stephane eranian
2012-01-30 16:08 ` Måns Rullgård
2012-01-30 17:15 ` stephane eranian
2012-01-30 17:24 ` Will Deacon
2012-01-30 17:45 ` stephane eranian
2012-01-30 19:14 ` Will Deacon
2012-01-30 20:45 ` stephane eranian
2012-03-07 2:49 ` Ming Lei
2012-03-07 9:48 ` Will Deacon
2012-01-27 14:06 ` Ming Lei
2012-01-18 10:18 ` Russell King - ARM Linux
[not found] <1328578047.1724.17.camel@dave-Dell-System-XPS-L502X>
[not found] ` <CAMQu2gwfo5JXAqQaLUNs7C7J3TUhEO2zOcyD0Rk-D_O61Yrfag@mail.gmail.com>
[not found] ` <CAMsRxfLNBbQO5XF+EHJqNsnW+s=ay3mjSV5dh=sxdwzktUu03g@mail.gmail.com>
[not found] ` <CAMQu2gzfNAwtf1c6jrTZpfGMSqBgBrQKmFTeCFzbvMh9ESBDUg@mail.gmail.com>
[not found] ` <CAMsRxfKR1ODH56BtcUT5Dv6qOVEYGVheEcW9ugXsZmLKok==bg@mail.gmail.com>
2012-02-07 10:53 ` Shilimkar, Santosh
2012-02-07 11:09 ` Shilimkar, Santosh
2012-02-07 11:25 ` stephane eranian
2012-02-07 11:39 ` Shilimkar, Santosh
2012-02-07 11:59 ` stephane eranian
2012-02-07 15:30 ` Will Deacon
2012-02-08 2:24 ` Ming Lei
2012-02-15 16:38 ` Peter Zijlstra
2012-02-16 10:25 ` Ming Lei
2012-02-16 15:00 ` Will Deacon
2012-02-16 16:12 ` Ming Lei
2012-02-16 16:19 ` Peter Zijlstra
2012-02-16 16:37 ` Ming Lei
2012-02-16 18:08 ` Will Deacon
2012-02-17 5:24 ` Ming Lei
2012-02-17 10:26 ` Will Deacon
2012-02-20 3:19 ` Ming Lei
2012-02-20 9:44 ` Will Deacon
2012-02-13 13:15 ` Will Deacon
[not found] ` <1329508513.1858.15.camel@dave-Dell-System-XPS-L502X>
2012-02-18 4:31 ` Shilimkar, Santosh
2012-04-03 9:44 ` Will Deacon
2012-04-03 9:47 ` Shilimkar, Santosh
[not found] ` <CACVXFVN0E_deS2d50mfufO5QZSwh=34BppCL++oxtc3nfN_ugA@mail.gmail.com>
[not found] ` <1328664644.1678.15.camel@dave-Dell-System-XPS-L502X>
2012-02-09 20:05 ` David A. Long
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=20120403123444.GL17741@mudshark.cambridge.arm.com \
--to=will.deacon@arm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).