problem with SMP machine
I have trouble with getting Xen to properly use some of our SMP machines.
When Xen boots, it first detects the processors, but later it reports
(XEN) mtrr: v2.0 (20020519)
(XEN) mtrr: your CPUs had inconsistent fixed MTRR settings (XEN) mtrr: probably your BIOS does not setup all CPUs. (XEN) mtrr: corrected configuration.
Then xm info only lists one core.
Pure Linux 2.6.10 with SMP is able to boot without complaints, and the exact same Xen kernel boots fine on some other SMP machines that we have...
There might be three explanations to this (and probably a fourth, correct one, which I leave as an exercise to the reader :-)
1) Xen thinks that there is something wrong, while there in fact isn't. 2) Linux does some magic to handle this, that Xen currently does not. 3) Linux is erroneously ignoring this error.
Any ideas on how to solve this?
/Lars
ERROR: cannot use unconfigured serial port COM1
__ __ _____ ___ _ _
\ \/ /___ _ __ |___ / / _ \ __| | _____ _____| | \ // _ \ '_ \ |_ \| | | |__ / _` |/ _ \ \ / / _ \ | / \ __/ | | | ___) | |_| |__| (_| | __/\ V / __/ | /_/\_\___|_| |_| |____(_)___/ \__,_|\___| \_/ \___|_|
http://www.cl.cam.ac.uk/netos/xen
University of Cambridge Computer Laboratory
Xen version 3.0-devel ([email protected]) (gcc version 3.4.3 20050227 (Red Hat 3.4.3-22.fc3)) Mon Apr 25 17:47:34 PDT 2005 Latest ChangeSet: 2005/04/25 17:43:56 1.1385 426d8eccYXhfhvDBLqKyJw9Z-gwRJw
(XEN) Physical RAM map:
(XEN) 0000000000000000 - 000000000009f400 (usable) (XEN) 000000000009f400 - 00000000000a0000 (reserved) (XEN) 00000000000f0000 - 0000000000100000 (reserved) (XEN) 0000000000100000 - 00000000f4ffa000 (usable) (XEN) 00000000f4ffa000 - 00000000f5000000 (ACPI data) (XEN) 00000000fec00000 - 00000000fec10000 (reserved) (XEN) 00000000fee00000 - 00000000fee10000 (reserved) (XEN) 00000000ffc00000 - 0000000100000000 (reserved)
(XEN) System RAM: 3919MB (4013668kB)
(XEN) Xen heap: 10MB (10676kB)
(XEN) CPU0: Before vendor init, caps: bfebfbff 00000000 00000000, vendor = 0 (XEN) CPU#0: Physical ID: 0, Logical ID: 0
(XEN) CPU caps: bfebfbff 00000000 00000000 00000000
(XEN) found SMP MP-table at 000f4fd0
(XEN) ACPI: RSDP (v000 COMPAQ ) @ 0x000f4f70
(XEN) ACPI: RSDT (v001 COMPAQ P31 0x00000002 Ò 0x0000162e) @ 0xf4ffa000
(XEN) ACPI: FADT (v001 COMPAQ P31 0x00000002 Ò 0x0000162e) @ 0xf4ffa040
(XEN) ACPI: MADT (v001 COMPAQ 00000083 0x00000002 0x00000000) @ 0xf4ffa100 (XEN) ACPI: SPCR (v001 COMPAQ SPCRRBSU 0x00000001 Ò 0x0000162e) @ 0xf4ffa1c0
(XEN) ACPI: DSDT (v001 COMPAQ DSDT 0x00000001 MSFT 0x0100000b) @ 0x00000000
(XEN) ACPI: Local APIC address 0xfee00000
(XEN) ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
(XEN) Processor #0 Pentium 4(tm) XEON(tm) APIC version 20
(XEN) ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] disabled)
(XEN) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x04] disabled)
(XEN) ACPI: LAPIC (acpi_id[0x06] lapic_id[0x06] enabled)
(XEN) Processor #6 Pentium 4(tm) XEON(tm) APIC version 20
(XEN) ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] disabled)
(XEN) ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] disabled)
(XEN) ACPI: LAPIC (acpi_id[0x05] lapic_id[0x05] disabled)
(XEN) ACPI: LAPIC (acpi_id[0x07] lapic_id[0x07] disabled)
(XEN) ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
(XEN) Using ACPI for processor (LAPIC) configuration information (XEN) Intel MultiProcessor Specification v1.4
(XEN) Virtual Wire compatibility mode.
(XEN) OEM ID: COMPAQ Product ID: PROLIANT APIC at: 0xFEE00000
(XEN) I/O APIC #2 Version 17 at 0xFEC00000.
(XEN) I/O APIC #3 Version 17 at 0xFEC01000.
(XEN) I/O APIC #4 Version 17 at 0xFEC02000.
(XEN) I/O APIC #5 Version 17 at 0xFEC03000.
(XEN) Enabling APIC mode: Flat. Using 4 I/O APICs
(XEN) Processors: 2
(XEN) Using scheduler: Borrowed Virtual Time (bvt)
(XEN) Initializing CPU#0
(XEN) Detected 2799.337 MHz processor.
(XEN) CPU0 booted
(XEN) enabled ExtINT on CPU#0
(XEN) Booting processor 1/6 eip 90000
(XEN) Initializing CPU#1
(XEN) masked ExtINT on CPU#1
(XEN) CPU1: Before vendor init, caps: bfebfbff 00000000 00000000, vendor = 0 (XEN) CPU#1: Physical ID: 3, Logical ID: 0
(XEN) CPU caps: bfebfbff 00000000 00000000 00000000
(XEN) CPU1 has booted.
(XEN) Total of 2 processors activated.
(XEN) ENABLING IO-APIC IRQs
(XEN) Setting 2 in the phys_id_present_map
(XEN) ...changing IO-APIC physical APIC ID to 2 ... ok.
(XEN) Setting 3 in the phys_id_present_map
(XEN) ...changing IO-APIC physical APIC ID to 3 ... ok.
(XEN) Setting 4 in the phys_id_present_map
(XEN) ...changing IO-APIC physical APIC ID to 4 ... ok.
(XEN) Setting 5 in the phys_id_present_map
(XEN) ...changing IO-APIC physical APIC ID to 5 ... ok.
(XEN) init IO_APIC IRQs
(XEN) vector_irq[49] = 1
(XEN) vector_irq[51] = 3
(XEN) vector_irq[59] = 4
(XEN) vector_irq[61] = 5
(XEN) vector_irq[69] = 6
(XEN) vector_irq[71] = 7
(XEN) vector_irq[79] = 8
(XEN) vector_irq[81] = 9
(XEN) vector_irq[89] = 10
(XEN) vector_irq[91] = 11
(XEN) vector_irq[99] = 12
(XEN) vector_irq[a1] = 13
(XEN) vector_irq[a9] = 14
(XEN) vector_irq[b1] = 15
(XEN) ..TIMER: vector=0x41 pin1=2 pin2=0
(XEN) Using local APIC timer interrupts.
(XEN) Calibrating APIC timer for CPU0...
(XEN) ..... CPU clock speed is 2799.1958 MHz.
(XEN) ..... host bus clock speed is 133.2949 MHz.
(XEN) ..... bus_scale = 0x0000887F
(XEN) checking TSC synchronization across CPUs: passed.
(XEN) Time init:
(XEN) .... cpu_freq: 00000000:A6DA7F40 (XEN) .... scale: 00000001:6DCD0586 (XEN) .... Wall Clock: 1114556034s 140000us
(XEN) PCI: PCI BIOS revision 2.10 entry at 0xf0094, last bus=6
(XEN) PCI: Using configuration type 1
(XEN) PCI: Probing PCI hardware
(XEN) PCI: Probing PCI hardware (bus 00)
(XEN) PCI: Ignoring BAR0-3 of IDE controller 00:0f.1
(XEN) PCI: Discovered peer bus 01
(XEN) PCI: Discovered peer bus 04
(XEN) PCI: Device 00:00 not found by BIOS
(XEN) PCI: Device 00:01 not found by BIOS
(XEN) PCI: Device 00:02 not found by BIOS
(XEN) PCI: Device 00:78 not found by BIOS
(XEN) PCI: Device 00:7b not found by BIOS
(XEN) PCI: Device 00:88 not found by BIOS
(XEN) PCI: Device 00:8a not found by BIOS
(XEN) mtrr: v2.0 (20020519)
(XEN) mtrr: your CPUs had inconsistent fixed MTRR settings
(XEN) mtrr: probably your BIOS does not setup all CPUs.
(XEN) mtrr: corrected configuration.
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Xen-ELF header found: 'GUEST_OS=linux,GUEST_VER=2.6,XEN_VER=3.0,VIRT_BASE=0xC0000000,LOADER=generic' (XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN) Dom0 alloc.: 08000000->10000000
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN) Loaded kernel: c0100000->c053c1c4 (XEN) Init. ramdisk: c053d000->c053d000 (XEN) Phys-Mach map: c053d000->c055d000 (XEN) Page tables: c055d000->c0560000 (XEN) Start info: c0560000->c0561000 (XEN) Boot stack: c0561000->c0562000 (XEN) TOTAL: c0000000->c0800000 (XEN) ENTRY ADDRESS: c0100000
(XEN) Scrubbing Free RAM: ........................................done. (XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen).
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 5 lines · Lars Rasmusson
1) Xen thinks that there is something wrong, while there in fact isn't. 2) Linux does some magic to handle this, that Xen currently does not. 3) Linux is erroneously ignoring this error.Any ideas on how to solve this?
It's unlikely that it has to anything to do with MTRR setup -- that message is just a warning. Linux doesn't give it because you probably did not compile in the MTRR driver.
Your best bet is to post the output from booting Xen (a debug build) and from booting plain Linux. Also you might want to add tracing around smpboot.c in particular to work out wher ethe seocndary CPUs are getting dropped.
-- Keir