Re: oprofile and ARM A9 hardware counter |
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: oprofile and ARM A9 hardware counter
- From: Paul Walmsley <paul@xxxxxxxxx>
- Date: Tue, 3 Apr 2012 17:29:49 -0600 (MDT)
- Cc: Will Deacon <will.deacon@xxxxxxx>, "Shilimkar\\, Santosh" <santosh.shilimkar@xxxxxx>, Ming Lei <ming.lei@xxxxxxxxxxxxx>, "eranian\\@gmail.com" <eranian@xxxxxxxxx>, Maynard Johnson <maynardj@xxxxxxxxxx>, Lik Lik <lik88888@xxxxxxxxx>, "oprofile-list\\@lists.sourceforge.net" <oprofile-list@xxxxxxxxxxxxxxxxxxxxx>, "linux-omap\\@vger.kernel.org" <linux-omap@xxxxxxxxxxxxxxx>, "linux-arm-kernel\\@lists.infradead.org" <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>, Benoit Cousson <b-cousson@xxxxxx>
- In-reply-to: <87ehs4pfw4.fsf@ti.com>
- User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
Hi
On Tue, 3 Apr 2012, Kevin Hilman wrote:
> Indeed, like you, I have to change the EMU clock domain to SWSUP[1] in
> order to see any interrupts and see anything in perf top. This isn't
> really a mergeable workaround, so I'll look into this a little closer
> with Santosh to see what we can do once we fully understand the HW
> problem.
Part of the problem is that the clockdomain data for the emu_sys
clockdomain is wrong. Here's something to try to fix it. It might just
be enough to get it to work.
- Paul
From: Paul Walmsley <paul@xxxxxxxxx>
Date: Tue, 3 Apr 2012 17:13:48 -0600
Subject: [PATCH] ARM: OMAP44xx: clockdomain data: correct the emu_sys_clkdm
CLKTRCTRL data
According to the 4430 ES2.0 TRM vX Table 3-744 "CM_EMU_CLKSTCTRL",
the emu_sys clockdomain data in mainline is incorrect.
The emu_sys clockdomain does not support the DISABLE_AUTO state, and
instead it supports the FORCE_WAKEUP state.
Signed-off-by: Paul Walmsley <paul@xxxxxxxxx>
Cc: Benoît Cousson <b-cousson@xxxxxx>
Cc: Kevin Hilman <khilman@xxxxxx>
Cc: Santosh Shilimkar <santosh.shilimkar@xxxxxx>
Cc: Ming Lei <ming.lei@xxxxxxxxxxxxx>
---
arch/arm/mach-omap2/clockdomains44xx_data.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-omap2/clockdomains44xx_data.c b/arch/arm/mach-omap2/clockdomains44xx_data.c
index 9299ac2..bd7ed13 100644
--- a/arch/arm/mach-omap2/clockdomains44xx_data.c
+++ b/arch/arm/mach-omap2/clockdomains44xx_data.c
@@ -390,7 +390,7 @@ static struct clockdomain emu_sys_44xx_clkdm = {
.prcm_partition = OMAP4430_PRM_PARTITION,
.cm_inst = OMAP4430_PRM_EMU_CM_INST,
.clkdm_offs = OMAP4430_PRM_EMU_CM_EMU_CDOFFS,
- .flags = CLKDM_CAN_HWSUP,
+ .flags = CLKDM_CAN_ENABLE_AUTO | CLKDM_CAN_FORCE_WAKEUP,
};
static struct clockdomain l3_dma_44xx_clkdm = {
--
1.7.9.5
[Linux Arm (vger)]
[ARM Kernel]
[ARM MSM]
[Linux Tegra]
[Maemo Users]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]