All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerone Young <jyoung5@us.ibm.com>
To: kvm-ppc@vger.kernel.org
Subject: Re: [PATCH 1 of 2] [v3] Fix definitions for dbcr0, dbcr1, & dbcr2
Date: Fri, 06 Jun 2008 17:24:05 +0000	[thread overview]
Message-ID: <1212773045.17418.7.camel@thinkpadL> (raw)
In-Reply-To: <5149614e9c977f352e44.1212771275@thinkpadL>

It was a cut and past. Honestly had not noticed the commit message was
bad. But yes this patch is an upstream patch and is required for use
with the other patch.

On Fri, 2008-06-06 at 12:17 -0500, Hollis Blanchard wrote:
> On Fri, 2008-06-06 at 11:54 -0500, Jerone Young wrote:
> > 1 file changed, 47 insertions(+)
> > include/asm-powerpc/reg_booke.h |   47 +++++++++++++++++++++++++++++++++++++++
> > 
> > 
> > # HG changeset patch
> > # User Jerone Young <jyoung5@us.ibm.com>
> > # Date 1212770968 18000
> > # Node ID 5149614e9c977f352e441c3a4ceca0b4664d2cda
> > # Parent  930cab30f552fdc6ecce015fff7c2f8b0087a8d8
> > [v3] Fix definitions for dbcr0, dbcr1, & dbcr2 register for bookE processors
> > 
> > * This will be apart of kernel 2.6.27 .. so will have to remove once
> > merge with 2.6.27-rc?. Currently working to get upstream.
> 
> I think what you're trying to say is that this is not a KVM-specific
> patch.
> 
> This does not belong in a commit message.
> 
> > Taken from the PowerPC ISA BookIII-E specifies that DBCR0 is different
> > for all others that are not ppc405 chips. So I have now chnaged the
> > conditional to reflect this. Also added definitions needed for DBCR1 &
> > DBCR2.
> 
> This it not entirely coherent. Could you please rephrase, and fix the
> typos while you're at it?
> 
> "I have now changed the conditional to reflect this" doesn't make any
> sense here; you're talking about an obsolete patch and nobody will have
> any idea what you're talking about.
> 
> > Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
> > 
> > diff --git a/include/asm-powerpc/reg_booke.h b/include/asm-powerpc/reg_booke.h
> > --- a/include/asm-powerpc/reg_booke.h
> > +++ b/include/asm-powerpc/reg_booke.h
> > @@ -253,6 +253,7 @@
> >  #define ESR_BO		0x00020000	/* Byte Ordering */
> > 
> >  /* Bit definitions related to the DBCR0. */
> > +#if defined(CONFIG_40x)
> >  #define DBCR0_EDM	0x80000000	/* External Debug Mode */
> >  #define DBCR0_IDM	0x40000000	/* Internal Debug Mode */
> >  #define DBCR0_RST	0x30000000	/* all the bits in the RST field */
> > @@ -275,6 +276,52 @@
> >  #define DBCR0_IA12T	0x00008000	/* Instr Addr 1-2 range Toggle */
> >  #define DBCR0_IA34T	0x00004000	/* Instr Addr 3-4 range Toggle */
> >  #define DBCR0_FT	0x00000001	/* Freeze Timers on debug event */
> > +#elif defined(CONFIG_BOOKE)
> > +#define DBCR0_EDM	0x80000000	/* External Debug Mode */
> > +#define DBCR0_IDM	0x40000000	/* Internal Debug Mode */
> > +/* DBCR0_RST* is 44x specific and not followed in fsl booke */
> > +#define DBCR0_RST	0x30000000	/* all the bits in the RST field */
> > +#define DBCR0_RST_SYSTEM 0x30000000	/* System Reset */
> > +#define DBCR0_RST_CHIP	0x20000000	/* Chip Reset */
> > +#define DBCR0_RST_CORE	0x10000000	/* Core Reset */
> > +#define DBCR0_RST_NONE	0x00000000	/* No Reset */
> > +#define DBCR0_ICMP	0x08000000	/* Instruction Completion */
> > +#define DBCR0_IC	DBCR0_ICMP
> > +#define DBCR0_BRT	0x04000000	/* Branch Taken */
> > +#define DBCR0_BR	DBCR0_BRT
> > +#define DBCR0_IRPT	0x02000000	/* Exception Debug Event */
> > +#define DBCR0_EDE	DBCR0_IRPT
> > +#define DBCR0_TDE	0x01000000	/* TRAP Debug Event */
> > +#define DBCR0_IAC1	0x00800000	/* Instr Addr compare 1 enable */
> > +#define DBCR0_IA1	DBCR0_IAC1
> > +#define DBCR0_IAC2	0x00400000	/* Instr Addr compare 2 enable */
> > +#define DBCR0_IA2	DBCR0_IAC2
> > +#define DBCR0_IAC3	0x00200000	/* Instr Addr compare 3 enable */
> > +#define DBCR0_IA3	DBCR0_IAC3
> > +#define DBCR0_IAC4	0x00100000	/* Instr Addr compare 4 enable */
> > +#define DBCR0_IA4	DBCR0_IAC4
> > +#define DBCR0_DAC1R	0x00080000	/* DAC 1 Read enable */
> > +#define DBCR0_DAC1W	0x00040000	/* DAC 1 Write enable */
> > +#define DBCR0_DAC2R	0x00020000	/* DAC 2 Read enable */
> > +#define DBCR0_DAC2W	0x00010000	/* DAC 2 Write enable */
> > +#define DBCR0_RET	0x00008000	/* Return Debug Event */
> > +#define DBCR0_FT	0x00000001	/* Freeze Timers on debug event */
> 
> 
> > +#endif
> > +
> > +#if defined(CONFIG_BOOKE)
> 
> ^^^ Remove these 3 lines.
> 
> > +/* Bit definitions related to the DBCR1. */
> > +#define DBCR1_IAC12M	0x00800000	/* Instr Addr 1-2 range enable */
> > +#define DBCR1_IAC12MX	0x00C00000	/* Instr Addr 1-2 range eXclusive */
> > +#define DBCR1_IAC12AT	0x00010000	/* Instr Addr 1-2 range Toggle */
> > +#define DBCR1_IAC34M	0x00000080	/* Instr Addr 3-4 range enable */
> > +#define DBCR1_IAC34MX	0x000000C0	/* Instr Addr 3-4 range eXclusive */
> > +#define DBCR1_IAC34AT	0x00000001	/* Instr Addr 3-4 range Toggle */
> > +
> > +/* Bit definitions related to the DBCR2. */
> > +#define DBCR2_DAC12M	0x00800000	/* DAC 1-2 range enable */
> > +#define DBCR2_DAC12MX	0x00C00000	/* DAC 1-2 range eXclusive */
> > +#define DBCR2_DAC12A	0x00200000	/* DAC 1-2 Asynchronous */
> > +#endif
> 


      parent reply	other threads:[~2008-06-06 17:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-06 16:54 [PATCH 1 of 2] [v3] Fix definitions for dbcr0, dbcr1, Jerone Young
2008-06-06 17:17 ` [PATCH 1 of 2] [v3] Fix definitions for dbcr0, dbcr1, & dbcr2 Hollis Blanchard
2008-06-06 17:24 ` Jerone Young [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1212773045.17418.7.camel@thinkpadL \
    --to=jyoung5@us.ibm.com \
    --cc=kvm-ppc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.