mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* ppc32 MMCR0_PMXE saga.
@ 2005-02-03  4:47 Dave Jones
  2005-02-03  6:58 ` Thomas Gleixner
  2005-02-03  8:50 ` Albert Herranz
  0 siblings, 2 replies; 5+ messages in thread
From: Dave Jones @ 2005-02-03  4:47 UTC (permalink / raw)
  To: tglx, akpm, torvalds, dwmw2, albert_herranz; +Cc: linux-kernel

I'm at a loss to explain whats been happening with this symbol.


ChangeSet 1.2370, 2005/01/11 17:41:32-08:00, tglx@linutronix.de

    [PATCH] ppc: remove duplicate define

    The MMCR0_PMXE is already defined in reg.h, so no need to redefine it here.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>

ChangeSet 1.2514, 2005/01/12 09:02:21-08:00, dwmw2@infradead.org

    [PATCH] ppc: fix removed MMCR0_PMXE define

    In ChangeSet 1.2370, 2005/01/11 17:41:32-08:00, tglx@linutronix.de wrote:
    >
    >         [PATCH] ppc: remove duplicate define
    >
    >         The MMCR0_PMXE is already defined in reg.h...

    Er, no it's not. But perhaps it should be...

ChangeSet 1.1992.2.33, 2005/02/02 08:36:04-08:00, albert_herranz@yahoo.es

    [PATCH] ppc32: perfctl-ppc: fix duplicate mmcr0 define

    Fix a compilation warning due to a duplicate definition of MMCR0_PMXE.

    The definition comes in perfctr-ppc.patch, but was recently introduced too
    in Linus tree.

    Signed-off-by: Andrew Morton <akpm@osdl.org>
    Signed-off-by: Linus Torvalds <torvalds@osdl.org>


Clearly it *is* needed, as without it, this happens ..

arch/ppc/kernel/perfmon.c:55: error: `MMCR0_PMXE' undeclared (first use in this function)

grep shows no occurances of MMCR0_PMXE in include/asm-ppc that I can
see, so that last changeset is very confusing.

		Dave

Unbreak ppc32 perfctr build.

Signed-off-by: Dave Jones <davej@redhat.com>


--- linux-2.6.10/include/asm-ppc/reg.h~	2005-02-02 23:28:14.000000000 -0500
+++ linux-2.6.10/include/asm-ppc/reg.h	2005-02-02 23:28:36.000000000 -0500
@@ -333,6 +333,7 @@
 #define MMCR0_PMC2_CYCLES	0x1
 #define MMCR0_PMC2_ITLB		0x7
 #define MMCR0_PMC2_LOADMISSTIME	0x5
+#define MMCR0_PMXE	(1 << 26)
 
 /* Short-hand versions for a number of the above SPRNs */
 #define CTR	SPRN_CTR	/* Counter Register */

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ppc32 MMCR0_PMXE saga.
  2005-02-03  4:47 ppc32 MMCR0_PMXE saga Dave Jones
@ 2005-02-03  6:58 ` Thomas Gleixner
  2005-02-03 10:42   ` Mikael Pettersson
  2005-02-03  8:50 ` Albert Herranz
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Gleixner @ 2005-02-03  6:58 UTC (permalink / raw)
  To: Dave Jones
  Cc: Andrew Morton, Linus Torvalds, David Woodhouse, albert_herranz, LKML

On Wed, 2005-02-02 at 23:47 -0500, Dave Jones wrote:
> I'm at a loss to explain whats been happening with this symbol.

The macro was duplicated in -mm1.
I sent a patch against -mm1
The patch went upstream without the perfctr-ppc.patch, which contained
the macro define in regs.h.

So a bit of confusion came up

tglx



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ppc32 MMCR0_PMXE saga.
  2005-02-03  4:47 ppc32 MMCR0_PMXE saga Dave Jones
  2005-02-03  6:58 ` Thomas Gleixner
@ 2005-02-03  8:50 ` Albert Herranz
  1 sibling, 0 replies; 5+ messages in thread
From: Albert Herranz @ 2005-02-03  8:50 UTC (permalink / raw)
  To: Dave Jones, tglx, akpm, torvalds, dwmw2; +Cc: linux-kernel

 --- Dave Jones <davej@redhat.com> escribió: 
> I'm at a loss to explain whats been happening with
> this symbol.

My patch was against the -mm series, as reported in
the original subject.

In the -mm series, the perfctr-ppc.patch already
defines that symbol. As that patch contains all the
perfctr related bits, it made sense to remove the
definition coming from the Linus tree and keep the
definition from the perfctr-ppc.patch. But just on
-mm.

Cheers,
Albert



		
______________________________________________ 
Renovamos el Correo Yahoo!: ¡250 MB GRATIS! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ppc32 MMCR0_PMXE saga.
  2005-02-03  6:58 ` Thomas Gleixner
@ 2005-02-03 10:42   ` Mikael Pettersson
  2005-02-03 10:51     ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Mikael Pettersson @ 2005-02-03 10:42 UTC (permalink / raw)
  To: tglx
  Cc: Dave Jones, Andrew Morton, Linus Torvalds, David Woodhouse,
	albert_herranz, LKML

Thomas Gleixner writes:
 > On Wed, 2005-02-02 at 23:47 -0500, Dave Jones wrote:
 > > I'm at a loss to explain whats been happening with this symbol.
 > 
 > The macro was duplicated in -mm1.
 > I sent a patch against -mm1
 > The patch went upstream without the perfctr-ppc.patch, which contained
 > the macro define in regs.h.
 > 
 > So a bit of confusion came up

The sane thing to do is to split -mm's perfctr-ppc.patch so that
the new symbolic constants can go into -linus w/o having to drag
in the experimental perfctr stuff from -mm.

This wasn't an issue before because the -linus kernel didn't
acquire any use of PMXE until very recently.

/Mikael

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ppc32 MMCR0_PMXE saga.
  2005-02-03 10:42   ` Mikael Pettersson
@ 2005-02-03 10:51     ` Andrew Morton
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2005-02-03 10:51 UTC (permalink / raw)
  To: Mikael Pettersson
  Cc: tglx, davej, torvalds, dwmw2, albert_herranz, linux-kernel

Mikael Pettersson <mikpe@csd.uu.se> wrote:
>
> Thomas Gleixner writes:
>   > On Wed, 2005-02-02 at 23:47 -0500, Dave Jones wrote:
>   > > I'm at a loss to explain whats been happening with this symbol.
>   > 
>   > The macro was duplicated in -mm1.
>   > I sent a patch against -mm1
>   > The patch went upstream without the perfctr-ppc.patch, which contained
>   > the macro define in regs.h.
>   > 
>   > So a bit of confusion came up
> 
>  The sane thing to do is to split -mm's perfctr-ppc.patch so that
>  the new symbolic constants can go into -linus w/o having to drag
>  in the experimental perfctr stuff from -mm.

ah, so that's what happened.

I'll tweak perfctr-ppc.patch for now.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-02-03 10:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-03  4:47 ppc32 MMCR0_PMXE saga Dave Jones
2005-02-03  6:58 ` Thomas Gleixner
2005-02-03 10:42   ` Mikael Pettersson
2005-02-03 10:51     ` Andrew Morton
2005-02-03  8:50 ` Albert Herranz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®