Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758995AbYCRFf4 (ORCPT ); Tue, 18 Mar 2008 01:35:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756045AbYCRF1A (ORCPT ); Tue, 18 Mar 2008 01:27:00 -0400 Received: from rv-out-0910.google.com ([209.85.198.184]:25192 "EHLO rv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756037AbYCRF06 (ORCPT ); Tue, 18 Mar 2008 01:26:58 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZLWmQNPdYasqS4toDF9enjThjFpUS7W1SAQn0Bmey0BpNIJhOgdoY5Xcekti5/r1Ews7PqHmnRPRytFlaM6WoebSwKrF2ZNnia7IuRmkjZgOjWPtD6+/Znarws8+q7bA2nUD2N2iw/IBBJnOw04CLEMwWg+nivlBvM2DhwSiRaU= Message-ID: <86802c440803172226yb867326rb595b36b03e6c4b9@mail.gmail.com> Date: Mon, 17 Mar 2008 22:26:55 -0700 From: "Yinghai Lu" To: linux-kernel@vger.kernel.org Subject: Re: + x86-vsmp-build-fixes.patch added to -mm tree Cc: mm-commits@vger.kernel.org, gcosta@redhat.com, kiran@scalemp.com, mingo@elte.hu, tglx@linutronix.de In-Reply-To: <200803180514.m2I5ElVJ015693@imap1.linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200803180514.m2I5ElVJ015693@imap1.linux-foundation.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3297 Lines: 103 On Mon, Mar 17, 2008 at 10:14 PM, wrote: > > The patch titled > x86: vsmp build fixes > has been added to the -mm tree. Its filename is > x86-vsmp-build-fixes.patch > > Before you just go and hit "reply", please: > a) Consider who else should be cc'ed > b) Prefer to cc a suitable mailing list as well > c) Ideally: find the original patch on the mailing list and do a > reply-to-all to that, adding suitable additional cc's > > *** Remember to use Documentation/SubmitChecklist when testing your code *** > > See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find > out what to do about this > > The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ > > ------------------------------------------------------ > Subject: x86: vsmp build fixes > From: Glauber Costa > > VSMP depends on PCI, but the file is now compiled conditionally on PARAVIRT, > no VSMP, so enclose everything in an ifdef CONFIG_PCI. > > We have to be careful enough to let is_vsmp_box and vsmp_init defined, since > they are used outside this file > > Signed-off-by: Glauber Costa > Cc: Ravikiran Thirumalai > Cc: Ingo Molnar > Cc: Thomas Gleixner > Signed-off-by: Andrew Morton > --- > > arch/x86/kernel/vsmp_64.c | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff -puN arch/x86/kernel/vsmp_64.c~x86-vsmp-build-fixes arch/x86/kernel/vsmp_64.c > --- a/arch/x86/kernel/vsmp_64.c~x86-vsmp-build-fixes > +++ a/arch/x86/kernel/vsmp_64.c > @@ -19,6 +19,7 @@ > #include > #include > > +#ifdef CONFIG_PCI > /* > * Interrupt control on vSMPowered systems: > * ~AC is a shadow of IF. If IF is 'on' AC should be 'off' > @@ -87,12 +88,18 @@ int is_vsmp_box(void) > if (read_pci_config(0, 0x1f, 0, PCI_VENDOR_ID) == > (PCI_VENDOR_ID_SCALEMP || (PCI_DEVICE_ID_SCALEMP_VSMP_CTL << 16))) > vsmp = 1; > - > return vsmp; > } > +#else > +int is_vsmp_box(void) > +{ > + return 0; > +} > +#endif > > void __init vsmp_init(void) > { > +#ifdef CONFIG_PCI > void *address; > unsigned int cap, ctl, cfg; > > @@ -125,5 +132,6 @@ void __init vsmp_init(void) > } > > early_iounmap(address, 8); > +#endif > return; > } > _ in arch/x86/Kconfig config PCI bool "PCI support" if !X86_VISWS && !X86_VSMP depends on !X86_VOYAGER default y select ARCH_SUPPORTS_MSI if (X86_LOCAL_APIC && X86_IO_APIC) help Find out whether you have a PCI motherboard. PCI is the name of a bus system, i.e. the way the CPU talks to the other stuff inside your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or VESA. If you have PCI, say Y, otherwise N. will make sure if X86_VSMP, the PCI=y so NAK this patch. YH -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/