WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [PATCH] Automatic bigsmp detection for i386 systems with

To: "Kamble, Nitin A" <nitin.a.kamble@xxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] Automatic bigsmp detection for i386 systems with more than 8 cpus
From: Andrew Morton <akpm@xxxxxxxx>
Date: Sat, 10 Sep 2005 02:39:24 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, venkatesh.pallipadi@xxxxxxxxx
Delivery-date: Sun, 11 Sep 2005 01:25:31 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <E305A4AFB7947540BC487567B5449BA807CEACA7@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <E305A4AFB7947540BC487567B5449BA807CEACA7@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
"Kamble, Nitin A" <nitin.a.kamble@xxxxxxxxx> wrote:
>
>    Linux kernel is able to enable bigsmp mode automatically if SMP i386
> kernel finds more than 8 cpus in the system. This patch adds this
> missing feature to Xen hypervisor, to enable Xen booting fine on systems
> with more than 8 CPUS without any commandline options.
> 

>  static void __init genapic_apic_force(char *str)
>  {
>       int i;
> @@ -51,6 +70,8 @@
>       }
>       if (!changed) 
>               genapic = &apic_default;
> +
> +    cmdline_apic = changed;
>  
>       printk(KERN_INFO "Using APIC driver %s\n", genapic->name);
>  } 
> diff -r 840e348a334e xen/arch/x86/mpparse.c
> --- a/xen/arch/x86/mpparse.c  Thu Sep  8 19:11:25 2005
> +++ b/xen/arch/x86/mpparse.c  Thu Sep  8 15:12:46 2005
> @@ -62,6 +62,7 @@
>  
>  int pic_mode;
>  unsigned long mp_lapic_addr;
> +unsigned int def_to_bigsmp = 0;
>  
>  /* Processor that is doing the boot up */
>  unsigned int boot_cpu_physical_apicid = -1U;
> @@ -213,6 +214,10 @@
>               ver = 0x10;
>       }
>       apic_version[m->mpc_apicid] = ver;
> +    if ((num_processors > 8) && APIC_XAPIC(ver) && (boot_cpu_data.x86_vendor 
> == X86_VENDOR_INTEL))
> +         def_to_bigsmp = 1;
> +    else
> +        def_to_bigsmp = 0;
>       bios_cpu_apicid[num_processors - 1] = m->mpc_apicid;
>  }

Please use hard tabs.  If the Xen patch comes in adding gunk like this
there will be loud complaints...


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>