Subject: kern/32224: NetBSD 3.99.13 doesn't boot because of pmap errors
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Matthias Scheler <tron@zhadum.org.uk>
List: netbsd-bugs
Date: 12/03/2005 14:46:00
>Number:         32224
>Category:       kern
>Synopsis:       NetBSD 3.99.13 doesn't boot because of pmap errors
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 03 14:46:00 +0000 2005
>Originator:     tron@zhadum.org.uk
>Release:        NetBSD 3.99.13 2005-12-03 sources
>Organization:
Matthias Scheler                                  http://scheler.de/~matthias/
>Environment:
System: NetBSD lyssa.zhadum.org.uk 3.99.12 NetBSD 3.99.12 (LYSSA) #0: Thu Dec 1 20:55:34 GMT 2005 tron@lyssa.zhadum.org.uk:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386

[The above "uname -a" is from the old kernel which works.]

>Description:
When I tried to boot a NetBSD 3.99.13 kernel on my Pentium 4 system
the kernel prints out error messages in an endless loop:

pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x813c000 didn't change!
pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x805c000 didn't change!
pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x806c000 didn't change!
pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x807c000 didn't change!
pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x808c000 didn't change!
pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x809c000 didn't change!
pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x80ac000 didn't change!
pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x80bc000 didn't change!
pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x80cc000 didn't change!
pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x80dc000 didn't change!
pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x80ec000 didn't change!
pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x80fc000 didn't change!
pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x810c000 didn't change!
pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x811c000 didn't change!
pmap_unwire: wiring for pmap 0xcc7c9e8c va 0x812c000 didn't change!

The messages start again with "va 0x813c000" again here. Here is "dmesg"
output from a working kernel:

NetBSD 3.99.12 (LYSSA) #0: Thu Dec  1 20:55:34 GMT 2005
	tron@lyssa.zhadum.org.uk:/src/sys/compile/LYSSA
