From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ming Lei Subject: Re: oprofile and ARM A9 hardware counter Date: Thu, 19 Jan 2012 21:51:57 +0800 Message-ID: References: <4F0B182D.7060507@us.ibm.com> <20120109224945.GA23090@mudshark.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from youngberry.canonical.com ([91.189.89.112]:55300 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751437Ab2ASNwA convert rfc822-to-8bit (ORCPT ); Thu, 19 Jan 2012 08:52:00 -0500 Received: from mail-pz0-f46.google.com ([209.85.210.46]) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1RnsPH-00018z-9J for linux-omap@vger.kernel.org; Thu, 19 Jan 2012 13:51:59 +0000 Received: by dake40 with SMTP id e40so1874220dak.19 for ; Thu, 19 Jan 2012 05:51:57 -0800 (PST) In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: eranian@gmail.com Cc: Will Deacon , Maynard Johnson , Lik Lik , "oprofile-list@lists.sourceforge.net" , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "Cousson, Benoit" Hi, On Thu, Jan 19, 2012 at 9:32 PM, stephane eranian wrote: > On Thu, Jan 19, 2012 at 2:26 PM, Ming Lei wr= ote: >> Hi, >> >> On Thu, Jan 19, 2012 at 9:14 PM, Ming Lei w= rote: >>> On Thu, Jan 19, 2012 at 8:51 PM, stephane eranian >>> wrote: >>>> On Thu, Jan 19, 2012 at 1:45 PM, Ming Lei = wrote: >>>>> Hi, >>>>> >>>>> On Thu, Jan 19, 2012 at 7:34 PM, stephane eranian >>>>> wrote: >>>>>> Hi, >>>>>> >>>>>> Ok some update on this. >>>>>> With your .config file + 3.2.0 (Linus) + patch 3, 4, 5, 6, I get= a kernel that >>>>> >>>>> You forget patch 1 and patch 2? >>>>> >>>> They are already in 3.2.0. Unless I am mistaken. >>> >>> Sorry, I just found that they have been merged to 3.2. >> >> After a double check, the two patches are not merged to 3.2, but hav= e >> been merged to the latest linus tree and can be seen in 3.3-rc1. >> >> Also the commit 3c50729b(ARM: OMAP4: PM: Initialise all the clockdom= ains >> to supported states) has been merged to linus tree too. >> >> So if you just tested the latest linus tree simply, you need to appl= y >> the patch[1] >> (I have mentioned the problem in the thread.) >> > > Changing LMO, u-boot.bin did not help. Even with perf top I get no > interrupts. > > My Linus tree is at commit fa1952b: > > [6] 11891e1 arm: omap4: pmu: support runtime pm > [5] 25fab8a arm: omap4: support pmu > [4] fddef77 arm: omap4: create pmu device via hwmod > > fa1952b ARM: OMAP4: hwmod data: Add support for the debug modules Sorry, there is no commit fa1952b in linus[1] tree at all, so you are not testing linus tree... If you'd like to follow my instructions, I can help you further. > ccb19d2 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net > c3b5003 tg3: Fix single-vector MSI-X code > > I think [1] had conflicts when applying it to the tree. It is only one line(one character) change, you can do it manually. > >> thanks, >> -- >> Ming Lei >> >> [1], >> diff --git a/arch/arm/mach-omap2/clockdomains44xx_data.c >> b/arch/arm/mach-omap2/clockdomains44xx_data.c >> index 9299ac2..41d2260 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 =3D= { >> =A0 =A0 =A0 .prcm_partition =A0 =3D OMAP4430_PRM_PARTITION, >> =A0 =A0 =A0 .cm_inst =A0 =A0 =A0 =A0 =A0=3D OMAP4430_PRM_EMU_CM_INST= , >> =A0 =A0 =A0 .clkdm_offs =A0 =A0 =A0 =3D OMAP4430_PRM_EMU_CM_EMU_CDOF= =46S, >> - =A0 =A0 =A0 .flags =A0 =A0 =A0 =A0 =A0 =A0=3D CLKDM_CAN_HWSUP, >> + =A0 =A0 =A0 .flags =A0 =A0 =A0 =A0 =A0 =A0=3D CLKDM_CAN_SWSUP, >> =A0}; >> [1], http://git.kernel.org/?p=3Dlinux/kernel/git/torvalds/linux.git;a=3D= summary thanks, -- Ming Lei -- To unsubscribe from this list: send the line "unsubscribe linux-omap" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: ming.lei@canonical.com (Ming Lei) Date: Thu, 19 Jan 2012 21:51:57 +0800 Subject: oprofile and ARM A9 hardware counter In-Reply-To: References: <4F0B182D.7060507@us.ibm.com> <20120109224945.GA23090@mudshark.cambridge.arm.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi, On Thu, Jan 19, 2012 at 9:32 PM, stephane eranian wrote: > On Thu, Jan 19, 2012 at 2:26 PM, Ming Lei wrote: >> Hi, >> >> On Thu, Jan 19, 2012 at 9:14 PM, Ming Lei wrote: >>> On Thu, Jan 19, 2012 at 8:51 PM, stephane eranian >>> wrote: >>>> On Thu, Jan 19, 2012 at 1:45 PM, Ming Lei wrote: >>>>> Hi, >>>>> >>>>> On Thu, Jan 19, 2012 at 7:34 PM, stephane eranian >>>>> wrote: >>>>>> Hi, >>>>>> >>>>>> Ok some update on this. >>>>>> With your .config file + 3.2.0 (Linus) + patch 3, 4, 5, 6, I get a kernel that >>>>> >>>>> You forget patch 1 and patch 2? >>>>> >>>> They are already in 3.2.0. Unless I am mistaken. >>> >>> Sorry, I just found that they have been merged to 3.2. >> >> After a double check, the two patches are not merged to 3.2, but have >> been merged to the latest linus tree and can be seen in 3.3-rc1. >> >> Also the commit 3c50729b(ARM: OMAP4: PM: Initialise all the clockdomains >> to supported states) has been merged to linus tree too. >> >> So if you just tested the latest linus tree simply, you need to apply >> the patch[1] >> (I have mentioned the problem in the thread.) >> > > Changing LMO, u-boot.bin did not help. Even with perf top I get no > interrupts. > > My Linus tree is at commit fa1952b: > > [6] 11891e1 arm: omap4: pmu: support runtime pm > [5] 25fab8a arm: omap4: support pmu > [4] fddef77 arm: omap4: create pmu device via hwmod > > fa1952b ARM: OMAP4: hwmod data: Add support for the debug modules Sorry, there is no commit fa1952b in linus[1] tree at all, so you are not testing linus tree... If you'd like to follow my instructions, I can help you further. > ccb19d2 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net > c3b5003 tg3: Fix single-vector MSI-X code > > I think [1] had conflicts when applying it to the tree. It is only one line(one character) change, you can do it manually. > >> thanks, >> -- >> Ming Lei >> >> [1], >> diff --git a/arch/arm/mach-omap2/clockdomains44xx_data.c >> b/arch/arm/mach-omap2/clockdomains44xx_data.c >> index 9299ac2..41d2260 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_SWSUP, >> ?}; >> [1], http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=summary thanks, -- Ming Lei