On Mon, Oct 02, 2006 at 09:33:03AM -0600, Khalid Aziz wrote: > On Mon, 2006-10-02 at 17:29 +0900, Horms wrote: > > Hi Nanhai, > > > > I have been looking a little into kexec_fake_sal_rendez, > > as I think that kexec for xen will need to use it as I don't > > believe that any CPU hotplug infastructure is present there. > > > > Unfortunately, when compile linux without CPU hotplug support - > > thus forcing the kexec_fake_sal_rendez method of shutting down CPUs > > to be used - kexec no longer functions unless I set maxcpus=1 when > > kexecing into the second kernel. > > > > Is this a problem that you are aware of? > > Do you have any idea where I should poke around to fix it? > > > > That code has not caused problems on single cpu machine in the past. I > will take a look.
Sorry, I didn't offer much detail in my original post. The mode of failure is for an SMP (2cpu box) booting without any maxcpus options for the first of second kernel. What happens is that the second kernel will boot all the way to user space, I have just enough time to cat /proc/cpuinfo, which reveals only one CPU was brought online on boot, then userspace, and presumably the kernel, locks up. Its as if there is some kind of hw watchdog at play. Below is a log, first of the machine booting into the first kernel, then booting into the second one. -- Horms H: http://www.vergenet.net/~horms/ W: http://www.valinux.co.jp/en/ ELILO Uncompressing Linux... done Loading initrd people/horms/initramfs_data.cpio.gz...done Linux version 2.6.18-kexec-g1ddb2ba2-dirty ([EMAIL PROTECTED]) (gcc version 3.4.5) #3 SMP Mon Oct 2 16:05:01 JST 2006 EFI v1.10 by INTEL: SALsystab=0x7fe54980 ACPI=0x7ff99000 ACPI 2.0=0x7ff98000 MPS=0x7ff97000 SMBIOS=0xf0000 booting generic kernel on platform dig Early serial console at I/O port 0x2f8 (options '115200') Initial ramdisk at: 0xe00000007af9a000 (9623826 bytes) SAL 3.20: Intel Corp SR870BH2 version 3.0 SAL Platform features: BusLock SAL: AP wakeup using external interrupt vector 0xf0 No logical to physical processor mapping available iosapic_system_init: Disabling PC-AT compatible 8259 interrupts ACPI: Local APIC address c0000000fee00000 PLATFORM int CPEI (0x3): GSI 22 (level, low) -> CPU 0 (0x0100) vector 30 register_intr: changing vector 39 from IO-SAPIC-edge to IO-SAPIC-level 2 CPUs available, 2 CPUs total MCA related initialization done Virtual mem_map starts at 0xa0007fffff900000 Zone PFN ranges: DMA 1025 -> 262144 Normal 262144 -> 262144 early_node_map[7] active PFN ranges 0: 1025 -> 4096 0: 4527 -> 16384 0: 24576 -> 125925 0: 126514 -> 127540 0: 127541 -> 128557 0: 128576 -> 130688 0: 130984 -> 130998 Built 1 zonelists. Total pages: 120001 Kernel command line: BOOT_IMAGE=net0:ia64/people/horms/vmlinux.gz console=uart,io,0x2f8,115200 [EMAIL PROTECTED] ro PID hash table entries: 4096 (order: 12, 32768 bytes) Console: colour VGA+ 80x25 Placing software IO TLB between 0x66c4000 - 0xa6c4000 Memory: 1787728k/1927120k available (3100k code, 286816k reserved, 2035k data, 656k init) McKinley Errata 9 workaround not needed; disabling it Dentry cache hash table entries: 262144 (order: 7, 2097152 bytes) Inode-cache hash table entries: 131072 (order: 6, 1048576 bytes) Mount-cache hash table entries: 1024 ACPI: Core revision 20060707 Boot processor id 0x0/0x100 CPU 1: synchronized ITC with CPU 0 (last diff -8 cycles, maxerr 494 cycles) Brought up 2 CPUs Total of 2 processors activated (3883.00 BogoMIPS). migration_cost=2912 checking if image is initramfs... it is Freeing initrd memory: 9376kB freed DMI 2.3 present. ACPI: bus type pci registered ACPI: Interpreter enabled ACPI: Using IOSAPIC for interrupt routing ACPI: PCI Root Bridge [PCI0] (0000:00) PCI quirk: region 0c00-0c7f claimed by ICH4 ACPI/GPIO/TCO PCI quirk: region 0500-053f claimed by ICH4 GPIO PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.1 ACPI: PCI Root Bridge [PCI1] (0000:02) ACPI: PCI Root Bridge [PCI2] (0000:05) ACPI: Device [CSFF] status [00000008]: functional but not present; setting present ACPI: PCI Root Bridge [CSFF] (0000:ff) Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init pnp: PnP ACPI: found 12 devices perfmon: version 2.0 IRQ 238 perfmon: Itanium 2 PMU detected, 16 PMCs, 18 PMDs, 4 counters (47 bits) PAL Information Facility v0.5 perfmon: added sampling format default_format perfmon_default_smpl: default_format v2.0 registered io scheduler noop registered io scheduler anticipatory registered (default) pci_hotplug: PCI Hot Plug PCI Core version: 0.5 acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled 00:08: ttyS0 at I/O 0x3f8 (irq = 44) is a 16550A 00:09: ttyS1 at I/O 0x2f8 (irq = 45) is a 16550A RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize mice: PS/2 mouse device common for all mice EFI Variables Facility v0.08 2004-May-17 Adding console on ttyS1 at I/O port 0x2f8 (options '115200') Freeing unused kernel memory: 656kB freed init started: BusyBox v1.2.1 (2006.09.23-05:46+0000) multi-call binary Starting pid 787, console /dev/console: '/etc/init.d/rcS' ifconfig: socket: Function not implemented ifconfig: No usable address families found. ifconfig: socket: Function not implemented Starting pid 887, console /dev/console: '/bin/sh' BusyBox v1.2.1 (2006.09.23-05:46+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. / # cat /proc/cpuinfo processor : 0 vendor : GenuineIntel arch : IA-64 family : 31 model : 2 model name : Madison up to 9M cache revision : 1 archrev : 0 features : branchlong cpu number : 0 cpu regs : 4 cpu MHz : 1296.000517 itc MHz : 1296.517995 BogoMIPS : 1941.50 siblings : 1 processor : 1 vendor : GenuineIntel arch : IA-64 family : 31 model : 2 model name : Madison up to 9M cache revision : 1 archrev : 0 features : branchlong cpu number : 0 cpu regs : 4 cpu MHz : 1296.000517 itc MHz : 1296.517995 BogoMIPS : 1941.50 siblings : 1 / # do_kexec Kexec: Linux->Linux XEN="" KDUMP="" ARCH="ia64" KARCH="ia64" UARCH="ia64" IMAGE="vmlinux-ia64-kexec.gz" XEN_IMAGE="xen-ia64.gz" Create ramdisk KARGS="clock=pit ip=on apm=power-off console=tty0 console=uart,io,0x2f8,115200n8 [EMAIL PROTECTED]" Kexec ifdown: Starting new kernel socket: FunctionLinux version 2.6.18-kexec-g1ddb2ba2-dirty ([EMAIL PROTECTED]) (gcc version 3.4.5) #3 SMP Mon Oct 2 16:05:01 JST 2006 EFI v1.10 by INTEL: SALsystab=0x7fe54980 ACPI=0x7ff99000 ACPI 2.0=0x7ff98000 MPS=0x7ff97000 SMBIOS=0xf0000 booting generic kernel on platform dig Early serial console at I/O port 0x2f8 (options '115200n8') Initial ramdisk at: 0xe00000007e71c000 (19797504 bytes) SAL 3.20: Intel Corp SR870BH2 version 3.0 SAL Platform features: BusLock SAL: AP wakeup using external interrupt vector 0xf0 No logical to physical processor mapping available iosapic_system_init: Disabling PC-AT compatible 8259 interrupts ACPI: Local APIC address c0000000fee00000 PLATFORM int CPEI (0x3): GSI 22 (level, low) -> CPU 0 (0x0100) vector 30 register_intr: changing vector 39 from IO-SAPIC-edge to IO-SAPIC-level 2 CPUs available, 2 CPUs total MCA related initialization done Virtual mem_map starts at 0xa0007fffff900000 Zone PFN ranges: DMA 1025 -> 262144 Normal 262144 -> 262144 early_node_map[8] active PFN ranges 0: 1025 -> 4096 0: 4527 -> 16384 0: 24576 -> 128557 0: 128576 -> 129479 0: 130984 -> 130985 0: 130986 -> 130987 0: 130988 -> 130989 0: 130990 -> 130998 Built 1 zonelists. Total pages: 119379 Kernel command line: clock=pit ip=on apm=power-off console=tty0 console=uart,io,0x2f8,115200n8 [EMAIL PROTECTED] Warning! clock= boot option is deprecated. Use clocksource=xyz PID hash table entries: 4096 (order: 12, 32768 bytes) Console: colour VGA+ 80x25 Linux version 2.6.18-kexec-g1ddb2ba2-dirty ([EMAIL PROTECTED]) (gcc version 3.4.5) #3 SMP Mon Oct 2 16:05:01 JST 2006 EFI v1.10 by INTEL: SALsystab=0x7fe54980 ACPI=0x7ff99000 ACPI 2.0=0x7ff98000 MPS=0x7ff97000 SMBIOS=0xf0000 booting generic kernel on platform dig Early serial console at I/O port 0x2f8 (options '115200n8') Initial ramdisk at: 0xe00000007e71c000 (19797504 bytes) SAL 3.20: Intel Corp SR870BH2 version 3.0 SAL Platform features: BusLock SAL: AP wakeup using external interrupt vector 0xf0 No logical to physical processor mapping available iosapic_system_init: Disabling PC-AT compatible 8259 interrupts ACPI: Local APIC address c0000000fee00000 PLATFORM int CPEI (0x3): GSI 22 (level, low) -> CPU 0 (0x0100) vector 30 register_intr: changing vector 39 from IO-SAPIC-edge to IO-SAPIC-level 2 CPUs available, 2 CPUs total MCA related initialization done Virtual mem_map starts at 0xa0007fffff900000 Zone PFN ranges: DMA 1025 -> 262144 Normal 262144 -> 262144 early_node_map[8] active PFN ranges 0: 1025 -> 4096 0: 4527 -> 16384 0: 24576 -> 128557 0: 128576 -> 129479 0: 130984 -> 130985 0: 130986 -> 130987 0: 130988 -> 130989 0: 130990 -> 130998 Built 1 zonelists. Total pages: 119379 Kernel command line: clock=pit ip=on apm=power-off console=tty0 console=uart,io,0x2f8,115200n8 [EMAIL PROTECTED] Warning! clock= boot option is deprecated. Use clocksource=xyz PID hash table entries: 4096 (order: 12, 32768 bytes) Console: colour VGA+ 80x25 Placing software IO TLB between 0x66c4000 - 0xa6c4000 Memory: 1777776k/1917168k available (3100k code, 296768k reserved, 2035k data, 656k init) McKinley Errata 9 workaround not needed; disabling it Dentry cache hash table entries: 262144 (order: 7, 2097152 bytes) Inode-cache hash table entries: 131072 (order: 6, 1048576 bytes) Mount-cache hash table entries: 1024 ACPI: Core revision 20060707 Boot processor id 0x0/0x100 Processor 0x1/0x0 is stuck. Brought up 1 CPUs Total of 1 processors activated (1941.50 BogoMIPS). migration_cost=0 checking if image is initramfs... it is Freeing initrd memory: 19328kB freed DMI 2.3 present. ACPI: bus type pci registered ACPI: Interpreter enabled ACPI: Using IOSAPIC for interrupt routing ACPI: PCI Root Bridge [PCI0] (0000:00) PCI quirk: region 0c00-0c7f claimed by ICH4 ACPI/GPIO/TCO PCI quirk: region 0500-053f claimed by ICH4 GPIO PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.1 ACPI: PCI Root Bridge [PCI1] (0000:02) ACPI: PCI Root Bridge [PCI2] (0000:05) ACPI: Device [CSFF] status [00000008]: functional but not present; setting present ACPI: PCI Root Bridge [CSFF] (0000:ff) Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init pnp: PnP ACPI: found 12 devices perfmon: version 2.0 IRQ 238 perfmon: Itanium 2 PMU detected, 16 PMCs, 18 PMDs, 4 counters (47 bits) PAL Information Facility v0.5 perfmon: added sampling format default_format perfmon_default_smpl: default_format v2.0 registered io scheduler noop registered io scheduler anticipatory registered (default) pci_hotplug: PCI Hot Plug PCI Core version: 0.5 acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 ACPI: Getting cpuindex for acpiid 0x1 Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled 00:08: ttyS0 at I/O 0x3f8 (irq = 44) is a 16550A 00:09: ttyS1 at I/O 0x2f8 (irq = 45) is a 16550A RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize mice: PS/2 mouse device common for all mice EFI Variables Facility v0.08 2004-May-17 Adding console on ttyS1 at I/O port 0x2f8 (options '115200n8') Freeing unused kernel memory: 656kB freed init started: BusyBox v1.2.1 (2006.09.23-05:46+0000) multi-call binary Starting pid 779, console /dev/console: '/etc/init.d/rcS' ifconfig: socket: Function not implemented ifconfig: No usable address families found. ifconfig: socket: Function not implemented Starting pid 888, console /dev/console: '/bin/sh' BusyBox v1.2.1 (2006.09.23-05:46+0000) Built-in shell (ash) Enter 'help' for a list of built-in commands. / # cat /proc/cpuinfo processor : 0 vendor : GenuineIntel arch : IA-64 family : 31 model : 2 model name : Madison up to 9M cache revision : 1 archrev : 0 features : branchlong cpu number : 0 cpu regs : 4 cpu MHz : 1296.000517 itc MHz : 1296.517995 BogoMIPS : 1941.50 siblings : 1 / # _______________________________________________ fastboot mailing list [email protected] https://lists.osdl.org/mailman/listinfo/fastboot
