Subject: Re: port-amd64/33927: -current/amd64 kernel reboots early in boot process
To: None <port-amd64-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <khym@azeotrope.org>
List: netbsd-bugs
Date: 07/13/2006 05:15:07
The following reply was made to PR port-amd64/33927; it has been noted by GNATS.

From: khym@azeotrope.org
To: Matthias Drochner <M.Drochner@fz-juelich.de>
Cc: Frank van der Linden <fvdl@NetBSD.org>, gnats-bugs@NetBSD.org,
	gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: port-amd64/33927: -current/amd64 kernel reboots early in boot process
Date: Thu, 13 Jul 2006 00:12:38 -0500

 On Thu, Jul 13, 2006 at 12:42:00AM +0200, Matthias Drochner wrote:
 > Didn't follow the thread from the beginning, but there was a change
 > by me which unfortunately affects multiprocessor systems: I changed
 > the kernel memory allocator to respect the execute permission bit.
 > (This used to work all the time for alpha.)
 > I don't understand all the details yet, but MP systems need some
 > pieces of memory mapped with execute permission; see the appended
 > patch.
 > sorry for any breakage
 > Matthias
 
 Well, it's getting much further than it did :) Still not quite working
 yet, however...
 
 A kernel built from this config file:
 
 include "arch/amd64/conf/GENERIC_ACPI"
 options         MULTIPROCESSOR
 
 booting hd0a:/netbsd-genericacpimp (howto 0x2)
 7408024+866632+389536 [520680+332613]=0xa145d8
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.
 
 NetBSD 3.99.21 (GENERIC_ACPI.MP) #0: Thu Jul 13 00:02:07 CDT 2006
         root@cheetah.azeotrope.org:/usr/obj.amd64/sys/arch/amd64/compile/GENERIC_ACPI.MP
 total memory = 2046 MB
 avail memory = 1962 MB
 timecounter: Timecounters tick every 10.000 msec
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 timecounter: selected timecounter "i8254" frequency 1193182 Hz quality 100
 mainbus0 (root)
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: AMD Opteron(tm) Processor 246, 2009.35 MHz
 cpu0: features: e7dbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
 cpu0: features: e7dbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
 cpu0: features: e7dbfbff<FXSR,SSE,SSE2,LONG,3DNOW2,3DNOW>
 cpu0: calibrating local timer
 cpu0: apic clock running at 200 MHz
 cpu0: 16 page colors
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: starting
 cpu1: AMD Opteron(tm) Processor 246, 2009.26 MHz
 cpu1: features: e7dbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
 cpu1: features: e7dbfbff<PGE,MCA,CMOV,PAT,PSE36,MPC,NOX,MMXX,MMX>
 cpu1: features: e7dbfbff<FXSR,SSE,SSE2,LONG,3DNOW2,3DNOW>
 ioapic0 at mainbus0 apid 2 (I/O APIC)
 ioapic0: pa 0xfec00000, version 11, 24 pins
 ioapic1 at mainbus0 apid 3 (I/O APIC)
 ioapic1: pa 0xd8000000, version 11, 4 pins
 ioapic2 at mainbus0 apid 4 (I/O APIC)
 ioapic2: pa 0xd8001000, version 11, 4 pins
 ioapic3 at mainbus0 apid 5 (I/O APIC)
 ioapic3: pa 0xd8400000, version 11, 24 pins
 acpi0 at mainbus0: Advanced Configuration and Power Interface
 acpi0: fixed-feature power button present
 timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
 timecounter: selected timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
 ACPI-Fast 24-bit timer
 mpacpi: could not get bus number, assuming bus 0
 ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
 ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
 ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
 ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
 PNP0C0C [ACPI power button device] at acpi0 not configured
 PNP0C01 [System Board] at acpi0 not configured
 PNP0A03 [PCI/PCI-X Host Bridge] at acpi0 not configured
 PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
 PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
 PNP0000 [AT Interrupt Controller] at acpi0 not configured
 PNP0100 [AT Timer] at acpi0 not configured
 PNP0200 [AT DMA Controller] at acpi0 not configured
 PNP0800 [AT-style speaker sound] at acpi0 not configured
 PNP0B00 [AT Real-Time Clock] at acpi0 not configured
 PNP0C04 [Math Coprocessor] at acpi0 not configured
 PNP0A05 [Generic Container Device] at acpi0 not configured
 PNP0501 [16550A-compatible COM port] at acpi0 not configured
 PNP0303 [IBM Enhanced (101/102-key, PS/2 mouse support)] at acpi0 not configured
 PNP0F13 [PS/2 Port for PS/2-style Mice] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0C0F [PCI interrupt link device] at acpi0 not configured
 PNP0A03 [PCI/PCI-X Host Bridge] at acpi0 not configured
 PNP0A03 [PCI/PCI-X Host Bridge] at acpi0 not configured
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 NVIDIA nForce4 Memory Controller (miscellaneous memory, revision 0xa3) at pci0 dev 0 function 0 not configured
 pcib0 at pci0 dev 1 function 0
 pcib0: NVIDIA nForce4 PCI-ISA bridge (rev. 0xa3)
 NVIDIA nForce4 SMBus (SMBus serial bus, revision 0xa2) at pci0 dev 1 function 1 not configured
 ohci0 at pci0 dev 2 function 0: NVIDIA nForce4 USB Host Controller (rev. 0xa2)
 ohci0: interrupting at ioapic0 pin 20 (irq 10)
 ohci0: OHCI version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0
 uhub0: NVIDIA OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 10 ports with 10 removable, self powered
 ehci0 at pci0 dev 2 function 1: NVIDIA nForce4 USB2 Host Controller (rev. 0xa3)
 ehci0: interrupting at ioapic0 pin 21 (irq 7)
 ehci0: BIOS refuses to give up ownership, using force
 ehci0: EHCI version 1.0
 ehci0: companion controller, 4 ports each: ohci0
 usb1 at ehci0: USB revision 2.0
 uhub1 at usb1
 uhub1: NVIDIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
 uhub1: 10 ports with 10 removable, self powered
 auich0 at pci0 dev 4 function 0: nForce4 AC-97 Audio
 auich0: interrupting at ioapic0 pin 22 (irq 12)
 auich0: ac97: Analog Devices AD1981B codec; headphone, 20 bit DAC, no 3D stereo
 auich0: ac97: ext id 605<AC97_22,AMAP,SPDIF,VRA>
 viaide0 at pci0 dev 6 function 0
 viaide0: NVIDIA nForce4 IDE Controller (rev. 0xf2)
 viaide0: bus-master DMA support present
 viaide0: primary channel configured to compatibility mode
 viaide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
 atabus0 at viaide0 channel 0
 viaide0: secondary channel configured to compatibility mode
 viaide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
 atabus1 at viaide0 channel 1
 viaide1 at pci0 dev 7 function 0
 viaide1: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
 viaide1: bus-master DMA support present
 viaide1: primary channel wired to native-PCI mode
 viaide1: using ioapic0 pin 23 (irq 11) for native-PCI interrupt
 atabus2 at viaide1 channel 0
 viaide1: secondary channel wired to native-PCI mode
 atabus3 at viaide1 channel 1
 viaide2 at pci0 dev 8 function 0
 viaide2: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
 viaide2: bus-master DMA support present
 viaide2: primary channel wired to native-PCI mode
 viaide2: using ioapic0 pin 20 (irq 10) for native-PCI interrupt
 atabus4 at viaide2 channel 0
 viaide2: secondary channel wired to native-PCI mode
 atabus5 at viaide2 channel 1
 ppb0 at pci0 dev 9 function 0: NVIDIA nForce4 PCI Host Bridge (rev. 0xa2)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled
 fwohci0 at pci1 dev 5 function 0: Texas Instruments TSB43AA22/A IEEE 1394 Host Controller (rev. 0x00)
 fwohci0: interrupting at ioapic0 pin 16 (irq 12)
 fwohci0: OHCI version 1.10 (ROM=1)
 fwohci0: No. of Isochronous channels is 4.
 fwohci0: EUI64 00:e0:81:00:00:23:50:e6
 fwohci0: Phy 1394a available S400, 2 ports.
 fwohci0: Link S400, max_rec 2048 bytes.
 ieee1394if0 at fwohci0: IEEE1394 bus
 fwip0 at ieee1394if0: IP over IEEE1394
 fwohci0: Initiate bus reset
 nfe0 at pci0 dev 10 function 0: ioapic0 pin 21 (irq 11), address 00:e0:81:54:85:86
 makphy0 at nfe0 phy 1: Marvell 88E1111 Gigabit PHY, rev. 1
 makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 ppb1 at pci0 dev 14 function 0: NVIDIA nForce4 PCIe Host Bridge (rev. 0xa3)
 pci2 at ppb1 bus 2
 pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 vga0 at pci2 dev 0 function 0: NVIDIA product 0x0140 (rev. 0xa2)
 vga0: WARNING: ignoring 64-bit BAR @ 0x14
 vga0: WARNING: ignoring 64-bit BAR @ 0x1c
 wsdisplay0 at vga0 kbdmux 1
 wsmux1: connecting to wsdisplay0
 pchb0 at pci0 dev 24 function 0
 pchb0: Advanced Micro Devices AMD64 HyperTransport configuration (rev. 0x00)
 pchb1 at pci0 dev 24 function 1
 pchb1: Advanced Micro Devices AMD64 Address Map configuration (rev. 0x00)
 pchb2 at pci0 dev 24 function 2
 pchb2: Advanced Micro Devices AMD64 DRAM configuration (rev. 0x00)
 pchb3 at pci0 dev 24 function 3
 pchb3: Advanced Micro Devices AMD64 Miscellaneous configuration (rev. 0x00)
 pchb4 at pci0 dev 25 function 0
 pchb4: Advanced Micro Devices AMD64 HyperTransport configuration (rev. 0x00)
 pchb5 at pci0 dev 25 function 1
 pchb5: Advanced Micro Devices AMD64 Address Map configuration (rev. 0x00)
 pchb6 at pci0 dev 25 function 2
 pchb6: Advanced Micro Devices AMD64 DRAM configuration (rev. 0x00)
 pchb7 at pci0 dev 25 function 3
 pchb7: Advanced Micro Devices AMD64 Miscellaneous configuration (rev. 0x00)
 isa0 at pcib0
 com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 com0: console
 pckbc0 at isa0 port 0x60-0x64
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0 mux 1
 wskbd0: connecting to wsdisplay0
 attimer0 at isa0 port 0x40-0x43: AT Timer
 pcppi0 at isa0 port 0x61
 midi0 at pcppi0: PC speaker (CPU-intensive output)
 sysbeep0 at pcppi0
 pcppi0: attached to attimer0
 ioapic0: enabling
 ioapic1: enabling
 ioapic2: enabling
 ioapic3: enabling
 timecounter: Timecounter "TSC" frequency 2009350730 Hz quality 800
 fwohci0: node_id=0xc800ffc1, gen=1, CYCLEMASTER mode
 ieee1394if0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
 ieee1394if0: bus manager 1 (me)
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 auich0: measured ac97 link rate at 47619 Hz, will use 48000 Hz
 audio0 at auich0: full duplex, mmap, independent
 Kernelized RAIDframe activated
 atapibus0 at atabus0: 2 targets
 cd0 at atapibus0 drive 0: <LITE-ON DVDRW SOHW-1673S, , JS0B> cdrom removable
 ieee1394if0: New S400 device ID:000483020200eb50
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
 cd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
 sbp0 at ieee1394if0: SBP-2/SCSI over IEEE1394
 scsibus0 at sbp0: 1 target, 0 luns per target
 sd0 at scsibus0 target 0 lun 0: <DAT Opti, Speedzter3., 0037> simplified direct fixed
 sd0: 186 GB, 190734 cyl, 64 head, 32 sec, 512 bytes/sect x 390625000 sectors
 uhub2 at uhub0 port 4
 uhub2: Texas Instruments UT-USB41 hub, class 9/0, rev 1.10/1.10, addr 2
 uhub2: 4 ports with 4 removable, self powered
 wd0 at atabus4 drive 0: <WDC WD2500SD-01KCB0>
 wd0: drive supports 16-sector PIO transfers, LBA48 addressing
 wd0: 232 GB, 484521 cyl, 16 head, 63 sec, 512 bytes/sect x 488397168 sectors
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 wd0(viaide2:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
 wd1 at atabus5 drive 0: <HDT722525DLA380>
 wd1: drive supports 16-sector PIO transfers, LBA48 addressing
 wd1: 232 GB, 484521 cyl, 16 head, 63 sec, 512 bytes/sect x 488397168 sectors
 wd1: 32-bit data port
 wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 wd1(viaide2:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
 uhidev0 at uhub2 port 2 configuration 1 interface 0
 uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/18.00, addr 3, iclass 3/1
 ums0 at uhidev0: 6 buttons and Z dir.
 wsmouse0 at ums0 mux 0
 boot device: wd0
 root on wd0a dumps on wd0b
 root file system type: ffs
 cpu1: CPU 1 running
 fatal double fault in supervisor mode
 [ other stuff that I didn't quite catch ]
 [ reboot ]