[Cbe-oss-dev] [PATCH] OProfile: fix cbe pm signal routing problem

Takashi02 Yamamoto Takashi02_Yamamoto at hq.scei.sony.co.jp
Fri Aug 10 18:13:29 EST 2007


This patch fixes the cbe pm signal routing problem.

We can confirm the fix by the following oprofile event parameter.
"opcontrol --event=cache_hit:10000:0x42"

Signed-off-by: Takashi Yamamoto <Takashi02_Yamamoto at hq.scei.sony.co.jp>

Index: linux-2.6.22.1/arch/powerpc/oprofile/op_model_cell.c
===================================================================
--- linux-2.6.22.1.orig/arch/powerpc/oprofile/op_model_cell.c
+++ linux-2.6.22.1/arch/powerpc/oprofile/op_model_cell.c
@@ -291,13 +291,13 @@ static void set_pm_event(u32 ctr, int ev
        for (i = 0; i < NUM_TRACE_BUS_WORDS; i++) {
                if (bus_word & (1 << i)) {
                        pm_regs.debug_bus_control |=
-                           (bus_type << (31 - (2 * i) + 1));
+                           (bus_type << (30 - (2 * i)));
 
                        for (j = 0; j < NUM_INPUT_BUS_WORDS; j++) {
                                if (input_bus[j] == 0xff) {
                                        input_bus[j] = i;
                                        pm_regs.group_control |=
-                                           (i << (31 - i));
+                                           (input_bus[j] << (30 - (2 * 
j)));
                                        break;
                                }
                        }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/cbe-oss-dev/attachments/20070810/ce18e7e3/attachment.htm>


More information about the cbe-oss-dev mailing list