All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: manual merge of the oprofile tree
@ 2008-08-25  9:08 Stephen Rothwell
  2008-08-25  9:13 ` Ingo Molnar
  2008-08-25 14:34 ` Cyrill Gorcunov
  0 siblings, 2 replies; 5+ messages in thread
From: Stephen Rothwell @ 2008-08-25  9:08 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: linux-next, Robert Richter, Cyrill Gorcunov, Thomas Gleixner,
	H. Peter Anvin

Hi Ingo,

Today's linux-next merge of the oprofile tree got a conflict in
arch/x86/kernel/apic_32.c between commit
274cfe5912eebe9d4e1a4c451fe617289a181fcf ("x86: apic - rearrange
functions and comments") from the x86 tree and commits
286f571837ba9d67625afd015366d79345abb414 ("x86: apic_*.c: add description
to AMD's extended LVT functions"),
09691616850b3614dfb44790e1e1419b6a7f5d13 ("x86: apic: export symbols for
extended interrupt LVT functions") and
6aa360e6c16c145edf1837690e0f7aaea6b86ef3 ("x86: apic: changing export
symbols to *_GPL") from the oprofile tree.

The former moved some code that was updated by the latter.  I fixed it up
(see below) and can carry it.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --cc arch/x86/kernel/apic_32.c
index a91c57c,0ff576d..0000000
--- a/arch/x86/kernel/apic_32.c
+++ b/arch/x86/kernel/apic_32.c
@@@ -291,36 -241,6 +291,40 @@@ static void __setup_APIC_LVTT(unsigned 
  }
  
  /*
 + * Setup extended LVT, AMD specific (K8, family 10h)
 + *
 + * Vector mappings are hard coded. On K8 only offset 0 (APIC500) and
 + * MCE interrupts are supported. Thus MCE offset must be set to 0.
++ *
++ * If mask=1, the LVT entry does not generate interrupts while mask=0
++ * enables the vector. See also the BKDGs.
 + */
 +
 +#define APIC_EILVT_LVTOFF_MCE 0
 +#define APIC_EILVT_LVTOFF_IBS 1
 +
 +static void setup_APIC_eilvt(u8 lvt_off, u8 vector, u8 msg_type, u8 mask)
 +{
 +	unsigned long reg = (lvt_off << 4) + APIC_EILVT0;
 +	unsigned int  v   = (mask << 16) | (msg_type << 8) | vector;
 +
 +	apic_write(reg, v);
 +}
 +
 +u8 setup_APIC_eilvt_mce(u8 vector, u8 msg_type, u8 mask)
 +{
 +	setup_APIC_eilvt(APIC_EILVT_LVTOFF_MCE, vector, msg_type, mask);
 +	return APIC_EILVT_LVTOFF_MCE;
 +}
 +
 +u8 setup_APIC_eilvt_ibs(u8 vector, u8 msg_type, u8 mask)
 +{
 +	setup_APIC_eilvt(APIC_EILVT_LVTOFF_IBS, vector, msg_type, mask);
 +	return APIC_EILVT_LVTOFF_IBS;
 +}
++EXPORT_SYMBOL_GPL(setup_APIC_eilvt_ibs);
 +
 +/*
   * Program the next event, relative to now
   */
  static int lapic_next_event(unsigned long delta,

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

* Re: linux-next: manual merge of the oprofile tree
  2008-08-25  9:08 linux-next: manual merge of the oprofile tree Stephen Rothwell
@ 2008-08-25  9:13 ` Ingo Molnar
  2008-08-25  9:32   ` Robert Richter
  2008-08-25 14:34 ` Cyrill Gorcunov
  1 sibling, 1 reply; 5+ messages in thread
From: Ingo Molnar @ 2008-08-25  9:13 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: linux-next, Robert Richter, Cyrill Gorcunov, Thomas Gleixner,
	H. Peter Anvin


* Stephen Rothwell <sfr@canb.auug.org.au> wrote:

> Hi Ingo,
> 
> Today's linux-next merge of the oprofile tree got a conflict in
> arch/x86/kernel/apic_32.c between commit
> 274cfe5912eebe9d4e1a4c451fe617289a181fcf ("x86: apic - rearrange
> functions and comments") from the x86 tree and commits
> 286f571837ba9d67625afd015366d79345abb414 ("x86: apic_*.c: add description
> to AMD's extended LVT functions"),
> 09691616850b3614dfb44790e1e1419b6a7f5d13 ("x86: apic: export symbols for
> extended interrupt LVT functions") and
> 6aa360e6c16c145edf1837690e0f7aaea6b86ef3 ("x86: apic: changing export
> symbols to *_GPL") from the oprofile tree.
> 
> The former moved some code that was updated by the latter.  I fixed it 
> up (see below) and can carry it.

thanks Stephen - conflict resolution looks good to me.

	Ingo

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

* Re: linux-next: manual merge of the oprofile tree
  2008-08-25  9:13 ` Ingo Molnar
@ 2008-08-25  9:32   ` Robert Richter
  0 siblings, 0 replies; 5+ messages in thread
From: Robert Richter @ 2008-08-25  9:32 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Stephen Rothwell, linux-next, Cyrill Gorcunov, Thomas Gleixner,
	H. Peter Anvin

On 25.08.08 11:13:41, Ingo Molnar wrote:
> 
> * Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> 
> > Hi Ingo,
> > 
> > Today's linux-next merge of the oprofile tree got a conflict in
> > arch/x86/kernel/apic_32.c between commit
> > 274cfe5912eebe9d4e1a4c451fe617289a181fcf ("x86: apic - rearrange
> > functions and comments") from the x86 tree and commits
> > 286f571837ba9d67625afd015366d79345abb414 ("x86: apic_*.c: add description
> > to AMD's extended LVT functions"),
> > 09691616850b3614dfb44790e1e1419b6a7f5d13 ("x86: apic: export symbols for
> > extended interrupt LVT functions") and
> > 6aa360e6c16c145edf1837690e0f7aaea6b86ef3 ("x86: apic: changing export
> > symbols to *_GPL") from the oprofile tree.
> > 
> > The former moved some code that was updated by the latter.  I fixed it 
> > up (see below) and can carry it.
> 
> thanks Stephen - conflict resolution looks good to me.

Looks good to me too.

-Robert

-- 
Advanced Micro Devices, Inc.
Operating System Research Center
email: robert.richter@amd.com

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

* Re: linux-next: manual merge of the oprofile tree
  2008-08-25  9:08 linux-next: manual merge of the oprofile tree Stephen Rothwell
  2008-08-25  9:13 ` Ingo Molnar
@ 2008-08-25 14:34 ` Cyrill Gorcunov
  1 sibling, 0 replies; 5+ messages in thread
From: Cyrill Gorcunov @ 2008-08-25 14:34 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Ingo Molnar, linux-next, Robert Richter, Thomas Gleixner,
	H. Peter Anvin

[Stephen Rothwell - Mon, Aug 25, 2008 at 07:08:22PM +1000]
| Hi Ingo,
| 
| Today's linux-next merge of the oprofile tree got a conflict in
| arch/x86/kernel/apic_32.c between commit
| 274cfe5912eebe9d4e1a4c451fe617289a181fcf ("x86: apic - rearrange
| functions and comments") from the x86 tree and commits
| 286f571837ba9d67625afd015366d79345abb414 ("x86: apic_*.c: add description
| to AMD's extended LVT functions"),
| 09691616850b3614dfb44790e1e1419b6a7f5d13 ("x86: apic: export symbols for
| extended interrupt LVT functions") and
| 6aa360e6c16c145edf1837690e0f7aaea6b86ef3 ("x86: apic: changing export
| symbols to *_GPL") from the oprofile tree.
| 
| The former moved some code that was updated by the latter.  I fixed it up
| (see below) and can carry it.
| 
| -- 
| Cheers,
| Stephen Rothwell                    sfr@canb.auug.org.au
| http://www.canb.auug.org.au/~sfr/
| 
| diff --cc arch/x86/kernel/apic_32.c
| index a91c57c,0ff576d..0000000
| --- a/arch/x86/kernel/apic_32.c
| +++ b/arch/x86/kernel/apic_32.c
| @@@ -291,36 -241,6 +291,40 @@@ static void __setup_APIC_LVTT(unsigned 
|   }
|   
|   /*
|  + * Setup extended LVT, AMD specific (K8, family 10h)
|  + *
|  + * Vector mappings are hard coded. On K8 only offset 0 (APIC500) and
|  + * MCE interrupts are supported. Thus MCE offset must be set to 0.
| ++ *
| ++ * If mask=1, the LVT entry does not generate interrupts while mask=0
| ++ * enables the vector. See also the BKDGs.
|  + */
|  +
|  +#define APIC_EILVT_LVTOFF_MCE 0
|  +#define APIC_EILVT_LVTOFF_IBS 1
|  +
|  +static void setup_APIC_eilvt(u8 lvt_off, u8 vector, u8 msg_type, u8 mask)
|  +{
|  +	unsigned long reg = (lvt_off << 4) + APIC_EILVT0;
|  +	unsigned int  v   = (mask << 16) | (msg_type << 8) | vector;
|  +
|  +	apic_write(reg, v);
|  +}
|  +
|  +u8 setup_APIC_eilvt_mce(u8 vector, u8 msg_type, u8 mask)
|  +{
|  +	setup_APIC_eilvt(APIC_EILVT_LVTOFF_MCE, vector, msg_type, mask);
|  +	return APIC_EILVT_LVTOFF_MCE;
|  +}
|  +
|  +u8 setup_APIC_eilvt_ibs(u8 vector, u8 msg_type, u8 mask)
|  +{
|  +	setup_APIC_eilvt(APIC_EILVT_LVTOFF_IBS, vector, msg_type, mask);
|  +	return APIC_EILVT_LVTOFF_IBS;
|  +}
| ++EXPORT_SYMBOL_GPL(setup_APIC_eilvt_ibs);
|  +
|  +/*
|    * Program the next event, relative to now
|    */
|   static int lapic_next_event(unsigned long delta,
| 

Thanks Stephen

		- Cyrill -

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

* linux-next: manual merge of the oprofile tree
@ 2008-09-13  0:06 Stephen Rothwell
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Rothwell @ 2008-09-13  0:06 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: linux-next

[-- Attachment #1: Type: text/plain, Size: 520 bytes --]

Hi Ingo,

Today's linux-next merge of the oprofile tree got a conflict in
arch/x86/oprofile/nmi_int.c between commit
0329693bf72584efd84dde19997ee4f0c54f8d57 ("Merge branch 'linus' into
irq/sparseirq") from the timers tree and commit
424bf62df64003f35ce8941494dcfe7ab61376b3 ("manual merge of oprofile")
from the oprofile tree.

The former merge added two declarations twice. I just removed the extras.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2008-09-13  0:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-25  9:08 linux-next: manual merge of the oprofile tree Stephen Rothwell
2008-08-25  9:13 ` Ingo Molnar
2008-08-25  9:32   ` Robert Richter
2008-08-25 14:34 ` Cyrill Gorcunov
  -- strict thread matches above, loose matches on Subject: below --
2008-09-13  0:06 Stephen Rothwell

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.