total memory = 2045 MB
avail memory = 2005 MB
BIOS32 rev. 0 found at 0xf0010
mainbus0 (root)
    ACPI-0605: *** Warning: Encountered executable code at module level, [AE_NOT_CONFIGURED]
    ACPI-0605: *** Warning: Encountered executable code at module level, [AE_NOT_CONFIGURED]
    ACPI-0605: *** Warning: Encountered executable code at module level, [AE_NOT_CONFIGURED]
    ACPI-0605: *** Warning: Encountered executable code at module level, [AE_NOT_CONFIGURED]
    ACPI-0605: *** Warning: Encountered executable code at module level, [AE_NOT_CONFIGURED]
    ACPI-0605: *** Warning: Encountered executable code at module level, [AE_NOT_CONFIGURED]
    ACPI-0605: *** Warning: Encountered executable code at module level, [AE_NOT_CONFIGURED]
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium 4 (686-class), 2394.13 MHz, id 0xf29
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 4400<CID,xTPR>
cpu0: "Intel(R) Pentium(R) 4 CPU 2.40GHz"
cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way
cpu0: L2 cache 512 KB 64B/line 8-way
cpu0: ITLB 4K/4M: 64 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: using thermal monitor 1
cpu0: calibrating local timer
cpu0: apic clock running at 199 MHz
cpu0: 16 page colors
cpu1 at mainbus0: apid 1 (application processor)
cpu1: not started
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 20, 24 pins
acpi0 at mainbus0
acpi0: using Intel ACPI CA subsystem version 20050408
acpi0: X/RSDT: OemId <INTEL ,D865PERL,20040628>, AslId <MSFT,00000097>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
PNP0A03 [PCI Bus] at acpi0 not configured
PNP0000 [AT Interrupt Controller] at acpi0 not configured
PNP0200 [AT DMA Controller] at acpi0 not configured
attimer0 at acpi0 (PNP0100): AT Timer
attimer0: io 0x40-0x43 irq 0
PNP0B00 [AT Real-Time Clock] at acpi0 not configured
pckbc0 at acpi0 (PNP0303): kbd port
pckbc0: io 0x60,0x64 irq 1
pckbc1 at acpi0 (PNP0F03): aux port
pckbc1: irq 12
pcppi0 at acpi0 (PNP0800)
pcppi0: io 0x61
spkr0 at pcppi0
sysbeep0 at pcppi0
npx0 at acpi0 (PNP0C04)
npx0: io 0xf0-0xff irq 13
npx0: using exception 16
fdc0 at acpi0 (PNP0700)
fdc0: io 0x3f0-0x3f5,0x3f7 irq 6 drq 2
com0 at acpi0 (PNP0501-1)
com0: io 0x3f8-0x3ff irq 4
com0: ns16550a, working fifo
lpt0 at acpi0 (PNP0400)
lpt0: io 0x378-0x37f irq 7
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
INT0800 at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0C01 [System Board] 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
acpibut0 at acpi0 (PNP0C0E-29): ACPI Sleep Button
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0: attached to attimer0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82865 Host (rev. 0x02)
pchb0: random number generator enabled
agp0 at pchb0: aperture at 0xf0000000, size 0x8000000
ppb0 at pci0 dev 1 function 0: Intel 82865 AGP (rev. 0x02)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: ATI Technologies Radeon 8500/8500LE (rev. 0x00)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
ppb1 at pci0 dev 3 function 0: Intel 82801EB Hub-PCI Bridge (rev. 0x02)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
wm0 at pci2 dev 1 function 0: Intel i82547EI 1000BASE-T Ethernet, rev. 0
wm0: interrupting at ioapic0 pin 18 (irq 10)
wm0: Communication Streaming Architecture
wm0: using 82547 Tx FIFO stall work-around
wm0: 65536 word (16 address bits) SPI EEPROM
wm0: Ethernet address 00:07:e9:67:18:7b
igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
uhci0 at pci0 dev 29 function 0: Intel 82801EB/ER USB UHCI Controller (rev. 0x02)
uhci0: interrupting at ioapic0 pin 16 (irq 11)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: Intel 82801EB/ER USB UHCI Controller (rev. 0x02)
uhci1: interrupting at ioapic0 pin 19 (irq 5)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: Intel 82801EB/ER USB UHCI Controller (rev. 0x02)
uhci2: interrupting at ioapic0 pin 18 (irq 10)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3: Intel 82801EB/ER USB UHCI Controller (rev. 0x02)
uhci3: interrupting at ioapic0 pin 16 (irq 11)
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7: Intel 82801EB/ER USB EHCI Controller (rev. 0x02)
ehci0: interrupting at ioapic0 pin 23 (irq 9)
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb2 at pci0 dev 30 function 0: Intel 82801BA Hub-PCI Bridge (rev. 0xc2)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled
wm1 at pci3 dev 2 function 0: Intel i82540EM 1000BASE-T Ethernet, rev. 2
wm1: interrupting at ioapic0 pin 17 (irq 3)
wm1: 32-bit 33MHz PCI bus
wm1: 64 word (6 address bits) MicroWire EEPROM
wm1: Ethernet address 00:07:e9:0e:b9:a8
makphy0 at wm1 phy 1: Marvell 88E1011 Gigabit PHY, rev. 3
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
emuxki0 at pci3 dev 3 function 0: Creative Labs SBLive! EMU 10000 (audio multimedia, revision 0x07)
emuxki0: ac97: SigmaTel STAC9708 codec; 18 bit DAC, 18 bit ADC, SigmaTel 3D
emuxki0: ac97: ext id 80<SDAC>
audio0 at emuxki0: full duplex, mmap, independent
emuxki0: interrupting at ioapic0 pin 19 (irq 5)
Creative Labs PCI Gameport Joystick (miscellaneous input, revision 0x07) at pci3 dev 3 function 1 not configured
fwohci0 at pci3 dev 7 function 0: Lucent Technologies FW322/323 IEEE 1394 Host Controller (rev. 0x04)
fwohci0: interrupting at ioapic0 pin 17 (irq 3)
fwohci0: OHCI version 1.0 (ROM=0)
fwohci0: No. of Isochronous channels is 8.
fwohci0: EUI64 00:07:e9:00:00:67:18:7b
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801EB LPC Interface Bridge (rev. 0x02)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801EB IDE Controller (ICH5) (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to compatibility mode
piixide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus1 at piixide0 channel 1
piixide1 at pci0 dev 31 function 2
piixide1: Intel 82801EB Serial ATA Controller (rev. 0x02)
piixide1: bus-master DMA support present
piixide1: primary channel configured to native-PCI mode
piixide1: using ioapic0 pin 18 (irq 10) for native-PCI interrupt
atabus2 at piixide1 channel 0
piixide1: secondary channel configured to native-PCI mode
atabus3 at piixide1 channel 1
Intel 82801EB/ER SMBus Controller (SMBus serial bus, revision 0x02) at pci0 dev 31 function 3 not configured
isa0 at pcib0
ioapic0: enabling
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
ieee1394if0: bus manager 0 (me)
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <Pioneer DVD-ROM ATAPIModel DVD-120S, , 1.01> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
cd1 at atapibus0 drive 1: <_NEC DVD_RW ND-2500A, , 1.07> cdrom removable
cd1: 32-bit data port
cd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
cd1(piixide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
ehci0: handing over full speed device on port 2 to uhci0
uhub4: port 2, device disappeared after reset
umass0 at uhub0 port 2 configuration 1 interface 0
umass0: Generic USB Storage Device, rev 1.10/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 4 luns per target
sd0 at scsibus0 target 0 lun 0: <Generic, USB Storage-SMC, 0180> disk removable
sd0: drive offline
sd1 at scsibus0 target 0 lun 1: <Generic, USB Storage-CFC, 0180> disk removable
sd1: drive offline
sd2 at scsibus0 target 0 lun 2: <Generic, USB Storage-MMC, 0180> disk removable
sd2: drive offline
sd3 at scsibus0 target 0 lun 3: <Generic, USB Storage-MSC, 0180> disk removable
sd3: drive offline
wd0 at atabus2 drive 0: <WDC WD1600JD-00GBB0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(piixide1:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
wd1 at atabus3 drive 0: <WDC WD1600JD-00GBB0>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(piixide1:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
sd0(umass0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd1(umass0:0:0:1):  Check Condition on CDB: 0x00 20 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd2(umass0:0:0:2):  Check Condition on CDB: 0x00 40 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd3(umass0:0:0:3):  Check Condition on CDB: 0x00 60 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd0(umass0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd1(umass0:0:0:1):  Check Condition on CDB: 0x00 20 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd2(umass0:0:0:2):  Check Condition on CDB: 0x00 40 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd3(umass0:0:0:3):  Check Condition on CDB: 0x00 60 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd0(umass0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd1(umass0:0:0:1):  Check Condition on CDB: 0x00 20 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd2(umass0:0:0:2):  Check Condition on CDB: 0x00 40 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd3(umass0:0:0:3):  Check Condition on CDB: 0x00 60 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd0(umass0:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd1(umass0:0:0:1):  Check Condition on CDB: 0x00 20 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd2(umass0:0:0:2):  Check Condition on CDB: 0x00 40 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd3(umass0:0:0:3):  Check Condition on CDB: 0x00 60 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs


>How-To-Repeat:
Boot NetBSD 3.99.13.

>Fix:
None provide.