From patchwork Wed Mar 4 12:02:42 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Octavian Purdila X-Patchwork-Id: 24037 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 50FE7DE22A for ; Wed, 4 Mar 2009 23:03:44 +1100 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: from ixro-ex1.ixiacom.com (ixro-out-rtc.ixiacom.com [92.87.192.98]) by ozlabs.org (Postfix) with ESMTP id 92274DDFD6 for ; Wed, 4 Mar 2009 23:03:09 +1100 (EST) Received: from ixro-opurdila-lap.localnet ([10.205.9.70]) by ixro-ex1.ixiacom.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 4 Mar 2009 14:03:06 +0200 From: Octavian Purdila Organization: Ixia To: Benjamin Herrenschmidt Subject: Re: [PATCH 2/2] powerpc: oprofile: enable support for ppc750 processors Date: Wed, 4 Mar 2009 14:02:42 +0200 User-Agent: KMail/1.11.0 (Linux/2.6.26-1-686; KDE/4.2.0; i686; ; ) References: <1231246535-13151-1-git-send-email-opurdila@ixiacom.com> <1231246535-13151-3-git-send-email-opurdila@ixiacom.com> <1236142078.6696.11.camel@pasglop> In-Reply-To: <1236142078.6696.11.camel@pasglop> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200903041402.43130.opurdila@ixiacom.com> X-OriginalArrivalTime: 04 Mar 2009 12:03:06.0930 (UTC) FILETIME=[2DE3E120:01C99CC1] Cc: linuxppc-dev@ozlabs.org X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org From: Benjamin Herrenschmidt > On Tue, 2009-01-06 at 14:55 +0200, Octavian Purdila wrote: > > Signed-off-by: Octavian Purdila > > So I'm going to merge 1/2 but this one should really be changed to > advertise ppc/750 in oprofile_cpu_type (ie. to userspace). > Sure. Here is the new patch which uses ppc/750. It enables oprofile for all 3 FX variants and GX as well. Thanks! tavi commit 70f4865a614e9b0ff4594ebd52b95f78e998b79f Author: Octavian Purdila Date: Tue Jan 6 12:51:43 2009 +0200 powerpc: oprofile: enable support for ppc750 processors Signed-off-by: Octavian Purdila diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index 923f87a..c3ea72b 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c @@ -726,6 +726,8 @@ static struct cpu_spec __initdata cpu_specs[] = { .cpu_setup = __setup_cpu_750, .machine_check = machine_check_generic, .platform = "ppc750", + .oprofile_cpu_type = "ppc/750", + .oprofile_type = PPC_OPROFILE_G4, }, { /* 750FX rev 2.0 must disable HID0[DPM] */ .pvr_mask = 0xffffffff, @@ -741,6 +743,8 @@ static struct cpu_spec __initdata cpu_specs[] = { .cpu_setup = __setup_cpu_750, .machine_check = machine_check_generic, .platform = "ppc750", + .oprofile_cpu_type = "ppc/750", + .oprofile_type = PPC_OPROFILE_G4, }, { /* 750FX (All revs except 2.0) */ .pvr_mask = 0xffff0000, @@ -756,6 +760,8 @@ static struct cpu_spec __initdata cpu_specs[] = { .cpu_setup = __setup_cpu_750fx, .machine_check = machine_check_generic, .platform = "ppc750", + .oprofile_cpu_type = "ppc/750", + .oprofile_type = PPC_OPROFILE_G4, }, { /* 750GX */ .pvr_mask = 0xffff0000, @@ -771,6 +777,8 @@ static struct cpu_spec __initdata cpu_specs[] = { .cpu_setup = __setup_cpu_750fx, .machine_check = machine_check_generic, .platform = "ppc750", + .oprofile_cpu_type = "ppc/750", + .oprofile_type = PPC_OPROFILE_G4, }, { /* 740/750 (L2CR bit need fixup for 740) */ .pvr_mask = 0xffff0000,